[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to load DHR graphics from BASIC?



Rubywand <rubywand@swbell.net> wrote:

>Supertimer writes ...
>> 
>> How do you do it?
>
>     For a hi-res pic, of course, you can just BLOAD the pic file into
>hi-res 'page 1' or 'page 2' memory and toggle a few softswitches via
>PEEKs. This loads and displays the hi-res pic under BASIC without any
>need for calling special machine code routines.

Yup.  Instead of using peeks, I just execute an "hgr" first and then
load from /ram.  What about DHR though...

>     The catch with double-hires (DHR) is that you need to move half of
>the BLOAD-ed DHR pic file into Aux memory. To display a DHR pic, you can
>...
>
>BLOAD the DHR pic at $2000 (it occupies $2000-$5FFF in main mem)
>CALL a routine to move $2000-$3FFF to $2000-$3FFF in Aux. mem
>CALL a routine to move $4000-$5FFF to $2000-$3FFF
>Set softswitches to display the pic.

And this is what I need a programming example of.  Preferably, I
would like to be able to do it from the "]" prompt rather than
typing something into the monitor...