mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Replace test comments with assertions
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
SECTION "fixed", ROM0[0]
|
SECTION "fixed", ROM0[0]
|
||||||
jr @
|
jr @
|
||||||
|
|
||||||
; We need this section to be floating because RGBASM can know the value of PC
|
; We need this section to be floating because RGBASM can know the value of PC
|
||||||
; otherwise, leading to different behavior
|
; otherwise, leading to different behavior
|
||||||
; FIXME: we rely on this landing at address 2, which isn't *guaranteed*...
|
|
||||||
SECTION "floating", ROM0
|
SECTION "floating", ROM0
|
||||||
jr @
|
jr @
|
||||||
|
|
||||||
|
; We rely on this landing at address $0002, which isn't *guaranteed*...
|
||||||
|
assert STARTOF("floating") == 2
|
||||||
|
|||||||
@@ -3,8 +3,10 @@ SECTION "fixed", ROM0[420]
|
|||||||
ds 69
|
ds 69
|
||||||
PRINTLN "{@}"
|
PRINTLN "{@}"
|
||||||
|
|
||||||
; FIXME: expected to land at $0000
|
|
||||||
SECTION "floating", ROM0
|
SECTION "floating", ROM0
|
||||||
db @
|
db @
|
||||||
ds 42
|
ds 42
|
||||||
db @
|
db @
|
||||||
|
|
||||||
|
; We rely on this landing at address $0000, which isn't *guaranteed*...
|
||||||
|
assert STARTOF("floating") == 0
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
SECTION "fixed", ROM0[0]
|
SECTION "fixed", ROM0[0]
|
||||||
db @, @, @
|
db @, @, @
|
||||||
|
|
||||||
; We need this section to be floating because RGBASM can know the value of PC
|
; We need this section to be floating because RGBASM can know the value of PC
|
||||||
; otherwise, leading to different behavior
|
; otherwise, leading to different behavior
|
||||||
; FIXME: we rely on this landing at address 2, which isn't *guaranteed*...
|
|
||||||
SECTION "floating", ROM0
|
SECTION "floating", ROM0
|
||||||
db @, @, @
|
db @, @, @
|
||||||
|
|
||||||
|
; We rely on this landing at address $0003, which isn't *guaranteed*...
|
||||||
|
assert STARTOF("floating") == 3
|
||||||
|
|||||||
@@ -8,3 +8,6 @@ ld a, 1 >> (fzero - 1)
|
|||||||
ld a, 1 >> (fzero + 32)
|
ld a, 1 >> (fzero + 32)
|
||||||
ld a, 1 >>> (fzero - 1)
|
ld a, 1 >>> (fzero - 1)
|
||||||
ld a, 1 >>> (fzero + 32)
|
ld a, 1 >>> (fzero + 32)
|
||||||
|
|
||||||
|
; We rely on this landing at address $0000, which isn't *guaranteed*...
|
||||||
|
assert startof("test") == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user