| 
 | 
 
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册  
 
x
 
求各位大佬帮忙看看我这样做为什么显示不对   
 
- assume cs:code,ds:data 
 
  
- data segment
 
 -         db 'welcome to masm!'        
 
 -         db 02h,24h,71h
 
 - data ends
 
  
- code segment
 
  
- start:        
 
 -         mov ax,data
 
 -         mov ds,ax
 
  
-         mov ax,0b872h
 
 -         mov es,ax
 
  
-         mov si,0
 
 -         mov bx,0
 
 -         mov cx,16
 
 -         
 
 -         s: 
 
 -         mov ah,0
 
 -         mov al,[bx]
 
 -         mov es:[si],al
 
 -         
 
 -         inc bx
 
 -         inc si
 
 -         inc si
 
 -         loop s
 
 -         
 
 -         mov si,0
 
 -         mov bx,0
 
 -         mov cx,16
 
  
-         s0:
 
 -         mov ah,0
 
 -         mov al,[16]
 
 -         mov es:[bx+1],al
 
 -         inc bx
 
 -         inc bx
 
 -         loop s0
 
 -         
 
 -         mov bx,0
 
 -         mov cx,16
 
  
-         s1:
 
 -         mov ah,0
 
 -         mov al,[17]
 
 -         mov es:[bx+1],al
 
 -         inc bx
 
 -         inc bx
 
 -         loop s1
 
 -         
 
 -         mov bx,0
 
 -         mov cx,16
 
  
-         s2:
 
 -         mov ah,0
 
 -         mov al,[18]
 
 -         mov es:[bx+1],al
 
 -         inc bx
 
 -         inc bx
 
 -         loop s2
 
 -         
 
 -         mov ax,4c00h
 
 -         int 21h
 
 -         
 
 - code ends
 
 - end start
 
  复制代码 
 
- assume cs:code,ds:data
 
  
- data segment  
 
 -     db 'welcome to masm!'
 
 -     db 02h,24h,71h
 
 - data ends
 
  
- code segment
 
 - start:
 
 -     mov ax, data
 
 -     mov ds, ax
 
  
-     mov ax, 0b872h
 
 -     mov es, ax
 
  
-     mov di, 0
 
 -     mov bx, 0
 
 -     mov cx, 16
 
  
-     ; 第一行
 
 -     s0:
 
 -     mov al, ds:[bx]
 
 -     mov ah, ds:[16]
 
 -     mov es:[di], ax
 
 -     add di, 2
 
 -     inc bx
 
 -     loop s0
 
  
-     mov di, 0
 
 -     mov bx, 0
 
 -     mov cx, 16
 
 -     ;第二行
 
 -     s1:
 
 -     mov al, ds:[bx]
 
 -     mov ah, ds:[17]
 
 -     mov es:160[di], ax ; 这里换行
 
 -     add di, 2
 
 -     inc bx
 
 -     loop s1
 
  
-     mov di, 0
 
 -     mov bx, 0
 
 -     mov cx, 16
 
 -     ;第三行
 
 -     s2:
 
 -     mov al, ds:[bx]
 
 -     mov ah, ds:[18]
 
 -     mov es:320[di], ax ; 这里换行
 
 -     add di, 2
 
 -     inc bx
 
 -     loop s2
 
  
-     mov ax, 4c00h
 
 -     int 21h
 
 - code ends
 
 - end start  
 
  复制代码 
 
 
 |   
 
 
 
 |