From c6c752ef8bf822e29c74faf783f62e7f67359a96 Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 26 Mar 2001 20:47:12 +0000 Subject: [PATCH] Added mor specialized decax functions git-svn-id: svn://svn.cc65.org/cc65/trunk@675 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/runtime/Makefile | 6 ++++++ libsrc/runtime/decax3.s | 18 ++++++++++++++++++ libsrc/runtime/decax4.s | 18 ++++++++++++++++++ libsrc/runtime/decax5.s | 18 ++++++++++++++++++ libsrc/runtime/decax6.s | 18 ++++++++++++++++++ libsrc/runtime/decax7.s | 18 ++++++++++++++++++ libsrc/runtime/decax8.s | 18 ++++++++++++++++++ 7 files changed, 114 insertions(+) create mode 100644 libsrc/runtime/decax3.s create mode 100644 libsrc/runtime/decax4.s create mode 100644 libsrc/runtime/decax5.s create mode 100644 libsrc/runtime/decax6.s create mode 100644 libsrc/runtime/decax7.s create mode 100644 libsrc/runtime/decax8.s diff --git a/libsrc/runtime/Makefile b/libsrc/runtime/Makefile index beaab454c..2d554549c 100644 --- a/libsrc/runtime/Makefile +++ b/libsrc/runtime/Makefile @@ -34,6 +34,12 @@ OBJS = add.o \ condes.o \ decax1.o \ decax2.o \ + decax3.o \ + decax4.o \ + decax5.o \ + decax6.o \ + decax7.o \ + decax8.o \ decaxy.o \ decsp1.o \ decsp2.o \ diff --git a/libsrc/runtime/decax3.s b/libsrc/runtime/decax3.s new file mode 100644 index 000000000..3a86d3f2b --- /dev/null +++ b/libsrc/runtime/decax3.s @@ -0,0 +1,18 @@ +; +; Ullrich von Bassewitz, 26.03.2001 +; +; CC65 runtime: Decrement ax by 3 +; + + .export decax3 + + .macpack generic + +.proc decax3 + + sub #3 + bcs @L9 + dex +@L9: rts + +.endproc diff --git a/libsrc/runtime/decax4.s b/libsrc/runtime/decax4.s new file mode 100644 index 000000000..57e5c7c36 --- /dev/null +++ b/libsrc/runtime/decax4.s @@ -0,0 +1,18 @@ +; +; Ullrich von Bassewitz, 26.03.2001 +; +; CC65 runtime: Decrement ax by 4 +; + + .export decax4 + + .macpack generic + +.proc decax4 + + sub #4 + bcs @L9 + dex +@L9: rts + +.endproc diff --git a/libsrc/runtime/decax5.s b/libsrc/runtime/decax5.s new file mode 100644 index 000000000..5b44bbb73 --- /dev/null +++ b/libsrc/runtime/decax5.s @@ -0,0 +1,18 @@ +; +; Ullrich von Bassewitz, 26.03.2001 +; +; CC65 runtime: Decrement ax by 5 +; + + .export decax5 + + .macpack generic + +.proc decax5 + + sub #5 + bcs @L9 + dex +@L9: rts + +.endproc diff --git a/libsrc/runtime/decax6.s b/libsrc/runtime/decax6.s new file mode 100644 index 000000000..0ca4de649 --- /dev/null +++ b/libsrc/runtime/decax6.s @@ -0,0 +1,18 @@ +; +; Ullrich von Bassewitz, 26.03.2001 +; +; CC65 runtime: Decrement ax by 6 +; + + .export decax6 + + .macpack generic + +.proc decax6 + + sub #6 + bcs @L9 + dex +@L9: rts + +.endproc diff --git a/libsrc/runtime/decax7.s b/libsrc/runtime/decax7.s new file mode 100644 index 000000000..17636b574 --- /dev/null +++ b/libsrc/runtime/decax7.s @@ -0,0 +1,18 @@ +; +; Ullrich von Bassewitz, 26.03.2001 +; +; CC65 runtime: Decrement ax by 7 +; + + .export decax7 + + .macpack generic + +.proc decax7 + + sub #7 + bcs @L9 + dex +@L9: rts + +.endproc diff --git a/libsrc/runtime/decax8.s b/libsrc/runtime/decax8.s new file mode 100644 index 000000000..abeb632d6 --- /dev/null +++ b/libsrc/runtime/decax8.s @@ -0,0 +1,18 @@ +; +; Ullrich von Bassewitz, 26.03.2001 +; +; CC65 runtime: Decrement ax by 8 +; + + .export decax8 + + .macpack generic + +.proc decax8 + + sub #8 + bcs @L9 + dex +@L9: rts + +.endproc -- 2.39.5