gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 7c89a8d9d4d74fdbbc49ebf27b3f41b3fe773d00 parent e3b2f469d4211cad07d4458cbda6d3aea49fa299 Author: Toxa <56631470+untoxa@users.noreply.github.com> Date: Sun, 8 Mar 2026 11:42:34 +0300 Merge pull request #866 from Phidias618/revert-865-patch-1 Diffstat:
| M | gbdk-lib/libc/asm/sm83/div.s | 17 | +---------------- |
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/gbdk-lib/libc/asm/sm83/div.s b/gbdk-lib/libc/asm/sm83/div.s @@ -69,12 +69,7 @@ __divuint:: or l jr z, .division_by_zero - - ld a, l - and h - inc a - jr z, .division_by_one - + ; if X < Y then ; return quotient = 0 and remainder = X ; else @@ -169,16 +164,6 @@ ret_hl_in_de: ; if this is reached, then bc = 0 scf jr ret_hl_in_de -.division_by_one: - ; returns a remainder of 0 and a quotient of X - ld c, e - ld b, d - - ; a is assumed to store 0 - ld d, a - ld e, a - - ret ; mixed sign division
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.