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 si, 3
mov cx, 4
mov ax, stacksg
mov ss, ax
mov sp, 10h
s1:
push cx
mov cx, 4
mov bx, 0
s2:
mov al, [bx+si]
and al, 11011111b
mov [bx+si], al
inc bx
loop s2
add si, 16
pop cx
loop s1
mov ax, 4c00h
int 21h
codesg ends
end start
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 si, 3
mov cx, 4
mov ax, stacksg
mov ss, ax
mov sp, 10h
s1:
push cx
mov cx, 4
mov bx, 0
s2:
mov al, [bx+si]
and al, 11011111b
mov [bx+si], al
inc bx
loop s2
add si, 16
pop cx
loop s1
mov ax, 4c00h
int 21h
codesg ends
end start