Skip to content

Commit 0561904

Browse files
committed
Add test to cover RGBLINK behavior for patch overflow
1 parent c2db23a commit 0561904

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/link/patch-overflow.asm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
section "test", romx
2+
db startof("test")
3+
dw startof("test") * 5

test/link/patch-overflow.out

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
error: patch-overflow.asm(3): Value 81920 is not 16-bit
2+
error: patch-overflow.asm(2): Value 16384 is not 8-bit
3+
Linking failed with 2 errors

0 commit comments

Comments
 (0)