summaryrefslogtreecommitdiff
path: root/device/lib/stm8/mbrtoc32.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/mbrtoc32.asm
parented26eb00026800d1d2ff6289627216c7d1f0d459 (diff)
downloadsdcc-gas-2cece67cb5af0339e4ab1f18b0bce2f0b4e6ebdd.tar.gz
Removed intermediate files
Diffstat (limited to 'device/lib/stm8/mbrtoc32.asm')
-rw-r--r--device/lib/stm8/mbrtoc32.asm114
1 files changed, 0 insertions, 114 deletions
diff --git a/device/lib/stm8/mbrtoc32.asm b/device/lib/stm8/mbrtoc32.asm
deleted file mode 100644
index c7dbf1e..0000000
--- a/device/lib/stm8/mbrtoc32.asm
+++ /dev/null
@@ -1,114 +0,0 @@
-;--------------------------------------------------------
-; File Created by SDCC : free open source ANSI-C Compiler
-; Version 3.9.3 #11345 (Linux)
-;--------------------------------------------------------
- .module mbrtoc32
- .optsdcc -mstm8
-
-;--------------------------------------------------------
-; Public variables in this module
-;--------------------------------------------------------
- .globl _mbrtowc
- .globl _mbrtoc32
-;--------------------------------------------------------
-; ram data
-;--------------------------------------------------------
- .area DATA
-_mbrtoc32_sps_65536_16:
- .ds 3
-;--------------------------------------------------------
-; 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
-; ../mbrtoc32.c: 34: size_t mbrtoc32(char32_t *restrict pc32, const char *restrict s, size_t n, mbstate_t *restrict ps)
-; -----------------------------------------
-; function mbrtoc32
-; -----------------------------------------
-_mbrtoc32:
- sub sp, #6
-; ../mbrtoc32.c: 40: if(!ps)
- ldw x, (0x0f, sp)
- jrne 00102$
-; ../mbrtoc32.c: 41: ps = &sps;
- ldw x, #(_mbrtoc32_sps_65536_16 + 0)
- ldw (0x0f, sp), x
-00102$:
-; ../mbrtoc32.c: 43: if(!pc32)
- ldw x, (0x09, sp)
- jrne 00104$
-; ../mbrtoc32.c: 44: return(mbrtowc(0, s, n, ps));
- ldw x, (0x0f, sp)
- pushw x
- ldw x, (0x0f, sp)
- pushw x
- ldw x, (0x0f, sp)
- pushw x
- clrw x
- pushw x
- call _mbrtowc
- addw sp, #8
- jra 00107$
-00104$:
-; ../mbrtoc32.c: 46: ret = mbrtowc(&wc, s, n, ps);
- ldw x, sp
- incw x
- exgw x, y
- ldw x, (0x0f, sp)
- pushw x
- ldw x, (0x0f, sp)
- pushw x
- ldw x, (0x0f, sp)
- pushw x
- pushw y
- call _mbrtowc
- addw sp, #8
-; ../mbrtoc32.c: 48: if(ret <= MB_LEN_MAX)
- ldw (0x05, sp), x
- cpw x, #0x0004
- jrugt 00106$
-; ../mbrtoc32.c: 49: *pc32 = wc;
- ldw x, (0x09, sp)
- ldw y, (0x03, sp)
- ldw (0x2, x), y
- ldw y, (0x01, sp)
- ldw (x), y
-00106$:
-; ../mbrtoc32.c: 51: return(ret);
- ldw x, (0x05, sp)
-00107$:
-; ../mbrtoc32.c: 52: }
- addw sp, #6
- ret
- .area CODE
- .area CONST
- .area INITIALIZER
- .area CABS (ABS)