home *** CD-ROM | disk | FTP | other *** search
- Comment *
- This program will determine the current screen background and
- foreground colors according to the current screen settings.
- Note-You'll have to get the fg from the bg.
- Compiled under TASM 3.2
- *
-
- Public READSCREEN ;define procedure as public
-
- .model medium,basic ;setup OBJ for BASIC
- .code
-
- Comment *
- DECLARE SUB READSCREEN (CharANSI%,clr%)
- *
- READSCREEN PROC far
- push bp
- mov bp,sp ;setup stack
- mov ah,08h ;subset of int 10h to determine
- mov bh,00h ;Char and Color (bcd?) at cursor.
- int 10h ;do that interrupt
- mov bx,[bp+006h] ;return clr%
- mov [bx],aH ;move retrun Ah into Bx so we can Read it.
- mov bx,[bp+008h] ;return CharAnsi%
- mov [bx],al ;move Al in to bx for return
- pop bp ;restore stack
- ret 4 ;send'em back to basic
- READSCREEN Endp
- end
-