Mode 12 and QBasic 
Author Message
 Mode 12 and QBasic

Quote:

>Anyone know how to save screen mode 12 to a file, like you can with mode 13 if
>you use:
>def seg = &HA000
>BSAVE "screen.dat",0,64000
>def seg

You can't -- not directly, at least. The SCREEN 12 is comp[osed out of four
different memory pages, _each_ of which are mapped at memory location
&HA000.

You have to save all four planes independently. This means, that is you
want to use BSAVE/BLOAD (the fastest way) you will always end up with four
different datafiles.

OUT &h3CE, 4
ORIGINAL = INP(&h3CF)
' Get current plane value

FOR plane = 0 to 3
        OUT &h3CE, 4
        OUT &h3CF, plane
        ' Now, memory location &HA000 contains one of the four bitplanes.
        ' You can save this to disk using BSAVE, or use PEEK / PEEK$ to
        ' retrieve the information. I'm not sure about the amount of memory
        ' each of these planes take, though.
NEXT plane

OUT &h3CE, 4
OUT&h3CF, ORIGINAL
' Restore the original plane
--
Marc van den Dikkenberg
-----------------------
The powerbasic Archives
http://www.*-*-*.com/ ~excel/pb.html



Fri, 05 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Background Colour in QBasic screen mode 12

2. 256 Color in mode 12(QB45)???

3. Palette in QB45 Screen Mode 12 & 13

4. QBasic Screen 12 Text

5. save/load SCREEN 12 screens in QBasic?

6. faster PSET for SCREEN 12 / memory layout of SCREEN 12

7. VB 5.0 Documentation - 05.zip (12/12)

8. Reverse DNS lookup. 555.12.12.12 --> abc.xyz.com

9. If I enter this in a textbox: ((12+8)*4)/12 ...

10. direct mode in qbasic

11. Help w/ QBasic GFX Mode Detection

12. MODE 4 in Qbasic?

 

 
Powered by phpBB® Forum Software