

- [游客] stack ends code segmeng (segment) 04/22 17:05
- [游客] 我也碰到相同情况 05/14 17:04
- [wangzh001] 我照着书里面的内容写的程序,为什么却不能编译呢? 以下是我编译的时候提示的错误.. Source 03/27 22:10
[ 游客 发表于 2009-04-22 17:05 ]
stack ends
code segmeng (segment)
[ 游客 发表于 2008-05-14 17:04 ]
我也碰到相同情况
[ wangzh001 发表于 2008-03-27 22:10 ]
我照着书里面的内容写的程序,为什么却不能编译呢?
以下是我编译的时候提示的错误..
Source filename [.ASM]: 2
Object filename [2.OBJ]:
Source listing [NUL.LST]:
Cross-reference [NUL.CRF]:
2.ASM(1): error A2009: Symbol not defined: CODE
2.ASM(8): error A2105: Expected: instruction or directive
2.ASM(9): error A2024: Segment parameters are changed
2.ASM(10): error A2086: Data emitted with no segment
2.ASM(11): error A2086: Data emitted with no segment
2.ASM(12): error A2086: Data emitted with no segment
2.ASM(13): error A2086: Data emitted with no segment
2.ASM(14): error A2086: Data emitted with no segment
2.ASM(15): error A2086: Data emitted with no segment
2.ASM(16): error A2086: Data emitted with no segment
2.ASM(17): error A2086: Data emitted with no segment
2.ASM(18): error A2086: Data emitted with no segment
2.ASM(19): error A2086: Data emitted with no segment
2.ASM(20): error A2000: Block nesting error
50866 + 415822 Bytes symbol space free
0 Warning Errors
14 Severe Errors
程序如下:
assume cs:code,ds:data,ss:stack
data segment
dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
data ends
stack segment
dw 0,0,0,0,0,0,0,0
stack ends
code segmeng
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