[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to load DHR graphics from BASIC?
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.
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.
Rubywand