Bload and bsave in screen 12 
Author Message
 Bload and bsave in screen 12

I have these commands at the end of a program that draws stuff in screen
12(these are the commands right after all the drawing):
DEF SEG = &HA000
BSAVE "board.bsv", 0, 65535
DEF SEG

I later load the file I saved, with a file with only these commands:
SCREEN 12
DEF SEG = &HA000
BLOAD "board.bsv"
DEF SEG
f$ = input$(1)'wait for key

When I run the program,nothing shows up on the screen.What am I doing wrong?

webpage: http://www.*-*-*.com/
-----BEGIN GEEK CODE BLOCK-----
 Version: 3.12
G! d- s--:- a---- C++ ULU++++ P+  L+ E W++ N++ o K- w+

G e-- h! !r y-
------END GEEK CODE BLOCK------



Wed, 19 Sep 2001 03:00:00 GMT  
 Bload and bsave in screen 12
If that's all your code, then the problem is simple.  You're BLOADing the
graphic into an array, but after that, you're not doing anything with it!  Use
the PUT command to actually draw your picture after you've dimensioned your
array and have loaded it.

cheers,
Brendon



Thu, 20 Sep 2001 04:00:00 GMT  
 Bload and bsave in screen 12

Quote:
> If that's all your code, then the problem is simple.  You're BLOADing the
> graphic into an array, but after that, you're not doing anything with it!
Use
> the PUT command to actually draw your picture after you've dimensioned
your
> array and have loaded it.

He's BLOADing it directly to video memory where it should display
immediately.  The problem must be something else.

Tom Lake
ICQ #25589135



Thu, 20 Sep 2001 04:00:00 GMT  
 Bload and bsave in screen 12
Yeah, I didn't think of that... I usually don't bother setting the segment to
the video memory, I use DEF SEG = VARSEG(Array(0)) on the occasions that I do
something like this.

The only thing I can think of is if he might have drawn the graphic in a
different screen mode than the one he is loading it into (I'm not looking at
his code, so I don't know if this is true or not), or maybe it's a palette
problem, although I kind of doubt that one.

cheers,
Brendon



Thu, 20 Sep 2001 04:00:00 GMT  
 Bload and bsave in screen 12
: I have these commands at the end of a program that draws stuff in screen
: 12(these are the commands right after all the drawing):
: DEF SEG = &HA000
: BSAVE "board.bsv", 0, 65535
: DEF SEG

: I later load the file I saved, with a file with only these commands:
: SCREEN 12
: DEF SEG = &HA000
: BLOAD "board.bsv"
: DEF SEG
: f$ = input$(1)'wait for key

: When I run the program,nothing shows up on the screen.What am I doing wrong?

This is a very common mistake, but you need to realize that SCREEN 12
has 4 - bit planes.  What you're doing will work for SCREEN 13.
Go to the ABC Archives and enter the EGA/VGA section of the page.
There's a few examples in there to help you save/load the four bit planes
properly.

ABC Archives: http://www.basicguru.com/abc/

--
William Yu



Fri, 21 Sep 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. BLOAD/BSAVE Screen 12

2. How to Bsave Screen 12 picture

3. GETTING Screen 12 and saving using BSAVE

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

5. BSAVE/BLOAD - (Screen 9)

6. save/load SCREEN 12 screens in QBasic?

7. bsave/bload help!

8. BLOAD BSAVE

9. BSAVE/BLOAD

10. Question: BLOAD and BSAVE

11. BSAVE and BLOAD - compilable??

12. VGA/EGA BLOAD/BSAVE?

 

 
Powered by phpBB® Forum Software