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