home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
programming
/
misc_programming
/
int5.spc
< prev
next >
Wrap
Text File
|
1990-01-04
|
1KB
|
33 lines
Print Screen Service Routine (INT 5)
------------------------------------
Description:
1. This routine is invoked when the "shift" + "PrtSc"
(or "Print Screen" at 101/102 keyboard) is pressed.
All the characters on the screen are printed out.
2. The characters must be graphics character pattern
in graphics mode, or the corresponding character will
be regarded as blank.
Function:
This routine is invoked by the interrupt 05h to print
the screen. The cursor position at the time this routine
is invoked will be saved and restored upon completion. The
routine is intended to run with interrupts enabled.
If a subsequent print screen keys is depressed during the
time this routine is excuted, this routine will be ignored.
Location 50:0 contains the status of the print screen.
input: none
output: status 50:0 = 0 -- normal completion or print screen not busy.
= 1 -- print screen is in progress
= ff -- error during print-screen
reference BIOS data area:
04ah -- word -- columns on screen
050h -- 05fh
word -- cursor position
060h -- word -- cursor mode
062h -- byte -- current page displayed
084h -- byte -- rows on screen