汇编新手求助!!! 提示 error A2070: invalid instruction operends
下面是程序assumeds:datasg,cs:codesg,ss:stacksgstacksgsegmentdw0,0,0,0,0,0,0,0stacksgendsda...
下面是程序
assume ds:datasg, cs:codesg,ss:stacksg
stacksg segment
dw 0,0,0,0,0,0,0,0
stacksg ends
datasg segment
db '1.display.......'
db '2.brows.........'
db '3.replace.......'
db '4.modify........'
datasg ends
codesg segment
start:
mov ax,stacksg
mov ss,ax
mov sp,16
mov ax,datasg
mov ds,ax
mov bx,0
mov cx,4
s0:push cx
mov si,0
mov cx,4
s: mov al,[bx+2+si]
and al,11011111b
mov [bx+si+2],al
inc si
loop s
add bx,16
pop cx
loop s0
mov ax,4c00h
int 21h
codesg ends
end start
自己发现了 要写成【bx+si+idata】的形式就好了····s:后面写错了····· 展开
assume ds:datasg, cs:codesg,ss:stacksg
stacksg segment
dw 0,0,0,0,0,0,0,0
stacksg ends
datasg segment
db '1.display.......'
db '2.brows.........'
db '3.replace.......'
db '4.modify........'
datasg ends
codesg segment
start:
mov ax,stacksg
mov ss,ax
mov sp,16
mov ax,datasg
mov ds,ax
mov bx,0
mov cx,4
s0:push cx
mov si,0
mov cx,4
s: mov al,[bx+2+si]
and al,11011111b
mov [bx+si+2],al
inc si
loop s
add bx,16
pop cx
loop s0
mov ax,4c00h
int 21h
codesg ends
end start
自己发现了 要写成【bx+si+idata】的形式就好了····s:后面写错了····· 展开
1个回答
2012-09-22
展开全部
o
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询