Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Oh right, I don't do anything to restore initial settings. Less of a concern on emulators. (And in EGA or VGA it's liable to remain stuck in faux CGA mode.) Should it try to set 80x25 on exit? Or is there a sensible way to detect and reset things?

I have been scrolling through esoteric documentation for days and the video setup is still 80% copy-paste and 10% guesswork. At least I got the snow to stop.

(+1)

If you want to do it right, use call ah=0fh/int 10h to get the current video mode[1], save it, and set it with call 0 on exit.

At the very least, just set mode 3 on exit, which is the standard 80x25 text mode.

  1. http://www.ctyme.com/intr/rb-0108.htm