当前位置: 技术问答>linux和unix
谁能告诉我,这是什么原因啊???汇编的,
来源: 互联网 发布时间:2014-10-24
本文导语: 0000 code segment assume cs:code,ds:code 0000 llll: 0000 B8 ---- R mov ax,code 0003 8E D8 mov ds,ax 0005 EB 03 90 jmp statt 0008 0B intCount db 11 0009 ?? ccc db ? 0...
0000 code segment
assume cs:code,ds:code
0000 llll:
0000 B8 ---- R mov ax,code
0003 8E D8 mov ds,ax
0005 EB 03 90 jmp statt
0008 0B intCount db 11
0009 ?? ccc db ?
000A statt:
000A 8D 1E 0009 R lea bx,ccc
Mov [BX],[intCount]
11.ASM(11): error A2052: Improper operand type
《〈〈这是我补充的:为什么不能产生操作码????〉〉》
000E code ends
end llll
assume cs:code,ds:code
0000 llll:
0000 B8 ---- R mov ax,code
0003 8E D8 mov ds,ax
0005 EB 03 90 jmp statt
0008 0B intCount db 11
0009 ?? ccc db ?
000A statt:
000A 8D 1E 0009 R lea bx,ccc
Mov [BX],[intCount]
11.ASM(11): error A2052: Improper operand type
《〈〈这是我补充的:为什么不能产生操作码????〉〉》
000E code ends
end llll
|
错误在这句把: Mov [BX],[intCount] 原因: 根据汇编语法,MOV 的两个操作数不能同时为内存地址;改成以下看看: mov al,[bx] mov [intCount],al
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。