From 794701bf871f56d06b9567ef0ea84ebb98710572 Mon Sep 17 00:00:00 2001 From: dannye <33dannye@gmail.com> Date: Sun, 7 Feb 2021 12:21:28 -0600 Subject: Separate true/false checks from nonzero/zero checks --- src/macros/code.asm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/macros/code.asm') diff --git a/src/macros/code.asm b/src/macros/code.asm index 64fa387..c71e9e6 100644 --- a/src/macros/code.asm +++ b/src/macros/code.asm @@ -33,14 +33,16 @@ set_event_value: MACRO ENDM ; runs ZeroOutEventValue with the next byte as the event -zero_event_value: MACRO - call ZeroStackEventValue +; functionally identical to set_event_zero but intended for single-bit events +set_event_false: MACRO + call SetStackEventFalse db \1 ENDM -; a second version of the above with no real differences -zero_event_value2: MACRO - call ZeroStackEventValue2 +; runs ZeroOutEventValue with the next byte as the event +; functionally identical to set_event_false but intended for multi-bit events +set_event_zero: MACRO + call SetStackEventZero db \1 ENDM -- cgit v1.2.3