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

Re: BRUN HGR pics?



Steve Jensen (sjensen@cello.gina.calstate.edu) wrote:
: I need a program that modifies HGR pics so they can be viewed when
: BRUN from Applesoft.  I had this years ago but seem to have lost it.
: Can anyone help?

You need to append the following code to the beginning of the file:
(assumes full-page display of HGR Page #1 at $2000)

1FF1- 48       PHA
1FF2- AD 50 C0 LDA $C050
1FF5- AD 52 C0 LDA $C052
1FF8- AD 54 C0 LDA $C054
1FFB- AD 57 C0 LDA $C057
1FFE- 68       PLA
1FFF- 60       RTS

Change as follows for "mixed" display...
1FF5- AD 53 C0 LDA $C053

And for HGR Page #2, move the code to $3FF1-$3FFF and change...
3FF8- AD 55 C0 LDA $C055

To save the amended file...
BSAVE IMAGE,A$1FF1,L$200A

The PHA and PLA instructions are optional; I use them to make sure that
the program doesn't scramble the A register.

Apologies if someone already posted this...

--Dave Althoff, ][.
-- 
    /-\      Celebrating the International Year of the Roller Coaster
   /XXX\      /X\     /X\_      _     /XX\_      _     _        _____  
  /XXXXX\    /XXX\  _/XXXX\_   /X\   /XXXXX\    /X\   /X\      /XXXXX
_/XXXXXXX\__/XXXXX\/XXXXXXXX\_/XXX\_/XXXXXXX\__/XXX\_/XXX\_/\_/XXXXXX