好友
阅读权限10
听众
最后登录1970-1-1
|
回首以惘然
发表于 2009-6-13 17:43
本帖最后由 回首以惘然 于 2009-6-13 17:44 编辑
再次麻烦大家。帮我看看。为什么编译错误
.386
.model flat,stdcall
option casemap:none
assume code:cs stack:ss data:ds
data segment
db '1. display '
db '2. brows '
db '3. replace '
db '4. modify '
data ends
stack segment
dw 0,0,0,0,0,0,0,0
stack ends
code segment
start:mov ax,stack
mov ss,ax
mov sp,16
mov ax,data
mov ds,ax
mov cx,4
mov bx,0
s:push cx
mov si,0
mov cx,4
s0:mov ax,[bx][si]3
and ax,0000000011011111b
mov [bx][si]3,al
inc si
loop s0
add bx,16
pop cx
loop s
mov ax,4c00h
int 21h
code ends
end start
end
=======================================================
补充一下。我用的编译器是:RadASM
编译错误提示是:
D:\RadASM\Masm\Projects\1.asm(6) : error A2008: syntax error : code
D:\RadASM\Masm\Projects\1.asm(32) : error A2206: missing operator in expression
D:\RadASM\Masm\Projects\1.asm(34) : error A2206: missing operator in expression
D:\RadASM\Masm\Projects\1.asm(22) : error A2004: symbol type conflict
D:\RadASM\Masm\Projects\1.asm(25) : error A2004: symbol type conflict
构建时发生错误. |
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|