summaryrefslogtreecommitdiff
path: root/src/macros/code.asm
diff options
context:
space:
mode:
authorAndrew Martinek <andrewrmartinek@gmail.com>2019-10-29 16:35:04 -0400
committerAndrew Martinek <andrewrmartinek@gmail.com>2019-10-29 16:35:04 -0400
commitadc5a467eeccb0e44f4fcd2ed14d2b185ca1c14c (patch)
tree313c5848f58f04c83cad3418abac64eee2dcd8d4 /src/macros/code.asm
parent3f99d5555ce7b8a2467aef9d24d7192f993343d9 (diff)
Finished extracting Challenge Hall scripts
Diffstat (limited to 'src/macros/code.asm')
-rw-r--r--src/macros/code.asm14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/macros/code.asm b/src/macros/code.asm
index 3441ec3..8921a04 100644
--- a/src/macros/code.asm
+++ b/src/macros/code.asm
@@ -33,11 +33,23 @@ set_flag_value: MACRO
ENDM
; runs ZeroOutEventFlag with the next value as the flag
-zero_out_flag: MACRO
+zero_flag_value: MACRO
call ZeroStackFlagValue
db \1
ENDM
+; a second version of the above with no real differences
+zero_flag_value2: MACRO
+ call ZeroStackFlagValue2
+ db \1
+ENDM
+
+; runs MaxOutEventFlag with the next value as the flag
+max_flag_value: MACRO
+ call MaxStackFlagValue
+ db \1
+ENDM
+
; runs GetEventFlagValue with the next value as the flag. returns value in a
get_flag_value: MACRO
call GetStackFlagValue