帮忙看看
code segment
main proc far
assume cs:code
start:
mov dx,0
mov dl,byte ptr 41h
mov ah,2h
int 21h
ret
main endp
code ends
end start
这段代码有问题吗? 能显示结果A,但不正常
[解决办法]
在START:
后加上
push ds
sub ax,ax
push ax
[解决办法]
mov dl,byte ptr 41h;去掉 "byte ptr "
[解决办法]
Assembling: printChar.asm
printChar.asm(15) : error A2006: undefined symbol : start
printChar.asm(15) : error A2148: invalid symbol type in expression : start
Volume in drive C is SYSTEM
Volume Serial Number is C8F7-AC86
Directory of C:\masm32\exercises\printChar
05/27/2007 05:46 PM 148 printChar.asm
1 File(s) 148 bytes
0 Dir(s) 6,102,040,576 bytes free
Press any key to continue . . .
我编译了一下 出错拉