📄 _strtok.asm
字号:
;--------------------------------------------------------; File Created by SDCC : FreeWare ANSI-C Compiler; Version 2.3.0 Thu Sep 20 10:57:17 2001;-------------------------------------------------------- .module _strtok ;--------------------------------------------------------; Public variables in this module;-------------------------------------------------------- .globl _strtok_PARM_2 .globl _strtok;--------------------------------------------------------; special function registers;--------------------------------------------------------;--------------------------------------------------------; special function bits ;--------------------------------------------------------;--------------------------------------------------------; internal ram data;-------------------------------------------------------- .area DSEG (DATA)_strtok_s_1_1: .ds 3_strtok_PARM_2:: .ds 3;--------------------------------------------------------; overlayable items in internal ram ;-------------------------------------------------------- .area OSEG (OVR,DATA);--------------------------------------------------------; indirectly addressable internal ram data;-------------------------------------------------------- .area ISEG (DATA);--------------------------------------------------------; bit data;-------------------------------------------------------- .area BSEG (BIT);--------------------------------------------------------; external ram data;-------------------------------------------------------- .area XSEG (XDATA);--------------------------------------------------------; global & static initialisations;-------------------------------------------------------- .area GSINIT (CODE) .area GSFINAL (CODE) .area GSINIT (CODE);--------------------------------------------------------; Home;-------------------------------------------------------- .area HOME (CODE) .area CSEG (CODE);--------------------------------------------------------; code;-------------------------------------------------------- .area CSEG (CODE);------------------------------------------------------------;Allocation info for local variables in function 'strtok';------------------------------------------------------------;s Allocated to in memory with name '_strtok_s_1_1';control Allocated to in memory with name '_strtok_PARM_2';str Allocated to registers r2 r3 r4 ;s1 Allocated to registers r2 r3 r4 ; _strtok.c 32; -----------------------------------------; function strtok; -----------------------------------------_strtok: ar2 = 0x02 ar3 = 0x03 ar4 = 0x04 ar5 = 0x05 ar6 = 0x06 ar7 = 0x07 ar0 = 0x00 ar1 = 0x01; _strtok.c 0 mov r2,dpl mov r3,dph mov r4,b; _strtok.c 39 mov a,r2 orl a,r3 orl a,r4; Peephole 110 removed ljmp by inverse jump logic jz 00102$00114$:; _strtok.c 40 mov _strtok_s_1_1,r2 mov (_strtok_s_1_1 + 1),r3 mov (_strtok_s_1_1 + 2),r400102$:; _strtok.c 42 mov r2,_strtok_s_1_1 mov r3,(_strtok_s_1_1 + 1) mov r4,(_strtok_s_1_1 + 2); _strtok.c 4400105$: mov dpl,_strtok_s_1_1 mov dph,(_strtok_s_1_1 + 1) mov b,(_strtok_s_1_1 + 2) lcall __gptrget; Peephole 105 removed redundant mov mov r5,a; Peephole 110 removed ljmp by inverse jump logic jz 00107$00115$:; _strtok.c 45 mov dpl,_strtok_s_1_1 mov dph,(_strtok_s_1_1 + 1) mov b,(_strtok_s_1_1 + 2) lcall __gptrget mov _strchr_PARM_2,a mov dpl,_strtok_PARM_2 mov dph,(_strtok_PARM_2 + 1) mov b,(_strtok_PARM_2 + 2) push ar2 push ar3 push ar4 lcall _strchr mov r5,dpl mov r6,dph mov r7,b pop ar4 pop ar3 pop ar2 mov a,r5 orl a,r6 orl a,r7; Peephole 110 removed ljmp by inverse jump logic jz 00104$00116$:; _strtok.c 46 mov dpl,_strtok_s_1_1 mov dph,(_strtok_s_1_1 + 1) mov b,(_strtok_s_1_1 + 2) inc _strtok_s_1_1 clr a cjne a,_strtok_s_1_1,00117$ inc (_strtok_s_1_1 + 1)00117$:; Peephole 180 changed mov to clr clr a lcall __gptrput; _strtok.c 47 mov dpl,r2 mov dph,r3 mov b,r4; Peephole 132 changed ljmp to sjmp sjmp 00108$00104$:; _strtok.c 49 inc _strtok_s_1_1 clr a cjne a,_strtok_s_1_1,00118$ inc (_strtok_s_1_1 + 1)00118$: ljmp 00105$00107$:; _strtok.c 51; Peephole 181 used 16 bit load of dptr mov dptr,#0x0000 mov b,#0x0000108$: ret .area CSEG (CODE)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -