Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Bob Hilden Newsgroups: comp.sys.apple2,comp.sys.apple2.programmer Subject: Re: SHR in cc65 - Super Hi-Res Image Loader - Proof of Concept Available for Download Date: Sun, 13 Jul 2014 17:21:32 +0000 (UTC) Organization: Mac GUI Lines: 52 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 13 Jul 2014 17:21:32 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="ac9e0e4d7dd3957fb97803ee6801bab8"; logging-data="13594"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+V7MR97WxbCoBUPldxVngy" User-Agent: Mac GUI Usenet In-Reply-To: Cancel-Lock: sha1:LT11iiDkWtOv3PIOM/cJmiAnn38= Xref: csiph.com comp.sys.apple2:20641 comp.sys.apple2.programmer:1240 Bill Buckels wrote: > Download it here: > > http://www.appleoldies.ca/cc65/programs/shr/piclode.zip > > Complete with source code and disk image. You will need to run this on an > Apple IIgs or on a VOC or on a CB with Charlie's SHR mods, or on a IIgs > emulator. It works in kegs32. > > This is a gutted proof of concept and is utterly featureless. It contains > only the necessary code to load an SHR PIC file. It is also very easy to > understand simply because it is so featureless. > > I only meant to accomplish one thing with this loader and that was to make > > sure that I wouldn't have any issues working with cc65 in SHR mode. > > As it turns out there are apparently no issues. > > This should compile everywhere that cc65 runs. A MAKEFILE is included. > > I must of course warn you all again that I am not attempting to optimize > cc65 since apparently cc65 is working pretty optimally already. > > This compiled to a mere 6642 bytes and seems to work quite quickly. The > disk > image contains 3 SHR PIC files so you can easily try it out for yourself. > > I will need to leave cc65 optimizations to those who think they can do > such > > things and instead concentrate on writing some stuff that's more fun for > this compiler. > > I'll get some routines together over the next few days to load PIC and PNT > > files, and do some documentation again (which takes forever of course). > > I will also be interested to see if I can write a BROOKS loader in cc65. > Aztec C65 wouldn't have been quick enough but I think cc65 is quick > enough. > > I rather think that a VOC loader for interlaced mode might be relatively > straight-forward in cc65 as well. The fact that this code is 8 bit 6502 > code > means that it will run on an Apple IIe with a VOC. > > Bill > Nice work!