assume cs:code data segment db "welcome to masm" data ends code segment start: mov ax,data mov ds,ax mov ax,0b800h mov es,ax mov si,0 mov di,10*160+80 mov cx,16 sl: mov al,ds:[si] mov ah,00000010b mov es:[di],ax inc si add di,2 loop sl mov si,0 mov di,11*160+80 mov cx,16 s2: mov al,ds:[si] mov ah,11000010b mov es:[di],ax inc si add di,2 loop s2 mov ax,4c0h int 21h code ends end start