📄 ex8_4.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 + -