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

Re: Hires Graphics trouble



"Simon Williams" <ludditetech@mac.com> wrote in message
9f61cf69.0206271922.4e217bd@posting.google.com">news:9f61cf69.0206271922.4e217bd@posting.google.com...
> > FWIW, these usually are 16K uncompressed files, with the 8K of
main-memory
> > data followed by the 8K of auxiliary-memory data (IIRC; maybe it's the
other
> > way around).  I never had trouble interchanging DHR image files with
> > 816/Paint, TimeOut Paint, and the BASIC programs I've written that use
DHR
> > image files.  (Loading DHR images in BASIC usually requires some
> > assembly-language support routines, though I think there's a trick
involving
> > /RAM that you can use to load an image with a couple of BLOADs, a BSAVE,
and
> > some POKEs.)
>
> A-ha! it's 17k, so I guess it is Dougle Hi-Res... as usual the problem
> is with the human, not the machine.
>
> If anyone then can tell me how to load DHR from BASIC (if possible)
> that would be cool.

Here's the trick that was mentioned above. I don't know if there was someone
before me who figured out this trick, but I did find it out on my own.
Here's my version:

D$=CHR$(4)
PRINT D$;"PR#3"
PRINT D$;"BLOAD MY.DHR.FILE,A$2000"
PRINT D$;"BSAVE /RAM/DHR.TEMP,A$2000,L$2000"
PRINT D$;"BSAVE /RAM/DHR.TEMP.2,A$4000,L$2000"
PRINT D$;"BLOAD /RAM/DHR.TEMP.2,A$2000"
PRINT D$;"DELETE /RAM/DHR.TEMP.2"
PRINT D$;"DELETE /RAM/DHR.TEMP"
POKE 49232,0
POKE 49234,0
POKE 49239,0
POKE 49246,0

Maybe I should have used PEEKs there.




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----