> ----------------------- > The PowerBasic Archives > http://www.xs4all.nl/~excel/pb.html > Wow, does this mean that 24bit mode is actually 32bit? KB *** QwkNews (tm) v2.1 * [TN71] Toast House Import --- GEcho 1.20/Pro * Origin: Toast House Remote (1:100/561) --------------- FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: F4200006 Date: 03/24/98 From: ATLASTE Time: 04:09pm \/To: ALL (Read 1 times) Subj: Re: VESA video modes From: atlaste Subject: Re: VESA video modes Marc van den Dikkenberg wrote: > > This may not be the right group for this, but... > > does anyone know how to switch to a VESA videomode? > > I'm particulary interested in any of the hi-color modes > (&H111 or &H114, for example) but the ordinary code to switch > modes doesn't appear to have any effect with these. > I know my videocards support them, so I'm obviously missing out > something. > > ! MOV &H... > ! INT &H10 > > won't work. > > Do the VESA modes require any other registers to be set? > -- > Marc van den Dikkenberg > ----------------------- > The PowerBasic Archives > http://www.xs4all.nl/~excel/pb.html Check out my homepage; interupt list in program pages. That'll do. http://han-en-jana.rc.tudelft.nl Good luck! Stefan de Bruijn *** QwkNews (tm) v2.1 * [TN71] Toast House Import --- GEcho 1.20/Pro * Origin: Toast House Remote (1:100/561) --------------- FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: F4200007 Date: 03/24/98 From: PETER.WALLER Time: 06:35pm \/To: ALL (Read 1 times) Subj: Hex Addresses From: "Peter.waller" Subject: Hex Addresses Hello, I am Currently makeing a cheat Prog and it involves changing hexadecimal values. IS THIS POSSIBLE WITH POWER BASIC? Sorry, I have had a temper lately! Well How can I I am a kid of 11! please help! -- Please remove NS from reply address if you wish to reply in other words reply to peter.waller@btinternet.com *** QwkNews (tm) v2.1 * [TN71] Toast House Import --- GEcho 1.20/Pro * Origin: Toast House Remote (1:100/561) --------------- FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: F4200008 Date: 03/24/98 From: PHILIPPE DETOURNAY Time: 08:14pm \/To: ALL (Read 1 times) Subj: Re: VESA video modes From: Philippe Detournay Subject: Re: VESA video modes The true answer is : "it depends". The problem with VESA is that all the graphics cards are differents. On my cirrus logic, i need to poke 3 bytes per pixel, and on the Matrox of a friend of mine, i need to poke 4 bytes per pixel... You can know all the details of the graphic card by calling the function 0 (for the card) and 1 (for the screen mode in bx). I have the full details in a text file, called vesasp.txt, i don't remember where you can find it, so just e-mail me and i'll reply it to you. Have a look to the Ralph Brown's interrupt list at http://www.ctyme.com/rbrown.htm It contains the full info of all the dos interrupts, go to int 10h Note : i suppose the 4byte/pixel mode is for speed, because it's much faster for the computer to poke 2bytes at a time and btw 4 is faster than 3 KB a *crit: > > > > Wow, does this mean that 24bit mode is actually 32bit? > > KB -- Philippe "Pourquoi y a-t-il quelque chose au lieu de rien, et pourquoi ce qui est est-il ainsi et non pas autrement?" *** QwkNews (tm) v2.1 * [TN71] Toast House Import --- GEcho 1.20/Pro * Origin: Toast House Remote (1:100/561) --------------- FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: F4200009 Date: 03/24/98 From: MARC VAN DEN DIKKENBERG Time: 06:38am \/To: ALL (Read 1 times) Subj: Re: VESA video modes From: pb@excelsior.xs4all.nl.REMOVE-THIS (Marc van den Dikkenberg) Subject: Re: VESA video modes On 24 Mar 1998 15:11:58 GMT, "KB" wrote: >Marc van den Dikkenberg wrote in >article <3516bf31.1838200@news.xs4all.nl>... >> On Mon, 23 Mar 1998 22:21:43 -0500, Robert Severn >> wrote: >> >> >To set a VESA video mode, you have to set AX = &H4F02 and then put the >> >video mode (&H111, &H114...) in BX. Then do the INT &H10. As far as >> >actually doing anything in these modes, I know how to set pixels in the >> >256 colour modes (that's easy, just write bytes to the video buffer) but >> >as for the high colour modes I don't know how the pixels are stored. So >> >if anyone does, let me know. >> >> I've been playing around with the hi-color modes for a little while now, >> and did figure out that part. Hope this helps: >> >> In a 16-bit mode, you have to poke two bytes for one pixel. >> the first 5 bits are the red value, then 6 bits for green, and 5 bits for >> red again. >> >> &B RRRRRGGG >> &B GGGBBBBB >> >> In a 16-million color mode, you have a byte for each of the colors. >> However, there seems to be a fourth byte of which I havne't found the >> use yet. Probably just stuffing: >> >> &B RRRRRRRR >> &B GGGGGGGG >> &B BBBBBBBBB >> &B ?????????? >> >> So you poke 4 bytes for each pixel. >> >> >> -- >> Marc van den Dikkenberg >> ----------------------- >> The PowerBasic Archives >> http://www.xs4all.nl/~excel/pb.html >> > >Wow, does this mean that 24bit mode is actually 32bit? No... Actually, it all depends on your definition... I think it's just rounded off to the nearest WORD to make it faster to address... You still can 'only' address 256 x 256 x 256 = 16777216 colors. In a true 32-bit graphical environment, that would be 4.29 billion colors, with about 1626 shades of red, green and blue. It would take up the same amount of memory, coincidentally, but puts higher demands on your video adapter. 'standard' video adapters only support up to 24 bits. The human eye can't distinguish the difference between 24 and 32 bits video anyway. -- Marc van den Dikkenberg ----------------------- The PowerBasic Archives http://www.xs4all.nl/~excel/pb.html *** QwkNews (tm) v2.1 * [TN71] Toast House Import --- GEcho 1.20/Pro * Origin: Toast House Remote (1:100/561) --------------- FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: F4200010 Date: 03/25/98 From: MIKEAINIA Time: 01:40am \/To: ALL (Read 1 times) Subj: Re: PBDLL under CA Realiz From: mikeainia@aol.com (MikeAinIA) Subject: Re: PBDLL under CA Realizer ... In article <3517d6da.4879685@gateway>, XdsawvelX@Xmindspring.comX ('Hayseed') writes: >now I'm getting a 'previously >defined' error in WIN32API.INC at line 12710. This probably means that you have a function or variable name in your program which is already being used by the API. *** QwkNews (tm) v2.1 * [TN71] Toast House Import --- GEcho 1.20/Pro * Origin: Toast House Remote (1:100/561) --------------- FIDO MESSAGE AREA==> TOPIC: 214 POWER BASIC Ref: F4200011 Date: 03/25/98 From: MIKEAINIA Time: 01:40am \/To: ALL (Read 1 times) Subj: Re: Need help with binary From: mikeainia@aol.com (MikeAinIA) Subject: Re: Need help with binary file question... In article <1998032206520500.BAA11703@ladder01.news.aol.com>, pwrbasc@aol.com (PWRBASC) writes: >I am new to binary files. I am trying to read a file which is over 15 meg in >size. Each record is 404 bytes long. When I read 82 records into the file, I >get an error #15 (string length too long) using this command "GET$ 1, >Position, >A$" >When A$ exceeds the 32750 limit, then the error pops up. Is there some way o >reset A$ back to 0 and read another 32750 bytes into file from the point >where >the first seek ended. > > You must periodically copy A$ to another variable and clear it. Or , before the length of A$ gets out of hand process the data that you already have in it and clear it. Else you will hit the string length limit. Note that with that much data to handle, you can't just load it into variables or arrays unless you use XMS or EMS to hold it. ie: DO UNTIL EOF(ReallyBigFile) Read 10 records (or 100 or whatever) Do something with those 10 A$ = "" LOOP or some such. --Mike A. *** QwkNews (tm) v2.1 * [TN71] Toast House Import --- GEcho 1.20/Pro * Origin: Toast House Remote (1:100/561)