X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fz80%2Fdiv.s;fp=device%2Flib%2Fz80%2Fdiv.s;h=305cd67ab13a1c39bf6d0f790723b975af3ffe0e;hb=5a1d5e778e85664f4e6657019348b4756b16eacb;hp=f0574eb506e80cd759fce009c8d1bea0ca130ce5;hpb=b641ef75173e02b781c1b994d37645116e175706;p=fw%2Fsdcc diff --git a/device/lib/z80/div.s b/device/lib/z80/div.s index f0574eb5..305cd67a 100644 --- a/device/lib/z80/div.s +++ b/device/lib/z80/div.s @@ -39,10 +39,10 @@ __modsuchar_rrx_s:: __divuschar_rrx_s:: ld hl,#2+1 + ld d, h add hl,sp ld e,(hl) - ld d, #0 dec hl ld l,(hl) @@ -228,4 +228,3 @@ __divu16:: ld e,c ; DE = quotient, HL = remainder ex de,hl ; HL = quotient, DE = remainder ret -