Skip to content

Commit

Permalink
Test variable behaviour with macro disabling in kitchen sink
Browse files Browse the repository at this point in the history
  • Loading branch information
TollyH committed Apr 8, 2024
1 parent 3cf34eb commit d761497
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Test/KitchenSink.asm
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,13 @@ CONCAT(CONCAT(%,DAT), CONCAT("\,\,, \,\,\)\\0"))
; Insert a value with only the number of bytes required to represent the whole value
%MACRO InsertNoZeroPadding
%DEFINE _InsertNoZeroPadding_Value, $0!
%WHILE GT, @_InsertNoZeroPadding_Value, 0
! %WHILE GT, @_InsertNoZeroPadding_Value, 0
!>
%DEFINE _InsertNoZeroPadding_Value_Part, @_InsertNoZeroPadding_Value
%VAROP REM, _InsertNoZeroPadding_Value_Part, 256
%VAROP DIV, _InsertNoZeroPadding_Value, 256
%DAT @_InsertNoZeroPadding_Value_Part
<!
%ENDWHILE
%UNDEFINE _InsertNoZeroPadding_Value
%IF DEF, _InsertNoZeroPadding_Value
Expand Down

0 comments on commit d761497

Please sign in to comment.