So 1st my TSR 😀 Dont laugh about the code, its really quick&dirty and I was to lazy to install my MASM and Turbo Debugger 😉
mov ax, cs
cmp ah, 0f
Just copy it in a file "PEGA.ASM", run
DEBUG < PEGA.ASM
and it will output PEGA.COM
What does it do? Redirects all call to VIDEO-BIOS INT 10 to itself and stays in memory after exiting. Afterwards it looks if the 640x480 mode 12h is requested. If yes, it directs it to mode 50h as this is the 640x480 mode on my PEGA.
The called mode is also displayed on a Diagnostic Post card (port 80), so you will see the current screen mode there.
I also had to add some lines to get Windows running as it verifies the current mode on startup, will not be neccessary for other programs...
So in this form is it only useful for PEGA owners and to Display mode on the Post card, but can be easily modified to redirect other Video modes too. You can run Commander Keen on a 640x350 screen...but it will be small 😉