Vesa BIOS Example. Page 1:

VESA BIOS Example

Page 8: Restore previous state


Assuming that you saved the video state in page 3, it is now possible to restore it.

   AH = 4Fh        ;Super VGA support
   AL = 04h        ;Function 04h (save state)
   DL = 02h        ;Subfunction 02h (restore the state)
   CX = 00001111b  ;restore everything please
   ES:[DI] -> SaveBuffer

   call interrupt 10h
If you did not, then, if you're going back into DOS, you should set the video mode back to 03h.