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

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



On Jan 7, 10:22 pm, Jerry <awande...@yahoo.ca> wrote:
> Sheldon Simms <wsspa...@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

You can also use this pure applesoft routine to load dbl res without
having to use ML move routine.

10 D$=CHR$(4): ? D$ "PR#3": ?
20 F$="DBL.RES.PIC,A$2000,L$2000"
30 HGR : POKE 49246,0
40 POKE 49237,0: ?D$"BLOAD" F$
50 POKE 49236,0: ?D$"BLOAD "F$",B$2000"
60 POKE 49234,0