Rename the 8x8 multiplication using the same scheme as for the 16x16
multiplication. git-svn-id: svn://svn.cc65.org/cc65/trunk@4463 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
80b81549fd
commit
5dc80c2615
2 changed files with 6 additions and 4 deletions
|
@ -155,7 +155,6 @@ OBJS = add.o \
|
||||||
mod.o \
|
mod.o \
|
||||||
mul.o \
|
mul.o \
|
||||||
mul8.o \
|
mul8.o \
|
||||||
mul8x8r16.o \
|
|
||||||
mulax3.o \
|
mulax3.o \
|
||||||
mulax5.o \
|
mulax5.o \
|
||||||
mulax6.o \
|
mulax6.o \
|
||||||
|
@ -222,6 +221,7 @@ OBJS = add.o \
|
||||||
udiv32by16r16.o \
|
udiv32by16r16.o \
|
||||||
umod.o \
|
umod.o \
|
||||||
umul16x16r32.o \
|
umul16x16r32.o \
|
||||||
|
umul8x8r16.o \
|
||||||
xor.o \
|
xor.o \
|
||||||
zeropage.o
|
zeropage.o
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
; CC65 runtime: 8x8 => 16 multiplication
|
; CC65 runtime: 8x8 => 16 multiplication
|
||||||
;
|
;
|
||||||
|
|
||||||
.export umul8x8r16
|
.export umul8x8r16, umul8x8r16m
|
||||||
.export mul8x8r16 := umul8x8r16
|
|
||||||
.importzp ptr1, ptr3
|
.importzp ptr1, ptr3
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,6 +17,8 @@
|
||||||
;
|
;
|
||||||
|
|
||||||
umul8x8r16:
|
umul8x8r16:
|
||||||
|
sta ptr3
|
||||||
|
umul8x8r16m:
|
||||||
lda #0 ; Clear byte 1
|
lda #0 ; Clear byte 1
|
||||||
ldy #8 ; Number of bits
|
ldy #8 ; Number of bits
|
||||||
lsr ptr1 ; Get first bit of lhs into carry
|
lsr ptr1 ; Get first bit of lhs into carry
|
||||||
|
@ -33,3 +34,4 @@ umul8x8r16:
|
||||||
lda ptr1 ; Load the result
|
lda ptr1 ; Load the result
|
||||||
rts ; Done
|
rts ; Done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue