VOGONS


First post, by tonychen

User metadata
Rank Newbie
Rank
Newbie

I want to change the text mode to 800 x 600 or higher permanently, so I can see more lines when using edit, pwb, qbasic, or other tools
I use debug.exe to write "ax, 420F; bx, 10A; int 10h", and execute by "P" step by step. The program ends, but the screen does not change

I do not understand the VBE, I roughly write down the following process.
1. Install SVGA BIOS (univbe, sisvbe...)
2. Call the ASM program mentioned above
3. The text mode will be changed

Is there anything I misunderstood? Or, SVGA mode can only be set by the running program? Not by the DOS-shell?
Even though the current text mode is 800x600, when running edit.com, will it auto change to 320x200 or 640x480?
When quitting edit.com, it changes back to 800x600?

Reply 1 of 3, by weedeewee

User metadata
Rank l33t
Rank
l33t

I recall in the olden days ANSI.SYS was loaded in config.sys and
MODE CO80,50 was used to get more lines on screen.
on some videocards you could even use MODE CON: COLS=132 LINES=50 or LINES=43 to get even more screen text mode real estate.
downside is that this did not always work with every text mode program. Some software just reset the video text mode back to 80x25.

unsure if ANSI.SYS had to be loaded or not to use the mode commands. Try it without first. 😀

fyi, This was in plain msdos and early plain W9x dos.

Right to repair is fundamental. You own it, you're allowed to fix it.
How To Ask Questions The Smart Way
Do not ask Why !
https://www.vogonswiki.com/index.php/Serial_port

Reply 2 of 3, by bakemono

User metadata
Rank Oldbie
Rank
Oldbie

You can change the screen mode of the DOS command prompt, but it does not affect EDIT or QBASIC. Those seem to only support two modes at most, which are usually 80x25 and 80x50. (Presumably, on an EGA card you get 80x43 instead of 80x50.)

With the original BIOS INT $10 API, you load AH with 0 and AL with the mode number. With the VESA INT $10 API, you load AX with $4F02 and BX with the mode number.

GBAJAM 2024 submission on itch: https://90soft90.itch.io/wreckage

Reply 3 of 3, by BloodyCactus

User metadata
Rank Oldbie
Rank
Oldbie

I have two utils to change your screen lines if you need 28 or 50

https://bloodycactus.com/files/28line.zip
https://bloodycactus.com/files/50line.zip

for 132x43 to work (which your attemping), after you enter 'P', and nothing happens,look at AX, if it sayts 014F, means its failed. if its 004F, it succeeded.
if AX = 4f02, then you dont have VESA support in your bios.

--/\-[ Stu : Bloody Cactus :: [ https://bloodycactus.com :: http://kråketær.com ]-/\--