mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Add more tests for RGBASM code coverage (#1257)
* Add more tests for RGBASM code coverage * Use C++ unnamed parameters, not `(void)` casting * Fix crash in `sect_AlignPC` from #1253
This commit is contained in:
@@ -4,12 +4,14 @@ macro def_sect
|
||||
ELSE
|
||||
SECTION "\1", \2, BANK[\3]
|
||||
ENDC
|
||||
|
||||
PRINTLN BANK("\1")
|
||||
Label\@::
|
||||
PRINTLN "\1 (\2): ", BANK("\1"), " == ", BANK(Label\@)
|
||||
endm
|
||||
|
||||
def_sect ROM0_ok, ROM0
|
||||
def_sect ROMX_ok, ROMX, 42
|
||||
def_sect ROM0_ok1, ROM0
|
||||
def_sect ROM0_ok2, ROM0[$2000]
|
||||
def_sect ROMX_ok1, ROMX[$4567]
|
||||
def_sect ROMX_ok2, ROMX, 42
|
||||
def_sect ROMX_bad, ROMX
|
||||
def_sect VRAM_ok, VRAM, 1
|
||||
def_sect VRAM_bad, VRAM
|
||||
@@ -20,3 +22,5 @@ endm
|
||||
def_sect WRAMX_bad,WRAMX
|
||||
def_sect OAM_ok, OAM
|
||||
def_sect HRAM_ok, HRAM
|
||||
|
||||
PRINTLN "def_sect: ", BANK(def_sect) ; not a label
|
||||
|
||||
Reference in New Issue
Block a user