assume cs:code, ds:data
data segment
dw 1920,2080,2240,64 db 'welcome to JULNK'
db 82h,0ach,0f9h
data ends
code segment start: mov ax,data mov ds,ax
mov ax,0B800h mov es,ax
mov cx,3 xor di,di xor si,si s1: mov ax,di mov bl,2 div bl mov si,ax mov ah,[si+24]
mov si,ds:[6] mov bp,[di]
mov dx,cx mov bx,0
mov cx,16 s2: mov al,[bx+8] mov es:[bp+si],al mov es:[bp+si+1],ah inc bx add si,2 loop s2
mov cx,dx add di,2 loop s1 mov ax,4c00h int 21h code ends end start
|