diff options
Diffstat (limited to 'device/lib/stm8/_modschar.asm')
| -rw-r--r-- | device/lib/stm8/_modschar.asm | 122 |
1 files changed, 0 insertions, 122 deletions
diff --git a/device/lib/stm8/_modschar.asm b/device/lib/stm8/_modschar.asm deleted file mode 100644 index 6b876d7..0000000 --- a/device/lib/stm8/_modschar.asm +++ /dev/null @@ -1,122 +0,0 @@ -;-------------------------------------------------------- -; File Created by SDCC : free open source ANSI-C Compiler -; Version 3.9.3 #11345 (Linux) -;-------------------------------------------------------- - .module _modschar - .optsdcc -mstm8 - -;-------------------------------------------------------- -; Public variables in this module -;-------------------------------------------------------- - .globl __modschar - .globl __moduschar - .globl __modsuchar -;-------------------------------------------------------- -; 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 -; ../_modschar.c: 31: _modschar (signed char x, signed char y) -; ----------------------------------------- -; function _modschar -; ----------------------------------------- -__modschar: -; ../_modschar.c: 33: return ((int)x % (int)y); - ld a, (0x03, sp) - ld xl, a - rlc a - clr a - sbc a, #0x00 - ld xh, a - ld a, (0x04, sp) - ld yl, a - rlc a - clr a - sbc a, #0x00 - ld yh, a - pushw y - pushw x - call __modsint - addw sp, #4 -; ../_modschar.c: 34: } - ret -; ../_modschar.c: 37: _moduschar (unsigned char x, unsigned char y) -; ----------------------------------------- -; function _moduschar -; ----------------------------------------- -__moduschar: - sub sp, #2 -; ../_modschar.c: 39: return ((int)((signed char)x) % (int)y); - ld a, (0x05, sp) - ld xl, a - rlc a - clr a - sbc a, #0x00 - ld xh, a - ld a, (0x06, sp) - ld (0x02, sp), a - clr (0x01, sp) - ldw y, (0x01, sp) - pushw y - pushw x - call __modsint -; ../_modschar.c: 40: } - addw sp, #6 - ret -; ../_modschar.c: 43: _modsuchar (signed char x, signed char y) -; ----------------------------------------- -; function _modsuchar -; ----------------------------------------- -__modsuchar: -; ../_modschar.c: 45: return ((int)((unsigned char)x) % (int)y); - ld a, (0x03, sp) - clrw y - ld yl, a - ld a, (0x04, sp) - ld xl, a - rlc a - clr a - sbc a, #0x00 - ld xh, a - pushw x - pushw y - call __modsint - addw sp, #4 -; ../_modschar.c: 46: } - ret - .area CODE - .area CONST - .area INITIALIZER - .area CABS (ABS) |
