VESA "HI RES" TEXT MODES 
Author Message
 VESA "HI RES" TEXT MODES

I recall someone asking about a "high resolution" text mode:

'VESA MODE 109H - 132x25 TEXT

ASM$ = ""
ASM$ = ASM$ + CHR$(&HB8) + CHR$(&H02) + CHR$(&H4F) 'MOV AX,4F02
ASM$ = ASM$ + CHR$(&HBB) + CHR$(&H09) + CHR$(&H01) 'MOV BX,0109
ASM$ = ASM$ + CHR$(&HCD) + CHR$(&H10)              'INT 10
ASM$ = ASM$ + CHR$(&HCB)                           'RETF

DEF SEG = VARSEG(ASM$)                            
CALL ABSOLUTE(SADD(ASM$))

'VESA MODE 10AH - 132x43 TEXT

ASM$ = ""
ASM$ = ASM$ + CHR$(&HB8) + CHR$(&H02) + CHR$(&H4F) 'MOV AX,4F02
ASM$ = ASM$ + CHR$(&HBB) + CHR$(&H0A) + CHR$(&H01) 'MOV BX,010A
ASM$ = ASM$ + CHR$(&HCD) + CHR$(&H10)              'INT 10
ASM$ = ASM$ + CHR$(&HCB)                           'RETF

DEF SEG = VARSEG(ASM$)                            
CALL ABSOLUTE(SADD(ASM$))

'VESA MODE 10BH - 132x50 TEXT

ASM$ = ""
ASM$ = ASM$ + CHR$(&HB8) + CHR$(&H02) + CHR$(&H4F) 'MOV AX,4F02
ASM$ = ASM$ + CHR$(&HBB) + CHR$(&H0B) + CHR$(&H01) 'MOV BX,010B
ASM$ = ASM$ + CHR$(&HCD) + CHR$(&H10)              'INT 10
ASM$ = ASM$ + CHR$(&HCB)                           'RETF

DEF SEG = VARSEG(ASM$)                            
CALL ABSOLUTE(SADD(ASM$))

'VESA MODE 10CH - 132x60 TEXT

ASM$ = ""
ASM$ = ASM$ + CHR$(&HB8) + CHR$(&H02) + CHR$(&H4F) 'MOV AX,4F02
ASM$ = ASM$ + CHR$(&HBB) + CHR$(&H0C) + CHR$(&H01) 'MOV BX,010C
ASM$ = ASM$ + CHR$(&HCD) + CHR$(&H10)              'INT 10
ASM$ = ASM$ + CHR$(&HCB)                           'RETF

DEF SEG = VARSEG(ASM$)                            
CALL ABSOLUTE(SADD(ASM$))

--
______________________________

Steven Sensarn

______________________________



Mon, 31 Aug 1998 03:00:00 GMT  
 VESA "HI RES" TEXT MODES

Quote:

>I recall someone asking about a "high resolution" text mode:
>'VESA MODE 109H - 132x25 TEXT
>ASM$ = ""
>ASM$ = ASM$ + CHR$(&HB8) + CHR$(&H02) + CHR$(&H4F) 'MOV AX,4F02
>ASM$ = ASM$ + CHR$(&HBB) + CHR$(&H09) + CHR$(&H01) 'MOV BX,0109
>ASM$ = ASM$ + CHR$(&HCD) + CHR$(&H10)              'INT 10
>ASM$ = ASM$ + CHR$(&HCB)                           'RETF
>DEF SEG = VARSEG(ASM$)                            
>CALL ABSOLUTE(SADD(ASM$))
>'VESA MODE 10AH - 132x43 TEXT
>ASM$ = ""
>ASM$ = ASM$ + CHR$(&HB8) + CHR$(&H02) + CHR$(&H4F) 'MOV AX,4F02
>ASM$ = ASM$ + CHR$(&HBB) + CHR$(&H0A) + CHR$(&H01) 'MOV BX,010A
>ASM$ = ASM$ + CHR$(&HCD) + CHR$(&H10)              'INT 10
>ASM$ = ASM$ + CHR$(&HCB)                           'RETF
>DEF SEG = VARSEG(ASM$)                            
>CALL ABSOLUTE(SADD(ASM$))

