23 lines
285 B
ArmAsm
23 lines
285 B
ArmAsm
.define Mlu2
|
|
.sect .text
|
|
.sect .rom
|
|
.sect .data
|
|
.sect .bss
|
|
.sect .text
|
|
|
|
! This subroutine multiplies two unsigned fourbyte intergers.
|
|
! For more details see mli.s
|
|
|
|
|
|
Mlu2:
|
|
stx ARTH
|
|
sta ARTH+1 ! multiplier
|
|
jsr Pop
|
|
stx ARTH+2
|
|
sta ARTH+3 ! multiplicand
|
|
ldy #0
|
|
sty UNSIGN
|
|
jmp Mul
|
|
|
|
|