实验9源码
assume cs:code,ds:datadata segment
db 'Welcome masm!'
data ends
code segment
start:
mov ax,data
mov ds,ax
mov ax,0b8a0h
mov es,ax
mov bx,64
mov si,0
mov cx,13
s:
mov al,ds:
mov es:,al
mov ax,02h
mov es:,ax
add si,1
add bx,2
loop s
mov ax,0b8aah
mov es,ax
mov bx,64
mov si,0
mov cx,13
s0:
mov al,ds:
mov es:,al
mov ax,24h
mov es:,ax
add si,1
add bx,2
loop s0
mov ax,0b8b4h
mov es,ax
mov bx,64
mov si,0
mov cx,13
s1:
mov al,ds:
mov es:,al
mov ax,71h
mov es:,ax
add si,1
add bx,2
loop s1
mov ax,4c00h
int 21h
code ends
end start
页:
[1]