mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-24 15:54:33 +00:00
Fix $8000_0000 % -1 to warn with -Wdiv like $8000_0000 / -1 does (#2012)
This commit is contained in:
@@ -2,6 +2,7 @@ def fzero equs "startof(\"test\")"
|
||||
section "test", rom0
|
||||
ld a, $8000_0000 / ({fzero} - 1)
|
||||
ld a, $8000_0000 / ({fzero} - 2)
|
||||
ld a, $8000_0000 % ({fzero} - 1)
|
||||
ld a, 1 << ({fzero} - 1)
|
||||
ld a, 1 << ({fzero} + 32)
|
||||
ld a, ({fzero} - 1) >> 1
|
||||
|
||||
Reference in New Issue
Block a user