diff --git a/libsrc/runtime/Makefile b/libsrc/runtime/Makefile index a7c959700..7ab599219 100644 --- a/libsrc/runtime/Makefile +++ b/libsrc/runtime/Makefile @@ -155,7 +155,6 @@ OBJS = add.o \ mod.o \ mul.o \ mul8.o \ - mul8x8r16.o \ mulax3.o \ mulax5.o \ mulax6.o \ @@ -222,6 +221,7 @@ OBJS = add.o \ udiv32by16r16.o \ umod.o \ umul16x16r32.o \ + umul8x8r16.o \ xor.o \ zeropage.o diff --git a/libsrc/runtime/mul8x8r16.s b/libsrc/runtime/umul8x8r16.s similarity index 89% rename from libsrc/runtime/mul8x8r16.s rename to libsrc/runtime/umul8x8r16.s index a09618124..543110f1b 100644 --- a/libsrc/runtime/mul8x8r16.s +++ b/libsrc/runtime/umul8x8r16.s @@ -4,8 +4,7 @@ ; CC65 runtime: 8x8 => 16 multiplication ; - .export umul8x8r16 - .export mul8x8r16 := umul8x8r16 + .export umul8x8r16, umul8x8r16m .importzp ptr1, ptr3 @@ -18,6 +17,8 @@ ; umul8x8r16: + sta ptr3 +umul8x8r16m: lda #0 ; Clear byte 1 ldy #8 ; Number of bits lsr ptr1 ; Get first bit of lhs into carry @@ -31,5 +32,6 @@ umul8x8r16: tax stx ptr1+1 ; Result in a/x and ptr1 lda ptr1 ; Load the result - rts ; Done + rts ; Done +