对照书本看了N遍,还是不知道哪里写错了。。
assume cs:code,ds:data,ss:stack
data segment
dw 0123h,0456h,0789h,0abc,0defh,0fedh,0cbah,0987h
data ends
stack segment
dw 0,0,0,0,0,0,0,0
stack ends
code segment
start:mov ax,stack
mov ss,ax
mov sp,16
mov ax,data
mov ds,ax
push ds:[0]
push ds:[2]
pop ds:[2]
pop ds:[0]
mov ax,4c00h
int 21h
code ends
end start
上masm后的结果
C:\masm>masm c:\s2.txt;
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987. All rights reserved.
c:\s2.txt(4): error A2107: Non-digit in number
50590 + 450130 Bytes symbol space free
0 Warning Errors
1 Severe Errors
C:\masm>
一个重大错误。。。我不知道哪里出错了,请达人给看看。 |