首页 > 代码库 > 汇编实验6

汇编实验6

2、编程,完成7.9中的程序

assume cs:codesg,ds:datasg,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       
datasg ends

codesg segment
start:
    mov ax,datasg
    mov ds,ax
    mov si,0
    mov cx,4
s0:
    push cx
    mov bx,0
    mov cx,4
s1:
    mov al,[bx][si].3
    and al,11011111B
    mov [bx][si].3,al
    add bx,10h
    loop s1

    inc si
    pop cx
    loop s0

    mov ax,4c00h
    int 21h

codesg ends
end start

 

汇编实验6