Replace test comments with assertions

This commit is contained in:
Rangi42
2025-07-18 07:40:01 -04:00
parent e99ff5ac45
commit 9a9fd6603c
4 changed files with 14 additions and 3 deletions

View File

@@ -1,7 +1,10 @@
SECTION "fixed", ROM0[0]
jr @
; We need this section to be floating because RGBASM can know the value of PC
; otherwise, leading to different behavior
; FIXME: we rely on this landing at address 2, which isn't *guaranteed*...
SECTION "floating", ROM0
jr @
; We rely on this landing at address $0002, which isn't *guaranteed*...
assert STARTOF("floating") == 2

View File

@@ -3,8 +3,10 @@ SECTION "fixed", ROM0[420]
ds 69
PRINTLN "{@}"
; FIXME: expected to land at $0000
SECTION "floating", ROM0
db @
ds 42
db @
; We rely on this landing at address $0000, which isn't *guaranteed*...
assert STARTOF("floating") == 0

View File

@@ -1,7 +1,10 @@
SECTION "fixed", ROM0[0]
db @, @, @
; We need this section to be floating because RGBASM can know the value of PC
; otherwise, leading to different behavior
; FIXME: we rely on this landing at address 2, which isn't *guaranteed*...
SECTION "floating", ROM0
db @, @, @
; We rely on this landing at address $0003, which isn't *guaranteed*...
assert STARTOF("floating") == 3

View File

@@ -8,3 +8,6 @@ ld a, 1 >> (fzero - 1)
ld a, 1 >> (fzero + 32)
ld a, 1 >>> (fzero - 1)
ld a, 1 >>> (fzero + 32)
; We rely on this landing at address $0000, which isn't *guaranteed*...
assert startof("test") == 0