]> git.sur5r.net Git - cc65/commitdiff
Changed the name of the file too.
authorIrgendwerA8 <c.krueger.b@web.de>
Thu, 24 May 2018 09:37:17 +0000 (11:37 +0200)
committerIrgendwerA8 <c.krueger.b@web.de>
Thu, 24 May 2018 09:37:17 +0000 (11:37 +0200)
libsrc/runtime/absvaludiv.s [deleted file]
libsrc/runtime/absvaludiv16.s [new file with mode: 0644]

diff --git a/libsrc/runtime/absvaludiv.s b/libsrc/runtime/absvaludiv.s
deleted file mode 100644 (file)
index 59c2914..0000000
+++ /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 (file)
index 0000000..59c2914
--- /dev/null
@@ -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