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

📄 ex8_4.asm

📁 ART OF Assembly Language Programming, 很不错
💻 ASM
字号:
; 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -