Help me

Please use this Board for QBasic related requests ( file research, programming, etc.)

Moderators: Administrator, Global Moderator

Post Reply
Guest

Help me

Post by Guest »

I know that i can save the video buffer of screen 0 with these commands:

DEF SEG = &HB800
BSAVE "BUFFER.DAT", 0, 4000

and then I can load it with:

DEF SEG = &HB800
BLOAD "BUFFER.DAT", 0

Can I do the same in screen 9?
Thanks.
User avatar
frankiebaby
Global Moderator
Posts: 95
Joined: Tue Apr 30, 2002 1:38 am
Location: Pennsylvania
Contact:

Re: Help me

Post by frankiebaby »

I believe that should work for every screen mode, well the general idea, i think u need to use &HA000, at least for screen 13H
User avatar
GPfault
Jr. Member
Posts: 13
Joined: Mon Dec 02, 2002 9:14 pm

Re: Help me

Post by GPfault »

It will work in ALMOST any video mode.  It won't work in screen 7 or 12 because they have more than one bit plane.  You'll need to figure out how to change the bit plane register.  Find out which OUT port to access.  I used DEBUG to single step the VGA BIOS plotting a pixel, and found out which I/O port to write to.  Screens 7 and 12 are not particularly useful, so I wouldn't bother with them anyway.
Post Reply