mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
Add more test coverage for RGBASM (#1256)
This also fixes two bugs: `-1 >>> 32` was -1 not 0, and `macro_FreeArgs` should have been called but wasn't.
This commit is contained in:
@@ -22,9 +22,9 @@ MACRO test_mod
|
||||
ENDM
|
||||
|
||||
MACRO test_each_mod
|
||||
test_mod (\1), (\2)
|
||||
test_mod (\1), -(\2)
|
||||
test_mod -(\1), (\2)
|
||||
test_mod +(\1), +(\2)
|
||||
test_mod +(\1), -(\2)
|
||||
test_mod -(\1), +(\2)
|
||||
test_mod -(\1), -(\2)
|
||||
ENDM
|
||||
|
||||
@@ -38,8 +38,8 @@ MACRO test_pow
|
||||
ENDM
|
||||
|
||||
MACRO test_each_pow
|
||||
test_pow (\1), (\2)
|
||||
test_pow -(\1), (\2)
|
||||
test_pow +(\1), +(\2)
|
||||
test_pow -(\1), +(\2)
|
||||
ENDM
|
||||
|
||||
test_each_mod 0, 1
|
||||
|
||||
Reference in New Issue
Block a user