diff options
author | Andrew Martinek <andrewrmartinek@gmail.com> | 2019-10-06 23:00:27 -0400 |
---|---|---|
committer | Andrew Martinek <andrewrmartinek@gmail.com> | 2019-10-06 23:00:27 -0400 |
commit | a44f17b9a15cf1a572d5e8056a69c368265729f2 (patch) | |
tree | e8137a71e6c6fb2cbb56d3d58be084f3958ba39e /src/macros/code.asm | |
parent | fda59356c20813bb57d59de8d9b2b100f0fe275d (diff) |
Fixed a few macros that were giving weird code. Updated tcgdisasm
Diffstat (limited to 'src/macros/code.asm')
-rw-r--r-- | src/macros/code.asm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/macros/code.asm b/src/macros/code.asm index 55f4b63..8f2bd0d 100644 --- a/src/macros/code.asm +++ b/src/macros/code.asm @@ -26,6 +26,24 @@ else endc ENDM +; runs SetEventFlagValue with the next value as the flag, c as the new value +set_flag_value: MACRO + call SetStackFlagValue + db \1 +ENDM + +; runs ZeroOutEventFlag with the next value as the flag +zero_out_flag: MACRO + call ZeroStackFlagValue + db \1 +ENDM + +; runs GetEventFlagValue with the next value as the flag. returns value in a +get_flag_value: MACRO + call GetStackFlagValue + db \1 +ENDM + ; the rst $38 handler is a single ret instruction ; probably used for testing purposes during development debug_ret EQUS "rst $38" |