ex8_4.asm

来自「ART OF Assembly Language Programming, 很不」· 汇编 代码 · 共 47 行

ASM
47
字号
; Ex8_4.asm
;
; Demonstration of IFDEF to control
; debugging features.  This code
; assumes there are two levels of
; debugging controlled by the two
; symbols DEBUG1 and DEBUG2.  In
; this code example DEBUG1 is
; defined while DEBUG2 is not.

		.xlist
		include	stdlib.a
		.list
		.nolistmacro
		.listif

DEBUG1		=	0

cseg		segment
DummyProc	proc
		ifdef	DEBUG2
		print
		byte	"In DummyProc"
		byte	cr,lf,0
		endif
		ret
DummyProc	endp

Main		proc
		ifdef	DEBUG1
		print
		byte	"Calling DummyProc"
		byte	cr,lf,0
		endif

		call	DummyProc

		ifdef	DEBUG1
		print
		byte	"Return from DummyProc"
		byte	cr,lf,0
		endif
		ret
Main		endp
cseg		ends
		end

⌨️ 快捷键说明

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