info on 640x480 256 color mode?? 
Author Message
 info on 640x480 256 color mode??

Does anyone know how I can get into 640x480x256 mode using Turbo Pascal? I
have experience using mode 13h using assembly.  Anyone know of any websites
with some  code for this kind of thing?



Sun, 28 Mar 1999 03:00:00 GMT  
 info on 640x480 256 color mode??

Quote:

> Does anyone know how I can get into 640x480x256 mode using Turbo Pascal? I
> have experience using mode 13h using assembly.  Anyone know of any websites
> with some  code for this kind of thing?

Yes. You must have a VESA driver installed.

asm
   mov ax, 4f02h
   mov bx, 101h
   int 10h
end;

... and voila you are in 640x480x256. One problem: bankswithing. OK..
use:

asm
   mov dx, bank   { memory bank }
   xor bx, bx    
   mov ax, 4f05h  { switch banks}
   int 10h

   mov es:[di], cl    {color address and value}
end;

Hope it helps.

- Asbj?rn



Mon, 29 Mar 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. info on 640x480 256 color mode??

2. *** ?? putpixel 256 colors in 640x480 with Pascal ?

3. Scanned Pictures in Pascal (640x480) 256 Colors

4. Vesa unit for all 256 and 65K color modes (protected,real mode)

5. 256 Color Mode

6. Mouse in 256 color mode PROBLEM

7. 256 color text mode

8. Colorscreen mode 256 colors

9. 256 colors - VGA - mode?

10. 256 color mode - HELP!!!

11. HELP: Showing Mouse in SVGA 256 colors mode

12. HELP: Showing Mouse in SVGA 256 colors mode

 

 
Powered by phpBB® Forum Software