⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _strncmp.asm

📁 很少见的源码公开的msc51和z80的c编译器。
💻 ASM
字号:
;--------------------------------------------------------; File Created by SDCC : FreeWare ANSI-C Compiler; Version 2.3.0 Thu Sep 20 10:57:49 2001;--------------------------------------------------------	.module _strncmp	;--------------------------------------------------------; Public variables in this module;--------------------------------------------------------	.globl _strncmp;--------------------------------------------------------; 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;	_strncmp.c 27;	genLabel;	genFunction;	---------------------------------; Function strncmp; ---------------------------------___strncmp_start:_strncmp:	push	ix	ld	ix,#0	add	ix,sp;	_strncmp.c 33;	genIfx;	AOP_STK for 	ld	a,8(ix); Rule 8: Removed redundent or for (ix)	or	a,9(ix)	jp	nz,00114$;	_strncmp.c 34;	genRet	ld	hl,#0x0000	jp	00108$;	_strncmp.c 36;	genLabel00114$:;	genAssign;	AOP_STK for 	ld	c,4(ix)	ld	b,5(ix);	genAssign;	(operands are equal 3);	genLabel00105$:;	genMinus;	AOP_STK for 	ld	l,8(ix)	ld	h,9(ix)	dec	hl	ld	a,l	ld	d,h	ld	8(ix),a	ld	9(ix),d;	genAssign;	(operands are equal 4);	genIfx;	AOP_STK for 	ld	a,8(ix); Rule 8: Removed redundent or for (ix)	or	a,9(ix)	jp	z,00107$;	genPointerGet	ld	a,(bc)	ld	e,a;	genIfx	xor	a,a	or	a,e	jp	z,00107$;	genPointerGet;	AOP_STK for 	ld	l,6(ix)	ld	h,7(ix)	ld	d,(hl);	genCmpEq; genCmpEq: left 1, right 1, result 0	ld	a,e	cp	d; Rule 4: Changed jp order	jp	z,00116$00115$:	jp	00107$00116$:;	_strncmp.c 37;	genPlus;	genPlusIncr	inc	bc;	_strncmp.c 38;	genPlus;	AOP_STK for ;	genPlusIncr	inc	6(ix);	genGoto	jp	nz,00105$	inc	7(ix)00117$:	jp	00105$;	genLabel00107$:;	_strncmp.c 41;	genPointerGet	ld	a,(bc)	ld	c,a;	genPointerGet;	AOP_STK for 	ld	l,6(ix)	ld	h,7(ix)	ld	b,(hl);	genMinus	ld	a,c	sub	a,b;	genCast; Rule 1: Removed redundent load	ld	c,a	rla		sbc	a,a	ld	b,a;	genRet	ld	l,c	ld	h,b;	genLabel00108$:;	genEndFunction	pop	ix	ret___strncmp_end:	.area _CODE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -