Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>int 10h, 1ch (28) save/restore video state ps/2, vga</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 10h, 1Ch (28)      Save/Restore Video State                  PS/2, VGA

     Lets you save and restore the video state.

   AL = 0 Get Needed Buffer Size

        On entry:         AL          0 . Return save/restore buffer size
                          CX          Save/restore:
                                        Bit 2 = 1 . Save/restore DAC state
                                        Bit 1 = 1 . Save/restore BIOS data
                                        Bit 0 = 1 . Save/restore video
                                                        hardware state

        Returns:          AL          1Ch . Function supported
                          BX          Save/restore buffer size block count
                                        (each block is 64 bytes)

  ---------------------------------------------------------------------------
   AL = 1 Save State

        On entry:         AL          1 . Save state
                          CX          Save:
                                        Bit 2 = 1 . Save/restore DAC state
                                        Bit 1 = 1 . Save/restore BIOS data
                                        Bit 0 = 1 . Save/restore video
                                                        hardware state
                          ES:BX       Address of buffer


        Returns:          AL          1Ch . Function supported


  ---------------------------------------------------------------------------
   AL = 2 Restore State

        On entry:         AL          2 . Restore state
                          CX          Restore:
                                        Bit 2 = 1 . Save/restore DAC state
                                        Bit 1 = 1 . Save/restore BIOS data
                                        Bit 0 = 1 . Save/restore video
                                                        hardware state
                          ES:BX       Address of buffer

        Returns:          AL          1Ch . Function supported

  ---------------------------------------------------------------------------

     This Service lets you save or restore the video state. First, you must
     determine the size of the memory buffer you need to store video
     information.

     To get that size, use Subservice 0. You need to specify how much
     information you want to store by setting the bits of CX as follows:

                       Bit 2 = 1 . Save/restore DAC state
                       Bit 1 = 1 . Save/restore BIOS data
                       Bit 0 = 1 . Save/restore video
                                           hardware state

     Subservice 1 saves the state. Pass it the address of the data buffer
     you want to use in ES:BX and set the bits in CX to match those parts of
     the video state you want to save.

     Subservice 2 restores the video state. The inputs are the same as for
     subservice 1.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson