实验九
assume cs:code,ds:datadata segment
db 'welcome to masm!'
db 0ah,0ach,71h;
data ends
code segment
start: mov ax,data
mov ds,ax
mov ax,0b800h
mov es,ax
mov si,0
mov di,0
mov dx,3 ;dx的使用为了和cx和jcxz配合跳出循环
s1:mov bx,0
mov cx,16
s: mov al,
mov ah,
mov es:,ax
inc bx
add di,2
loop s ;单行字母
add di,128
inc si
dec dx
mov cx,dx
jcxz s2
jmpshort s1
s2:mov ax,4c00H
int 21h
code ends
end start
页:
[1]