masm 编译txt不生成obj文件,可是没有发现源代码哪儿错了啊
assumecs:code,ss:stac,ds:datastacsegmentdw0,0,0,0,0,0,0,0stacendsdatasegmentdb'1.disp...
assume cs:code,ss:stac,ds:data
stac segment
dw 0,0,0,0,0,0,0,0
stac ends
data segment
db '1. display '
db '2. brows '
db '3. replace '
db '4. modify '
data ends
code segment
start:mov ax,stac
mov ss,ax
mov sp,16
mov ax,data
mov ds,ax
mov bx,0
mvo cx,4
s:push cx
mov si,3
mov cx,4
s0:mov al,[bx+si]
and al,11011111b
mov [bx+si],al
inc si
loop s0
add bx,16
pop cx
loop s
mov ax,4c00h
int 21h
code ends
end start 展开
stac segment
dw 0,0,0,0,0,0,0,0
stac ends
data segment
db '1. display '
db '2. brows '
db '3. replace '
db '4. modify '
data ends
code segment
start:mov ax,stac
mov ss,ax
mov sp,16
mov ax,data
mov ds,ax
mov bx,0
mvo cx,4
s:push cx
mov si,3
mov cx,4
s0:mov al,[bx+si]
and al,11011111b
mov [bx+si],al
inc si
loop s0
add bx,16
pop cx
loop s
mov ax,4c00h
int 21h
code ends
end start 展开
2014-03-14
展开全部
把文件后缀名改为.asm
追问
改过,还是不行
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询