|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
大佬们,这哪里出问题了,我检查了代码也没出问题啊
- assume cs:codes, ds:datas, ss:stacks
- stacks segment
- dw 0,0,0,0,0,0,0,0
- stacks ends
- datas segment
- db '1. display......'
- db '2. browse.......'
- db '3. replace......'
- db '4. modify.......'
- datas ends
- codes segment
- start:
- mov ax,stacks
- mov ss,ax
- mov sp,10H
- mov ax,datas
- mov ds,ax
- mov si,0
- mov cx,4
- s0:
- push cx
- mov bx,0
- mov cx,4
- s1:
- mov al,[si+3+bx]
- and al,11011111b
- mov [si+3+bx],al
- inc bx
- loop s1
- pop cx
- add si,10H
- loop s0
- mov ax,4c00h
- int 21h
- codes ends
- end start
复制代码
你的代码我在 DOSBOX 下用 MASM 5.10B 可以正常编译,没有任何问题。
这两句
- mov al,[si+3+bx]
- mov [si+3+bx],al
复制代码
改为
- mov al,byte ptr [si+3+bx]
- mov byte ptr [si+3+bx],al
复制代码
试试看呢
|
|