ORG 100h
SECTION .TEXT

MOV AH,0
MOV AL,12h
INT 10h       ;video mode 12

mov AX,600h   ;load registers with parameters to clear screen
mov CX,0
mov DX,204Fh  ;32 rows  in graphics mode???

mov BH,0
flash:
int 10h        ;clear screen
;pause: wait for user to press any key
MOV   AH,10h
INT   16h

MOV AX,600h   ;reset AX for clear screen request
INC BH        ;next color number

cmp bh,07eh
jnz flash     ;do it for a while


MOV AH,0Ch         ;set pixel
MOV AL,01          ;first color.   leave BH as 0!!!
MOV BH,0
MOV CX,300
MOV DX,200
INT 10h


;wait for user to press any key before terminating use INT 16:
MOV   AH,10h
INT   16h

;reset to video mode 2: so can Alt Enter back to a window
MOV AH,00
MOV AL,02
INT 10h

;exit to DOS
MOV   AH,4Ch
INT   21h


