assume cs:hhh
hhh segment
mov ax,1000h
mov ss:ax
mov sp:0
add sp:10
push ax
push bx
pop ax
pop bx
mov ax,4c00h
int 21h
hhh ends
end
这里程序什么地方错了,为什么编译不了,这是本人学完本章后为了消化,乱写的,结果发现怎么的也编译不了
Microsoft (R) Macro Assembler Version 5.00
Copyright (C) Microsoft Corp 1981-1985, 1987. All rights reserved.
Source filename [.ASM]: f:\a\4.txt
Object filename [4.OBJ]: f:\a\66
Source listing [NUL.LST]:
Cross-reference [NUL.CRF]:
f:\a\4.txt(4): error A2049: Illegal use of register
f:\a\4.txt(5): error A2038: Left operand must have segment
f:\a\4.txt(6): error A2038: Left operand must have segment
50906 + 450294 Bytes symbol space free
0 Warning Errors
3 Severe Errors
他说有3个地方错了,麻烦大家指教一下,谢谢 |