Explicitly allow JR offsets to wrap around in RGBLINK

This reverts commit f27a8132d9.
This commit is contained in:
Rangi
2026-07-20 19:23:11 -04:00
parent 3b1606c63c
commit d9c0d37fd5
6 changed files with 26 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
SECTION "low", ROM0[$0048]
LCDInterrupt:
jr hLCDInterruptHandler
+4
View File
@@ -0,0 +1,4 @@
SECTION "high", HRAM[$FFE0]
hLCDInterruptHandler::
.jp: db ; should be $c3 (jp)
.address: dw
Binary file not shown.
+5
View File
@@ -0,0 +1,5 @@
; File generated by rgblink
00:0048 LCDInterrupt
00:ffe0 hLCDInterruptHandler
00:ffe0 hLCDInterruptHandler.jp
00:ffe1 hLCDInterruptHandler.address
+10
View File
@@ -191,6 +191,16 @@ tryDiff "$test"/ref.out.map "$outtemp"
tryDiff "$test"/ref.out.sym "$outtemp2"
evaluateTest
test="jr-wraparound"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm
"$RGBASM" -o "$outtemp" "$test"/b.asm
continueTest
rgblinkQuiet -o "$gbtemp" -n "$outtemp2" "$otemp" "$outtemp"
tryCmpRom "$test"/ref.out.bin
tryDiff "$test"/ref.out.sym "$outtemp2"
evaluateTest
test="high-low"
startTest
"$RGBASM" -o "$otemp" "$test"/a.asm