diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-23 03:38:32 +0200 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-23 03:38:32 +0200 |
| commit | 2cece67cb5af0339e4ab1f18b0bce2f0b4e6ebdd (patch) | |
| tree | b2fbf4e99f194213527304c9189abe65c163ac0b /device/lib/stm8/_strrchr.asm | |
| parent | ed26eb00026800d1d2ff6289627216c7d1f0d459 (diff) | |
| download | sdcc-gas-2cece67cb5af0339e4ab1f18b0bce2f0b4e6ebdd.tar.gz | |
Removed intermediate files
Diffstat (limited to 'device/lib/stm8/_strrchr.asm')
| -rw-r--r-- | device/lib/stm8/_strrchr.asm | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/device/lib/stm8/_strrchr.asm b/device/lib/stm8/_strrchr.asm deleted file mode 100644 index e13ca42..0000000 --- a/device/lib/stm8/_strrchr.asm +++ /dev/null @@ -1,102 +0,0 @@ -;-------------------------------------------------------- -; File Created by SDCC : free open source ANSI-C Compiler -; Version 3.9.3 #11345 (Linux) -;-------------------------------------------------------- - .module _strrchr - .optsdcc -mstm8 - -;-------------------------------------------------------- -; Public variables in this module -;-------------------------------------------------------- - .globl _strrchr -;-------------------------------------------------------- -; 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 -; ../_strrchr.c: 34: char * strrchr ( const char * string, int ch ) -; ----------------------------------------- -; function strrchr -; ----------------------------------------- -_strrchr: - sub sp, #2 -; ../_strrchr.c: 37: const char * start = string; - ldw y, (0x05, sp) -; ../_strrchr.c: 39: while (*string++) /* find end of string */ - ldw x, y -00101$: - ld a, (x) - incw x - tnz a - jrne 00101$ -; ../_strrchr.c: 42: while (--string != start && *string != ch) - ldw (0x01, sp), x -00105$: - ldw x, (0x01, sp) - decw x - ldw (0x01, sp), x - ld a, (x) - clrw x - ld xl, a - cpw x, (0x07, sp) - jrne 00140$ - ld a, #0x01 - .byte 0x21 -00140$: - clr a -00141$: - ldw x, y - cpw x, (0x01, sp) - jreq 00107$ - tnz a - jreq 00105$ -00107$: -; ../_strrchr.c: 45: if (*string == ch) /* char found ? */ - tnz a - jreq 00109$ -; ../_strrchr.c: 46: return( (char *)string ); - ldw x, (0x01, sp) -; ../_strrchr.c: 48: return (NULL) ; - .byte 0x21 -00109$: - clrw x -00110$: -; ../_strrchr.c: 49: } - addw sp, #2 - ret - .area CODE - .area CONST - .area INITIALIZER - .area CABS (ABS) |
