mirror of
https://github.com/cc65/cc65.git
synced 2025-02-09 02:30:42 +00:00
Quick fix for missing _div() adaptation after 95223be.
This commit is contained in:
parent
b04028b5d8
commit
c9869c1a26
@ -18,10 +18,12 @@
|
|||||||
.importzp sreg, ptr1, tmp1
|
.importzp sreg, ptr1, tmp1
|
||||||
|
|
||||||
_div: jsr tosdivax ; Division-operator does most of the work
|
_div: jsr tosdivax ; Division-operator does most of the work
|
||||||
sta sreg ; Quotient is in sreg
|
lda sreg ; Unsigned remainder is in sreg
|
||||||
stx sreg+1
|
ldx sreg+1
|
||||||
lda ptr1 ; Unsigned remainder is in ptr1
|
ldy ptr1 ; transfer quotient to sreg
|
||||||
ldx ptr1+1
|
sty sreg
|
||||||
|
ldy ptr1+1
|
||||||
|
sty sreg+1
|
||||||
|
|
||||||
; Adjust the sign of the remainder.
|
; Adjust the sign of the remainder.
|
||||||
; It must be the same as the sign of the dividend.
|
; It must be the same as the sign of the dividend.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user