Warn about signed 8-bit truncation for add sp, e8 and ld hl, sp + e8

This commit is contained in:
Rangi
2026-09-07 19:28:45 +02:00
committed by Eldred Habert
parent db9509fba0
commit fdd6cece30
5 changed files with 70 additions and 3 deletions
+16
View File
@@ -0,0 +1,16 @@
warning: Expression must be signed 8-bit [-Wtruncation]
at sp-signed-truncation.asm(15)
warning: Expression must be signed 8-bit [-Wtruncation]
at sp-signed-truncation.asm(16)
warning: Expression must be signed 8-bit [-Wtruncation]
at sp-signed-truncation.asm(17)
warning: Expression must be signed 8-bit [-Wtruncation]
at sp-signed-truncation.asm(18)
warning: Expression must be signed 8-bit [-Wtruncation]
at sp-signed-truncation.asm(19)
warning: Expression must be signed 8-bit [-Wtruncation]
at sp-signed-truncation.asm(20)
warning: Expression must be signed 8-bit [-Wtruncation]
at sp-signed-truncation.asm(21)
warning: Expression must be signed 8-bit [-Wtruncation]
at sp-signed-truncation.asm(22)