Graphics formats

 BBS: Inland Empire Archive
Date: 03-25-92 (19:42)             Number: 194
From: ROBBIE CHURCH                Refer#: NONE
  To: CORIDON HENSHAW               Recvd: NO  
Subj: Graphics formats               Conf: (2) Quik_Bas
CH>  VPIC /R works just as well.  BUT if I want to save a screen
CH>  from mode 8-12, I need to do bank switching, where do I
CH>  POKE to swithch the vid mem banks?

This one works for me.  You could also GET the screen into two arrays,
and save them each to a file.  Then save the pallette registers.

SCREEN 9                     'works for EGA, VGA modes 8-12

DEF SEG = &HA000
OUT 974, 4: OUT 975, 0
BSAVE "scrn.blu", 0, 28000   'change the `2800' to the correct value for the
OUT 974, 4: OUT 975, 1       'video mode.
BSAVE "scrn.grn", 0, 28000
OUT 974, 4: OUT 975, 2
BSAVE "scrn.red", 0, 28000
OUT 974, 4: OUT 975, 3
BSAVE "scrn.int", 0, 28000
OUT 974, 4: OUT 975, 3
DEF SEG


 * SLMR 2.1a * Support VaporWare!  Buy PowerBASIC 3.0 today!

--- Maximus 2.01wb
 * Origin: Mostly Mail (1:105/319)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET