]> git.sur5r.net Git - cc65/commitdiff
Added cc65_umul8x8r16() based on umul8x8r16.
authorOliver Schmidt <ol.sc@web.de>
Thu, 27 Mar 2014 20:22:02 +0000 (21:22 +0100)
committerOliver Schmidt <ol.sc@web.de>
Thu, 27 Mar 2014 20:22:02 +0000 (21:22 +0100)
libsrc/common/cc65_umul8x8r16.s [new file with mode: 0644]

diff --git a/libsrc/common/cc65_umul8x8r16.s b/libsrc/common/cc65_umul8x8r16.s
new file mode 100644 (file)
index 0000000..5cbb4f8
--- /dev/null
@@ -0,0 +1,23 @@
+;
+; Oliver Schmidt, 2014-03-27
+;
+; CC65 library: 8x8 => 16 unsigned multiplication
+;
+
+        .export         _cc65_umul8x8r16
+        .import         umul8x8r16, popa
+
+        .include        "zeropage.inc"
+
+
+;---------------------------------------------------------------------------
+; 8x8 => 16 unsigned multiplication routine.
+
+
+.proc   _cc65_umul8x8r16
+
+        sta     ptr1
+        jsr     popa
+        jmp     umul8x8r16
+
+.endproc