|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 qwe1231069 于 2016-9-14 17:47 编辑
(masm5运行)
- assume cs:codesg,ss:stacksg,ds:datasg
- 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,datasg
- mov ds,ax
- mov bx,0
- mov si,0
- mov ax,stacksg
- mov ss,ax
- mov sp,10h
- mov cx,4
- s0: push cx
- mov si,0
- mov cx,4
- s: mov al,[bx+3+si]
- and al,11011111b
- mov [bx+3+si],al
- inc si
- loop s
- add bx,10h
- pop cx
- loop s0
- mov ax,4c00h
- int 21h
- codesg ends
- end start
复制代码
我明明都设置好数据段、堆栈段了它提示没有堆栈段
照理说我已经关联了ss:stacksg他应该有堆栈啊,不是吗?
|
|