📄 _strtok.asm
字号:
;--------------------------------------------------------; File Created by SDCC : FreeWare ANSI-C Compiler; Version 2.3.0 Thu Sep 20 10:57:49 2001;-------------------------------------------------------- .module _strtok ;--------------------------------------------------------; Public variables in this module;-------------------------------------------------------- .globl _strtok;--------------------------------------------------------; special function registers;--------------------------------------------------------;--------------------------------------------------------; special function bits ;--------------------------------------------------------;--------------------------------------------------------; internal ram data;-------------------------------------------------------- .area _DATA_strtok_s_1_1: .ds 2;--------------------------------------------------------; overlayable items in internal ram ;-------------------------------------------------------- .area _OVERLAY;--------------------------------------------------------; indirectly addressable internal ram data;-------------------------------------------------------- .area _ISEG;--------------------------------------------------------; bit data;-------------------------------------------------------- .area _BSEG;--------------------------------------------------------; external ram data;-------------------------------------------------------- .area _XSEG;--------------------------------------------------------; global & static initialisations;-------------------------------------------------------- .area _GSINIT .area _GSFINAL .area _GSINIT;--------------------------------------------------------; Home;-------------------------------------------------------- .area _HOME .area _CODE;--------------------------------------------------------; code;-------------------------------------------------------- .area _CODE; _strtok.c 32; genLabel; genFunction; ---------------------------------; Function strtok; ---------------------------------___strtok_start:_strtok: push ix ld ix,#0 add ix,sp; _strtok.c 39; genIfx; AOP_STK for ld a,4(ix); Rule 8: Removed redundent or for (ix) or a,5(ix) jp z,00102$; _strtok.c 40; genAssign; AOP_STK for ld a,4(ix) ld iy,#_strtok_s_1_1 ld 0(iy),a ld a,5(ix) ld 1(iy),a; genLabel00102$:; _strtok.c 42; genAssign ld bc,(_strtok_s_1_1); _strtok.c 44; genLabel00105$:; genAssign ld hl,(_strtok_s_1_1); genPointerGet ld a,(hl); genIfx or a,a jp z,00107$; _strtok.c 45; genAssign ld hl,(_strtok_s_1_1); genPointerGet ld e,(hl); genIpush; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 1 deSending: 0 push bc ld a,e push af inc sp; genIpush; AOP_STK for ld l,6(ix) ld h,7(ix) push hl; genCall call _strchr ld d,h ld e,l pop hl inc sp pop bc; genIfx ld a,e; Rule 7: Removed redundent or or a,d jp z,00104$; _strtok.c 46; genAssign ld hl,(_strtok_s_1_1); genPlus; genPlusIncr ld iy,#_strtok_s_1_1 inc 0(iy) jp nz,00114$ inc 1(iy)00114$:; genAssign (pointer) ld (hl),#0x00; _strtok.c 47; genRet ld l,c ld h,b jp 00108$; genLabel00104$:; _strtok.c 49; genPlus; genPlusIncr ld iy,#_strtok_s_1_1 inc 0(iy); genGoto jp nz,00105$ inc 1(iy)00115$: jp 00105$; genLabel00107$:; _strtok.c 51; genRet ld hl,#0x0000; genLabel00108$:; genEndFunction pop ix ret___strtok_end: .area _CODE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -