summaryrefslogtreecommitdiff
path: root/device/lib/stm8/labs.asm
diff options
context:
space:
mode:
Diffstat (limited to 'device/lib/stm8/labs.asm')
-rw-r--r--device/lib/stm8/labs.asm73
1 files changed, 0 insertions, 73 deletions
diff --git a/device/lib/stm8/labs.asm b/device/lib/stm8/labs.asm
deleted file mode 100644
index 507148d..0000000
--- a/device/lib/stm8/labs.asm
+++ /dev/null
@@ -1,73 +0,0 @@
-;--------------------------------------------------------
-; File Created by SDCC : free open source ANSI-C Compiler
-; Version 3.9.3 #11345 (Linux)
-;--------------------------------------------------------
- .module labs
- .optsdcc -mstm8
-
-;--------------------------------------------------------
-; Public variables in this module
-;--------------------------------------------------------
- .globl _labs
-;--------------------------------------------------------
-; ram data
-;--------------------------------------------------------
- .area DATA
-;--------------------------------------------------------
-; ram data
-;--------------------------------------------------------
- .area INITIALIZED
-;--------------------------------------------------------
-; absolute external ram data
-;--------------------------------------------------------
- .area DABS (ABS)
-
-; default segment ordering for linker
- .area HOME
- .area GSINIT
- .area GSFINAL
- .area CONST
- .area INITIALIZER
- .area CODE
-
-;--------------------------------------------------------
-; global & static initialisations
-;--------------------------------------------------------
- .area HOME
- .area GSINIT
- .area GSFINAL
- .area GSINIT
-;--------------------------------------------------------
-; Home
-;--------------------------------------------------------
- .area HOME
- .area HOME
-;--------------------------------------------------------
-; code
-;--------------------------------------------------------
- .area CODE
-; ../labs.c: 63: long int labs(long int j)
-; -----------------------------------------
-; function labs
-; -----------------------------------------
-_labs:
-; ../labs.c: 65: return (j < 0) ? -j : j;
- tnz (0x03, sp)
- jrpl 00103$
- ldw x, (0x05, sp)
- negw x
- ldw y, (0x03, sp)
- jrnc 00111$
- incw y
-00111$:
- negw y
- ret
-00103$:
- ldw x, (0x05, sp)
- ldw y, (0x03, sp)
-; ../labs.c: 66: }
- ret
- .area CODE
- .area CONST
- .area INITIALIZER
- .area CABS (ABS)