Added a fast subroutine to multiply two signed 8-bit numbers.
This commit is contained in:
22
libsrc/common/cc65_imul8x8r16.s
Normal file
22
libsrc/common/cc65_imul8x8r16.s
Normal file
@@ -0,0 +1,22 @@
|
||||
;
|
||||
; 2014-03-27, Oliver Schmidt
|
||||
; 2014-05-08, Greg King
|
||||
;
|
||||
; CC65 library: 8x8 => 16 signed multiplication
|
||||
;
|
||||
|
||||
.export _cc65_imul8x8r16
|
||||
.import imul8x8r16, popa, ptr1:zp
|
||||
|
||||
|
||||
;---------------------------------------------------------------------------
|
||||
; 8x8 => 16 signed multiplication routine.
|
||||
|
||||
|
||||
.proc _cc65_imul8x8r16
|
||||
|
||||
sta ptr1
|
||||
jsr popa
|
||||
jmp imul8x8r16
|
||||
|
||||
.endproc
|
||||
Reference in New Issue
Block a user