; multi-segment executable file template.
data segment
; add your data here!
pkey db "press any key...$"
ends
stack segment
dw 128 dup(0)
ends
code segment
start:
; set segment registers:
mov ax, data
mov ds, ax
mov es, ax
; add your code here
mov ah,00100001b
mov al,255
mov bx,0b800h
mov es,bx
xor di,di
mov cx,20
rep stosw
add di,120
mov ah,255
mov al,255
mov cx,20
rep stosw
add di,120
mov ah,01000000b
mov al,255
mov cx,20
rep stosw
;lea dx, pkey
;mov ah, 9
;int 21h ; output string at ds

x
; wait for any key....
mov ah, 1
int 21h
mov ax, 4c00h ; exit to operating system.
int 21h
ends
end start ; set entry point and stop the assembler.