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:
Rangi
2023-12-01 10:21:43 -05:00
committed by GitHub
parent cee3d1c859
commit 6132b77c1e
85 changed files with 450 additions and 65 deletions

View File

@@ -0,0 +1,23 @@
; valid
SECTION "valid", ROM0
align 16 ; this is achievable at $0000
; invalid
SECTION "invalid", ROMX[$4000]
align 16
SECTION "a", ROMX[$4000], ALIGN[20]
SECTION FRAGMENT "b", ROM0[$0000], ALIGN[20]
SECTION UNION "c", WRAM0[$c000], ALIGN[20]
; unattainable
SECTION "d", HRAM[$ff80], ALIGN[10]
SECTION FRAGMENT "e", ROMX[$4000], ALIGN[15]
SECTION UNION "f", WRAM0[$c000], ALIGN[15]