home *** CD-ROM | disk | FTP | other *** search
/ The Unsorted BBS Collection / thegreatunsorted.tar / thegreatunsorted / programming / misc_programming / int5.spc < prev    next >
Text File  |  1990-01-04  |  1KB  |  33 lines

  1.                    Print Screen Service Routine (INT 5)
  2.                    ------------------------------------
  3. Description:
  4.         1. This routine is invoked when the "shift" + "PrtSc"
  5.            (or "Print Screen" at 101/102 keyboard) is pressed. 
  6.            All the characters on the screen are printed out.
  7.         2. The characters must be graphics character pattern 
  8.            in graphics mode, or the corresponding character will
  9.            be regarded as blank.
  10.  
  11. Function:
  12.     This routine is invoked by the interrupt 05h to print
  13.     the screen.  The cursor position at the time this routine
  14.     is invoked will be saved and restored upon completion. The
  15.     routine is intended to run with interrupts enabled.
  16.     If a subsequent print screen keys is depressed during the
  17.     time this routine is excuted, this routine will be ignored.
  18.     Location 50:0 contains the status of the print screen.
  19.  
  20. input:    none
  21.  
  22. output: status 50:0 = 0  -- normal completion or print screen not busy.
  23.             = 1  -- print screen is in progress
  24.             = ff -- error during print-screen
  25.  
  26. reference BIOS data area:
  27.     04ah -- word -- columns on screen
  28.     050h -- 05fh
  29.         word -- cursor position
  30.     060h -- word -- cursor mode
  31.     062h -- byte -- current page displayed
  32.     084h -- byte -- rows on screen
  33.