summaryrefslogtreecommitdiff
path: root/device/lib/stm8/_strspn.asm
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2019-10-23 03:38:32 +0200
committerXavier ASUS <xavi92psx@gmail.com>2019-10-23 03:38:32 +0200
commit2cece67cb5af0339e4ab1f18b0bce2f0b4e6ebdd (patch)
treeb2fbf4e99f194213527304c9189abe65c163ac0b /device/lib/stm8/_strspn.asm
parented26eb00026800d1d2ff6289627216c7d1f0d459 (diff)
downloadsdcc-gas-2cece67cb5af0339e4ab1f18b0bce2f0b4e6ebdd.tar.gz
Removed intermediate files
Diffstat (limited to 'device/lib/stm8/_strspn.asm')
-rw-r--r--device/lib/stm8/_strspn.asm93
1 files changed, 0 insertions, 93 deletions
diff --git a/device/lib/stm8/_strspn.asm b/device/lib/stm8/_strspn.asm
deleted file mode 100644
index addf0de..0000000
--- a/device/lib/stm8/_strspn.asm
+++ /dev/null
@@ -1,93 +0,0 @@
-;--------------------------------------------------------
-; File Created by SDCC : free open source ANSI-C Compiler
-; Version 3.9.3 #11345 (Linux)
-;--------------------------------------------------------
- .module _strspn
- .optsdcc -mstm8
-
-;--------------------------------------------------------
-; Public variables in this module
-;--------------------------------------------------------
- .globl _strchr
- .globl _strspn
-;--------------------------------------------------------
-; 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
-; ../_strspn.c: 31: size_t strspn ( const char * string, const char * control )
-; -----------------------------------------
-; function strspn
-; -----------------------------------------
-_strspn:
- sub sp, #2
-; ../_strspn.c: 36: while (ch = *string) {
- clrw x
- ldw (0x01, sp), x
- ldw y, (0x05, sp)
-00104$:
- ld a, (y)
- ld xl, a
- tnz a
- jreq 00106$
-; ../_strspn.c: 37: if ( strchr(control,ch) )
- clr a
- ld xh, a
- pushw y
- pushw x
- ldw x, (0x0b, sp)
- pushw x
- call _strchr
- addw sp, #4
- popw y
- tnzw x
- jreq 00106$
-; ../_strspn.c: 38: count++ ;
- ldw x, (0x01, sp)
- incw x
- ldw (0x01, sp), x
-; ../_strspn.c: 41: string++ ;
- incw y
- jra 00104$
-00106$:
-; ../_strspn.c: 44: return count ;
- ldw x, (0x01, sp)
-; ../_strspn.c: 45: }
- addw sp, #2
- ret
- .area CODE
- .area CONST
- .area INITIALIZER
- .area CABS (ABS)