From: "Wiebe Zoon"
Subject: Re: VESA video modes
Sphinx > heeft geschreven in bericht ...
>Sorry to add to this already large thread. But could someone list the Vesa
>modes for me?
>I would like to know how to get into 800*600*256 or 640*480*256.
>I understand that making video pages and putting pixels to screen is
>difficult in these modes.
>Would anyone care to enlighten me?
>To POKE a pixel to screen, I normally use:
>
>DEF SEG=$HA000
>POKE Y*320+X, ColorToPoke
>DEF SEG
>
>This works in mode 13, will it work in the high res modes?
Yes, it really works like that, but change the 320 and you'll be amazed.
There is a small detail however : 640 X 480 X 1 byte is bigger than the
&HA000 segment. Nothing to worry about. You can map diffrent portions of
video-Memory into the A000-segment using the next sub :
sub VideoMemory (sector as byte)
dim lastone as static byte
if sector = lastone then exit sub
lastone = sector
reg %dx,sector
reg %ax,&h4F05
reg %bx,0
call interrupt &h10
end sub
about the vesa-modes:
Values for VESA video mode:
100h 640x400x256
101h 640x480x256
102h 800x600x16
103h 800x600x256
104h 1024x768x16
105h 1024x768x256
106h 1280x1024x16
107h 1280x1024x256
108h 80x60 text
109h 132x25 text
10Ah 132x43 text
10Bh 132x50 text
10Ch 132x60 text
---VBE v1.2---
10Dh 320x200x32K
10Eh 320x200x64K
10Fh 320x200x16M
110h 640x480x32K
111h 640x480x64K
112h 640x480x16M
113h 800x600x32K
114h 800x600x64K
115h 800x600x16M
116h 1024x768x32K
117h 1024x768x64K
118h 1024x768x16M
119h 1280x1024x32K
11Ah 1280x1024x64K
11Bh 1280x1024x16M
---VBE 2.0---
120h 1600x1200x256
81FFh special full-memory access mode
Note: the special mode 81FFh preserves the contents of the video memory and
gives access to all of the memory; VESA recommends that the special
mode be a packed-pixel mode
>
>Thanks for any help.
You're welcome
>--
>Sphinx
>sphinx AT(@) mindless DOT(.) com
>Just remove the stuff in my address to reply.
>www.users.bigpond.com/sphinx
>"640K ought to be enough for anybody." - Bill Gates
*** QwkNews (tm) v2.1
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/561)
|