#2
Valenciax2018-01-25 07:39
|
程序代码:
assume ds:datasg,cs:codesg,ss:stacksg
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 '
db '5.arrange '
datasg ends
codesg segment
start:mov ax,datasg
mov ds,ax
mov ax,stacksg
mov ss,ax
mov sp,10h
mov bx,0
mov cx,5
s:push cx
mov cx,4
mov si,0
y:mov al,[si+bx+2]
and al,0dfh
mov [si+bx+2],al
inc si
loop y
pop cx
add bx,10h
loop s
mov ax,4c00h
int 21h
codesg ends
end start
end
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 '
db '5.arrange '
datasg ends
codesg segment
start:mov ax,datasg
mov ds,ax
mov ax,stacksg
mov ss,ax
mov sp,10h
mov bx,0
mov cx,5
s:push cx
mov cx,4
mov si,0
y:mov al,[si+bx+2]
and al,0dfh
mov [si+bx+2],al
inc si
loop y
pop cx
add bx,10h
loop s
mov ax,4c00h
int 21h
codesg ends
end start
end
只有本站会员才能查看附件,请 登录