assume cs:code,ss:date
date segment
db 'welcome to masm!'
date ends
code segment
start: mov ax,date
mov es,ax
mov si,0
mov ax,0b800h
mov ds,ax
mov bx,1920
mov cx,10h
s:mov al,es:[si]
mov [bx+32],al
mov byte ptr [bx+33],2
mov al,es:[si]
mov [bx+64],al
mov byte ptr [bx+65],00100100b
mov al,es:[si]
mov [bx+98],al
mov byte ptr [bx+99],01110001b
inc si
add bx,2
loop s
mov ax,4c00h
int 21h
code ends
end start |