assert.asm

来自「很少见的源码公开的msc51和z80的c编译器。」· 汇编 代码 · 共 106 行

ASM
106
字号
;--------------------------------------------------------; File Created by SDCC : FreeWare ANSI-C Compiler; Version 2.3.0 Thu Sep 20 10:57:49 2001;--------------------------------------------------------	.module assert	;--------------------------------------------------------; Public variables in this module;--------------------------------------------------------	.globl __assert;--------------------------------------------------------; 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;	assert.c 4;	genLabel;	genFunction;	---------------------------------; Function _assert; ---------------------------------____assert_start:__assert:	push	ix	ld	ix,#0	add	ix,sp;	assert.c 6;	genIpush; _saveRegsForCall: sendSetSize: 0 deInUse: 0 bcInUse: 0 deSending: 0;	AOP_STK for 	ld	l,6(ix)	ld	h,7(ix)	push	hl;	genIpush;	AOP_STK for 	ld	l,8(ix)	ld	h,9(ix)	push	hl;	genIpush;	AOP_STK for 	ld	l,4(ix)	ld	h,5(ix)	push	hl;	genIpush	ld	hl,#__str_0	push	hl;	genCall	call	_printf	ld	hl,#8	add	hl,sp	ld	sp,hl;	assert.c 8;	genLabel00102$:;	genGoto	jp	00102$;	genLabel00104$:;	genEndFunction	pop	ix	ret____assert_end:__str_0:	.ascii "Assert(%s) failed at line %u in file %s."	.db 0x0A	.db 0x00	.area _CODE

⌨️ 快捷键说明

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