1
0
mirror of https://github.com/cc65/cc65.git synced 2025-02-05 20:31:53 +00:00

Added labels for umul16x16r16 and umul16x16r16m.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5077 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2011-07-10 14:50:18 +00:00
parent bf6b0b9eb7
commit 3812c5c854

View File

@ -5,26 +5,33 @@
;
.export umul16x16r32, umul16x16r32m
.export umul16x16r16, umul16x16r16m
.include "zeropage.inc"
;---------------------------------------------------------------------------
; 16x16 => 32 unsigned multiplication routine.
; 16x16 => 32 unsigned multiplication routine. Because the overhead for a
; 16x16 => 16 unsigned multiplication routine is small, we will tag it with
; the matching labels as well.
;
; routine lhs rhs result result also in
; -----------------------------------------------------------------------
; umul16x16r32 ptr1 ax ax:sreg ptr1:sreg
; umul16x16r32m ptr1 ptr3 ax:sreg ptr1:sreg
; umul16x16r16 ptr1 ax ax ptr1
; umul16x16r16m ptr1 ptr3 ax ptr1
;
; ptr3 is left intact by the routine.
;
umul16x16r32:
umul16x16r16:
sta ptr3
stx ptr3+1
umul16x16r32m:
umul16x16r16m:
lda #0
sta sreg+1
ldy #16 ; Number of bits
@ -53,3 +60,4 @@ umul16x16r32m:
ldx ptr1+1
rts ; Done