ack/mach/6500/libem/dvi4.s

25 lines
331 B
ArmAsm
Raw Normal View History

1984-12-17 11:03:13 +00:00
.define Dvi4
1987-01-30 18:41:42 +00:00
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
1984-12-17 11:03:13 +00:00
! This subroutine performs a fourbyte signed division.
! For more details see dvi.s
! The only difference is that zeropage locations are twice as big.
Dvi4:
ldy #1
sty UNSIGN
jsr Div4
lda ARTH+7
ldx ARTH+6
jsr Push
lda ARTH+5
ldx ARTH+4
jmp Push