mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 10:42:07 +00:00
Fix division and modulo for very large negative numbers (#1790)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
def fzero equs "startof(\"test\")"
|
||||
section "test", rom0
|
||||
ld a, $8000_0000 / (fzero - 1)
|
||||
ld a, $8000_0000 / (fzero - 2)
|
||||
ld a, 1 << (fzero - 1)
|
||||
ld a, 1 << (fzero + 32)
|
||||
ld a, (fzero - 1) >> 1
|
||||
|
||||
Reference in New Issue
Block a user