mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 04:05:38 +00:00
Add RGBLINK truncation warnings for add sp, e8 and ld hl, sp + e8 (#2179)
This commit is contained in:
1 parent
ba4e58f4e0
commit
380c22f343
11 files changed
+71
-6
No files matched your search
@@ -0,0 +1,13 @@
|
||||
SECTION "limit", ROM0, ALIGN[8, 128]
|
||||
Limit:
|
||||
add sp, Limit
|
||||
add sp, -Limit
|
||||
ld hl, sp + Limit
|
||||
ld hl, sp - Limit
|
||||
|
||||
SECTION "test", ROMX
|
||||
Invalid:
|
||||
add sp, Invalid
|
||||
add sp, -Invalid
|
||||
ld hl, sp + Invalid
|
||||
ld hl, sp - Invalid
|
||||
@@ -0,0 +1,12 @@
|
||||
warning: Value $80 is not signed 8-bit [-Wtruncation]
|
||||
at signed-byte-bad.asm(5)
|
||||
warning: Value $80 is not signed 8-bit [-Wtruncation]
|
||||
at signed-byte-bad.asm(3)
|
||||
warning: Value -$4000 is not signed 8-bit [-Wtruncation]
|
||||
at signed-byte-bad.asm(13)
|
||||
warning: Value $4000 is not signed 8-bit [-Wtruncation]
|
||||
at signed-byte-bad.asm(12)
|
||||
warning: Value -$4000 is not signed 8-bit [-Wtruncation]
|
||||
at signed-byte-bad.asm(11)
|
||||
warning: Value $4000 is not signed 8-bit [-Wtruncation]
|
||||
at signed-byte-bad.asm(10)
|
||||
@@ -0,0 +1,6 @@
|
||||
SECTION "test", ROM0, ALIGN[8, 127]
|
||||
Valid:
|
||||
add sp, Valid
|
||||
add sp, -Valid
|
||||
ld hl, sp + Valid
|
||||
ld hl, sp - Valid
|
||||
Whitespace-only changes.
Binary file not shown.
Reference in new issue
Block a user