I'd still like to know how to use QuickBasic 4.5 640x480 graphics screen 12
to work in a Windows 3.11 window. Would appreciate the help.
--
Ben

- Show quoted text -

Quote:
>'VESA MODE 10BH - 132x50 TEXT
>ASM$ = ""
>ASM$ = ASM$ + CHR$(&HB8) + CHR$(&H02) + CHR$(&H4F) 'MOV AX,4F02
>ASM$ = ASM$ + CHR$(&HBB) + CHR$(&H0B) + CHR$(&H01) 'MOV BX,010B
>ASM$ = ASM$ + CHR$(&HCD) + CHR$(&H10)              'INT 10
>ASM$ = ASM$ + CHR$(&HCB)                           'RETF
>DEF SEG = VARSEG(ASM$)                            
>CALL ABSOLUTE(SADD(ASM$))
>'VESA MODE 10CH - 132x60 TEXT
>ASM$ = ""
>ASM$ = ASM$ + CHR$(&HB8) + CHR$(&H02) + CHR$(&H4F) 'MOV AX,4F02
>ASM$ = ASM$ + CHR$(&HBB) + CHR$(&H0C) + CHR$(&H01) 'MOV BX,010C
>ASM$ = ASM$ + CHR$(&HCD) + CHR$(&H10)              'INT 10
>ASM$ = ASM$ + CHR$(&HCB)                           'RETF
>DEF SEG = VARSEG(ASM$)                            
>CALL ABSOLUTE(SADD(ASM$))
>--
>______________________________
>Steven Sensarn

>______________________________



Fri, 04 Sep 1998 03:00:00 GMT  
 VESA "HI RES" TEXT MODES

Quote:

> I'd still like to know how to use QuickBasic 4.5 640x480 graphics screen 12
> to work in a Windows 3.11 window. Would appreciate the help.
> --
> Ben

Here is a list of the DIFFERENCES between the standard Windows screen mode
and mode 12:

1) Color resolution

You may be running Windows in 256, 32k, or 16.7m color modes (I use the later
because of the crisp images).  The default resolution for Windows is
640x480x16, which is most likely VGA screen 12h (in which case your screen
would be compatible with Windows' screen mode).  In any case, the different
screen modes needed for different color resolutions also affect the way
memory is addressed (i.e. standard VESA mode 101h - 640x480x256 - has a
linear memory configuration and accesses the monitor through windows -- also
known as banks.  Mode 12h uses a planar configuration and accesses the screen
by using bits representing pixels and color planes).  You basically have two
options -- to change the Windows screen mode to 16 colors or to change your
program's screen mode to the one Windows is using.

2) Blitting resolution

Same as above -- this only applies if Windows is using any mode other than
640x480xn where n can be any value.

Can't think of any more.

--
______________________________

Steven Sensarn

______________________________



Fri, 04 Sep 1998 03:00:00 GMT  
 VESA "HI RES" TEXT MODES
If you want to use a resolution of 132x60, try this:

~INTR($10,_AX=$21)
~_MD

Ofcorse, that probably won't work in QBassic. Hehehe.




Sun, 06 Sep 1998 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Hi, help me in the "!"

2. Detecting the "view-only" mode

3. Open mail item in "reply-mode"

4. Putting Outlook into "Offline" mode

5. *"*-.,._,.-*"* I"LL TRADE VISUAL C++ FOR VBASIC *"*-.,_,.-*"*

6. Win 2000 "Permission Denied" Debug Mode

7. Error: "...manual or distributed transaction mode..."??

8. "Pocket PC 2002"-mode: eVB program can′t run

9. GetObject("","InternetExplorer.Application") fails in Excel VBA

10. SysCmd 603, "path","path"

11. Disabling "BACK"/"FORWARD" buttons

12. Loop print "VARIABLE", "VARIABLE"

 

 
Powered by phpBB® Forum Software