2009-11-04 18:17:00 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 2010-11-03
|
|
|
|
;
|
|
|
|
; CC65 library: 16x16 => 32 signed multiplication
|
|
|
|
;
|
|
|
|
|
2019-03-29 21:36:01 +00:00
|
|
|
.export _imul16x16r32
|
2009-11-04 18:17:00 +00:00
|
|
|
.import imul16x16r32, popax
|
2009-11-04 19:41:54 +00:00
|
|
|
|
|
|
|
.include "zeropage.inc"
|
2009-11-04 18:17:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
;---------------------------------------------------------------------------
|
|
|
|
; 16x16 => 32 signed multiplication routine.
|
|
|
|
|
|
|
|
|
2019-03-29 21:36:01 +00:00
|
|
|
.proc _imul16x16r32
|
2009-11-04 18:17:00 +00:00
|
|
|
|
|
|
|
sta ptr1
|
|
|
|
stx ptr1+1
|
|
|
|
jsr popax
|
|
|
|
jmp imul16x16r32
|
|
|
|
|
|
|
|
.endproc
|
|
|
|
|