|

楼主 |
发表于 2020-4-4 15:19:54
|
显示全部楼层
问题7.9:
- 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,stacksg
- mov ss,ax
- mov sp,16
- mov ax,datasg
- mov ds,ax
- mov bx,0
- mov cx,4
- s:
- push cx
- mov si,0
- mov cx,4
- s0:
- mov al,[bx+3+si]
- and al,11011111b
- mov [bx+3+si],al
- inc si
- loop s0
- add bx,16
- pop cx
- loop s
- mov ax,4c00H
- int 21h
- codesg ends
- end start
复制代码 |
|