1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00
cc65/libsrc/common/_umul16x8r32.s
Oliver Schmidt fc6a63a15e Avoid unintended file "shadowing".
3d8c3a4948 caused an unintended "shadowing" of files in /libsrc/runtime by files in /libsrc/common. Therefore the files in question are renamed (again) in /libsrc/common to make the files in /libsrc/runtime "visible" again.
2019-04-04 09:16:59 +02:00

28 lines
590 B
ArmAsm

;
; Ullrich von Bassewitz, 2011-07-10
;
; CC65 library: 16x8 => 32 unsigned multiplication
;
.export _umul16x8r32
.import umul8x16r24, popax
.include "zeropage.inc"
;---------------------------------------------------------------------------
; 16x8 => 32 unsigned multiplication routine. We use 8x16 => 24 and clear
; the high byte of the result
.proc _umul16x8r32
sta ptr1
lda #0
sta sreg+1 ; Clear high byte of result
jsr popax
jmp umul8x16r24
.endproc