Add 0/1/2 warning levels to rgblink -Wtruncation (#1816)

This commit is contained in:
Rangi
2025-09-01 15:35:53 -04:00
committed by GitHub
parent cc96b4d517
commit 534a4efee4
9 changed files with 90 additions and 28 deletions

View File

@@ -0,0 +1,6 @@
section "rom", rom0
ld bc, -wLabel
ld de, -(wLabel * 2)
section "ram", wram0
wLabel::

View File

@@ -0,0 +1,2 @@
warning: Value $fffe8000 (may be negative?) is not 16-bit [-Wtruncation]
at truncation/level1/a.asm(3)

View File

@@ -0,0 +1,6 @@
section "rom", rom0
ld bc, -wLabel
ld de, -(wLabel * 2)
section "ram", wram0
wLabel::

View File

@@ -0,0 +1,4 @@
warning: Value $fffe8000 (may be negative?) is not 16-bit [-Wtruncation]
at truncation/level2/a.asm(3)
warning: Value $ffff4000 (may be negative?) is not 16-bit [-Wtruncation]
at truncation/level2/a.asm(2)