From: IrgendwerA8 Date: Thu, 24 May 2018 09:37:17 +0000 (+0200) Subject: Changed the name of the file too. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=71420223bcfed2176edb385dfbd231713b234ca9;p=cc65 Changed the name of the file too. --- diff --git a/libsrc/runtime/absvaludiv.s b/libsrc/runtime/absvaludiv.s deleted file mode 100644 index 59c2914b1..000000000 --- a/libsrc/runtime/absvaludiv.s +++ /dev/null @@ -1,22 +0,0 @@ -; -; Christian Krueger, 23-May-2018 -; -; CC65 runtime: helper call for mod/div with signed ints -; -; When negating values, we will ignore the possibility here, that one of the -; values is $8000, in which case the negate will fail. - - .export absvaludiv16 - .import _abs, popax, udiv16 - .importzp ptr1, ptr4 - - -absvaludiv16: - jsr _abs - sta ptr4 - stx ptr4+1 ; Save right absolute operand - jsr popax - jsr _abs - sta ptr1 - stx ptr1+1 ; Save left absolute operand - jmp udiv16 diff --git a/libsrc/runtime/absvaludiv16.s b/libsrc/runtime/absvaludiv16.s new file mode 100644 index 000000000..59c2914b1 --- /dev/null +++ b/libsrc/runtime/absvaludiv16.s @@ -0,0 +1,22 @@ +; +; Christian Krueger, 23-May-2018 +; +; CC65 runtime: helper call for mod/div with signed ints +; +; When negating values, we will ignore the possibility here, that one of the +; values is $8000, in which case the negate will fail. + + .export absvaludiv16 + .import _abs, popax, udiv16 + .importzp ptr1, ptr4 + + +absvaludiv16: + jsr _abs + sta ptr4 + stx ptr4+1 ; Save right absolute operand + jsr popax + jsr _abs + sta ptr1 + stx ptr1+1 ; Save left absolute operand + jmp udiv16