汇编语言(王爽)--实验六

assume cs:codesg,ss:stacksg,ds:datasg

stacksg segment
    dw 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      ;data准备
          mov bx,0
        
          mov cx,4  
       
       s0:push cx
          mov cx,4
          mov si,0
       s1:mov al,[bx+si+3]
          and al,11011111b
          mov [bx+si+3],al
          inc si
          
          loop s1
       
          pop cx
          add bx,16
         
          loop s0
           
          mov ax,4c00h
          int 21h;
codesg ends
    
end start

你可能感兴趣的:(汇编语言--习题+答案)