X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fz80%2Fdiv.s;fp=device%2Flib%2Fz80%2Fdiv.s;h=ba07423963682b1e598f42c745b80fbcc7799742;hb=c7ab63a07c2c3da85a15a3be5e5e20cb2b432065;hp=92d2ee2f81df742ff962ee4453d2b43ec5622a5b;hpb=f1e66ba07747800e2fb275582608e02a83e47193;p=fw%2Fsdcc diff --git a/device/lib/z80/div.s b/device/lib/z80/div.s index 92d2ee2f..ba074239 100644 --- a/device/lib/z80/div.s +++ b/device/lib/z80/div.s @@ -99,19 +99,13 @@ __divuchar_rr_s:: ld l,(hl) ;; Fall through -__divuchar_rr_hds:: - push ix - ld ix,#0 - add ix,sp - - ld c,8(ix) - ld e,9(ix) +__divuchar_rr_hds:: + ld c,l call .divu8 ld l,c ld h,b - - pop ix + ret __moduchar_rr_s:: @@ -124,19 +118,13 @@ __moduchar_rr_s:: ;; Fall through __moduchar_rr_hds:: - push ix - ld ix,#0 - add ix,sp - - ld c,8(ix) - ld e,9(ix) + ld c,l call .divu8 ld l,e ld h,d - - pop ix - ret + + ret __divuint_rr_s:: ld hl,#2+3