当前位置: 代码迷 >> 汇编语言 >> 帮忙看看解决方案
  详细解决方案

帮忙看看解决方案

热度:7995   发布时间:2013-02-26 00:00:00.0
帮忙看看
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 . . .


我编译了一下 出错拉
  相关解决方案