📄 _strchr.asm
字号:
;--------------------------------------------------------; File Created by SDCC : FreeWare ANSI-C Compiler; Version 2.3.0 Thu Sep 20 10:57:48 2001;-------------------------------------------------------- .module _strchr ;--------------------------------------------------------; Public variables in this module;-------------------------------------------------------- .globl _strchr;--------------------------------------------------------; special function registers;--------------------------------------------------------;--------------------------------------------------------; special function bits ;--------------------------------------------------------;--------------------------------------------------------; internal ram data;-------------------------------------------------------- .area _DATA;--------------------------------------------------------; 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; _strchr.c 27; genLabel; genFunction; ---------------------------------; Function strchr; ---------------------------------___strchr_start:_strchr: push ix ld ix,#0 add ix,sp; _strchr.c 32; genAssign; AOP_STK for ld c,4(ix) ld b,5(ix); genLabel00102$:; genPointerGet ld a,(bc) ld e,a; genIfx xor a,a or a,e jp z,00104$; genCmpEq; AOP_STK for ; genCmpEq: left 1, right 1, result 0 ld a,6(ix) cp e; Rule 5: Changed jump logic jp z,00104$00113$:; _strchr.c 33; genPlus; genPlusIncr inc bc; genGoto jp 00102$; genLabel00104$:; _strchr.c 35; genCmpEq; AOP_STK for ; genCmpEq: left 1, right 1, result 0 ld a,6(ix) cp e; Rule 4: Changed jp order jp z,00115$00114$: jp 00106$00115$:; _strchr.c 36; genRet ld l,c ld h,b jp 00107$; genLabel00106$:; _strchr.c 37; genRet ld hl,#0x0000; genLabel00107$:; genEndFunction pop ix ret___strchr_end: .area _CODE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -