王爽 汇编语言 实验六

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
s0:
push cx
mov cx , 4
mov si , 3
s1:
mov al , [bx][si]
and al , 11011111b
mov [bx][si] , al
inc si
loop s1
pop cx
add bx , 16
loop s0

mov ax , 4c00h
int 21h

codesg ends

end start


posted @ 2010-11-14 18:19  BuildNewApp  阅读(572)  评论(0编辑  收藏  举报