Add C callable special multiplication routines.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4440 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -87,7 +87,7 @@ S_OBJS = _cwd.o \
|
|||||||
_fopen.o \
|
_fopen.o \
|
||||||
_heap.o \
|
_heap.o \
|
||||||
_heapadd.o \
|
_heapadd.o \
|
||||||
_heapblocksize.o\
|
_heapblocksize.o \
|
||||||
_heapmaxavail.o \
|
_heapmaxavail.o \
|
||||||
_heapmemavail.o \
|
_heapmemavail.o \
|
||||||
_oserror.o \
|
_oserror.o \
|
||||||
@@ -99,7 +99,9 @@ S_OBJS = _cwd.o \
|
|||||||
atexit.o \
|
atexit.o \
|
||||||
atoi.o \
|
atoi.o \
|
||||||
calloc.o \
|
calloc.o \
|
||||||
|
cc65_imul16x16r32.o \
|
||||||
cc65_sincos.o \
|
cc65_sincos.o \
|
||||||
|
cc65_umul16x16r32.o \
|
||||||
chdir.o \
|
chdir.o \
|
||||||
copydata.o \
|
copydata.o \
|
||||||
creat.o \
|
creat.o \
|
||||||
|
|||||||
24
libsrc/common/cc65_imul16x16r32.s
Normal file
24
libsrc/common/cc65_imul16x16r32.s
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
;
|
||||||
|
; Ullrich von Bassewitz, 2010-11-03
|
||||||
|
;
|
||||||
|
; CC65 library: 16x16 => 32 signed multiplication
|
||||||
|
;
|
||||||
|
|
||||||
|
.export _cc65_imul16x16r32
|
||||||
|
.import imul16x16r32, popax
|
||||||
|
.importzp ptr1
|
||||||
|
|
||||||
|
|
||||||
|
;---------------------------------------------------------------------------
|
||||||
|
; 16x16 => 32 signed multiplication routine.
|
||||||
|
|
||||||
|
|
||||||
|
.proc _cc65_imul16x16r32
|
||||||
|
|
||||||
|
sta ptr1
|
||||||
|
stx ptr1+1
|
||||||
|
jsr popax
|
||||||
|
jmp imul16x16r32
|
||||||
|
|
||||||
|
.endproc
|
||||||
|
|
||||||
24
libsrc/common/cc65_umul16x16r32.s
Normal file
24
libsrc/common/cc65_umul16x16r32.s
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
;
|
||||||
|
; Ullrich von Bassewitz, 2010-11-03
|
||||||
|
;
|
||||||
|
; CC65 library: 16x16 => 32 unsigned multiplication
|
||||||
|
;
|
||||||
|
|
||||||
|
.export _cc65_umul16x16r32
|
||||||
|
.import umul16x16r32, popax
|
||||||
|
.importzp ptr1
|
||||||
|
|
||||||
|
|
||||||
|
;---------------------------------------------------------------------------
|
||||||
|
; 16x16 => 32 unsigned multiplication routine.
|
||||||
|
|
||||||
|
.proc _cc65_umul16x16r32
|
||||||
|
|
||||||
|
sta ptr1
|
||||||
|
stx ptr1+1
|
||||||
|
jsr popax
|
||||||
|
jmp umul16x16r32
|
||||||
|
|
||||||
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user