建立一个01.asm文件。
文件键入如下内容:
assume cs:codesg
codesg segment
start: mov ax,0123h
mov bx,0456h
add ax,bx
add ax,ax
mov ax,4c00h
int 21h
codesg ends
end
然后键入
masm 01;
link 01;
记住一定键入分号,
调试 debug 01.exe
-u反汇编
-t单步执行
-t
看到int21
-p停止
建立一个01.asm文件。
文件键入如下内容:
assume cs:codesg
codesg segment
start: mov ax,0123h
mov bx,0456h
add ax,bx
add ax,ax
mov ax,4c00h
int 21h
codesg ends
end
然后键入
masm 01;
link 01;
记住一定键入分号,
调试 debug 01.exe
-u反汇编
-t单步执行
-t
看到int21
-p停止