BBS: Inland Empire Archive Date: 12-16-92 (07:52) Number: 301 From: FRANCOIS ROY Refer#: NONE To: PETER BARNEY Recvd: NO Subj: Re: 28 rows Conf: (2) Quik_Bas
PB> I recently installed Norton Desktop for DOS here. There is a particular
PB> video mode that has made me curious. 80x28 text. Does anyone know
PB> anything about this?
I use that mode in one of my applications. Problem is I found a few
computers (mostly laptops) with which it is not compatible (sometimes I can
switch TO it but not back FROM it to 80x25). QB doesn't support it
directly; you have to set 80x43 mode in QB so it lets you access more than
25 lines without giving you an Illegal function call when you use LOCATE,
and you have to scroll the screen yourself (CALL INTERRUPT (&H10, ...)).
Here is how you switch to it (ensure user has a VGA first...):
IF ScrTyp% = 12 THEN WIDTH , 43: CALL VGA28
SUB VGA28
INR.AX = &H1202 ' Set up 400 scan lines
INR.BX = &H30
CALL INTERRUPT(&H10, INReg, OUTReg)
INR.AX = 3
CALL INTERRUPT(&H10, INReg, OUTReg)
INR.AX = &H1111
INR.BX = 0
CALL INTERRUPT(&H10, INReg, OUTReg)
END SUB
Now, if someone could tell me where to POKE to reset the number of lines from
43 to 28 (so that I didn't have to scroll the screen myself), that would make
my day. Oh yeah... issue a WIDTH ,25 to return to 80x25 mode when done...
--- ME2_1104
* Origin: Out of String Space - the Final Frontier (Fidonet 1:163/506.2)

Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET