dvi4.s 331 B

123456789101112131415161718192021222324
  1. .define Dvi4
  2. .sect .text
  3. .sect .rom
  4. .sect .data
  5. .sect .bss
  6. .sect .text
  7. ! This subroutine performs a fourbyte signed division.
  8. ! For more details see dvi.s
  9. ! The only difference is that zeropage locations are twice as big.
  10. Dvi4:
  11. ldy #1
  12. sty UNSIGN
  13. jsr Div4
  14. lda ARTH+7
  15. ldx ARTH+6
  16. jsr Push
  17. lda ARTH+5
  18. ldx ARTH+4
  19. jmp Push