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

Re: Image Converter for HGR modes (with DHGR file question)



Sheldon Simms <wsspammy@gmail.com> writes:

> Probably just because the aux memory byte leads every scan line.  It
> seems like it would be possible to load the image directly into
> auxiliary memory at $2000 and then copy the second half to main.


Even from BASIC and ProDOS it's not so bad:

load the aux half:
     BLOAD DHR.PIC,A8192,L8192,B0

move it to aux with the $C311 routine (using a short asm routine to set
up $3C-3F,$42-43)

     BLOAD DHR.PIC,A8192,B8192

In assembly it would be even simpler since you don't have to open the
file twice.

   OPEN
   READ 8192 bytes => $2000
   ...
   jsr AuxMove
   READ 8192 bytes => $2000
   set DHGR display mode

--
Jerry    awanderin at yahoo dot ca