head	1.1;
access;
symbols;
locks
	yap:1.1; strict;
comment	@;; @;


1.1
date	97.11.11.19.58.33;	author yap;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@title pgm12_2 (p.244)
; display red screen with blinking cyan 'a' in middle of screen
.model small
.stack 100h
.code
main proc
; set video mode
mov ah,0
mov al,3
int 10h
; clear window to red
mov ah,6        ; scroll up function
mov cx,081ah    ; upper left corner, (1Ah,08h)=(col 26,row 8)
mov dx,1034h    ; lower right corner, (34h,10h)=(col 52,row 16)
mov bh,43h      ; cyan chars on red background
mov al,0        ; scroll all lines
int 10h         ; clear window
; move cursor
mov ah,2
mov dx,0c27h    ; center of screen
xor bh,bh       ; page 0
int 10h
; display char with attribute
mov ah,9
mov bh,0        ; page 0
mov bl,0c3h     ; blinking cyan char on red back
mov cx,2        ; display two chars
mov al,'a'      ; char=a
int 10h
; dos exit
mov ah,4ch
int 21h
main endp
end main

mov di,0
fill:
mov word ptr [di],1441h
add di,2
loop fill
mov ah,4ch
int 21h
main endp
end main
@
