From news.stolaf.edu!msc.edu!sgiblab!darwin.sura.net!howland.reston.ans.net!vixen.cso.uiuc.edu!news.uoregon.edu!gaia.ucs.orst.edu!yoshi Sat Oct 29 13:45:14 CDT 1994 Article: 3493 of comp.sys.apple2.programmer Path: news.stolaf.edu!msc.edu!sgiblab!darwin.sura.net!howland.reston.ans.net!vixen.cso.uiuc.edu!news.uoregon.edu!gaia.ucs.orst.edu!yoshi From: yoshi@CSOS.ORST.EDU (Yoshi) Newsgroups: comp.sys.apple2.programmer Subject: Re: SHR Screen loading Date: 26 Oct 1994 23:13:33 GMT Organization: CS Outreach Services, Oregon State University, Corvallis, OR, USA Lines: 64 Message-ID: <38mnqt$6r@gaia.ucs.orst.edu> References: <1994Oct26.011242.13526@news.stolaf.edu> NNTP-Posting-Host: csos.orst.edu X-Newsreader: TIN [version 1.2 PL2] Peter F Handel (handel@lars.acc.stolaf.edu) wrote: : What's the easiest way to display a Super High Res screen? Uncompressed SHR screen; 32768 bytes off of disk. : It'd be a uncompressed SHR screen; I'd have to load it into : $E1/2000 & then turn it on with C029:C1 (or 41), right? Well, : BLOAD PIC,A$E1/2000 doesn't work (from BASIC) and I'd like : to actually write it as a $FF system file in Merlin. ProDOS 8 : will have been loaded. I have no idea what you mean by a '$FF system file in Merlin', probably 'cuz I use ORCA/M. Anyways. BLOAD PIC,A$E1/2000 won't work because BASIC won't load files into different banks; just bank 0 ($00). If you keep your basic program small (make sure it doesn't go past $00/2000 , otherwise it'll get wiped out by the BLOAD), you could do: BLOAD PIC,A$2000,T$C1 This'll load the picture into $00/2000. It's range is $00/2000 to $00/A000. From here, you should probably have an ASM routine loaded in, say, $1000 which'll move the picture from $00/2000 into $E1/2000. CALL this routine... you may wanna pha/phx plx/pla before and after this routine, but I dunno; I rarely use ASM w/ BASIC. Use the following loop if you want: rep #$30 ldx #$7FFE L1 lda >$002000,x sta >$E12000,x dex dex bpl L1 That should do it just fine. Of course, if you wanna get picky, you can use MVN... ;-) : I guess I could blank the SHR screen, draw lines on it with loops, : and then turn the screen on, but that would take forever. The pic Yes it would. And I would have to shoot you if you did that. ;-) : I want displayed isn't too complex; is loading a compressed pic a : lot harder than loading a 65-block uncompressed pic? Erm, well, it depends on what type of compression; PackBytes, I presume? : Thanks... You're very welcome. Keep in touch. -- | Jeremy 'Yoshi' Chadwick | ______ ___ ___ ___ ______ | | yoshi@CSOS.ORST.EDU | |: \| | |: | |: |/ | | | CSOS IRC Administration | | | | | | | | | Collective Systems Software Engineer | |___|\______| |___| |______/|___| | | "...I still recall the taste, of your tears..." --- Trent Reznor/NIN | From news.stolaf.edu!umn.edu!spool.mu.edu!howland.reston.ans.net!cs.utexas.edu!convex!news.duke.edu!news.mathworks.com!yeshua.marcam.com!zip.eecs.umich.edu!montego!condor.ic.net!falcon.ic.net!platkus Sat Oct 29 13:50:00 CDT 1994 Article: 3495 of comp.sys.apple2.programmer Path: news.stolaf.edu!umn.edu!spool.mu.edu!howland.reston.ans.net!cs.utexas.edu!convex!news.duke.edu!news.mathworks.com!yeshua.marcam.com!zip.eecs.umich.edu!montego!condor.ic.net!falcon.ic.net!platkus From: platkus@ic.net (Shawn Platkus) Newsgroups: comp.sys.apple2.programmer Subject: Re: SHR Screen loading Date: 27 Oct 1994 23:26:36 GMT Organization: ICNet ... Your Link to the Internet ... 313-998-0090 Lines: 42 Message-ID: <38pcvc$l6g@condor.ic.net> References: <1994Oct26.011242.13526@news.stolaf.edu> NNTP-Posting-Host: ic.net X-Newsreader: TIN [version 1.2 PL2] Peter F Handel (handel@lars.acc.stolaf.edu) wrote: > What's the easiest way to display a Super High Res screen? > It'd be a uncompressed SHR screen; I'd have to load it into > $E1/2000 & then turn it on with C029:C1 (or 41), right? Well, > BLOAD PIC,A$E1/2000 doesn't work (from BASIC) and I'd like > to actually write it as a $FF system file in Merlin. ProDOS 8 > will have been loaded. I have a program that I wrote in Applesoft a looong time ago that can load Super Hires pictures on the GS. It can also load in palettes too. I'll email it to you and/or post it on the binaries if anyone else is interested. It has been so long ago though that I can't remember exactly what you have to do right now. > I've messed with the boot block on the FTA's "Blue Helmet" demo, >... stuff cut out... > I guess I could blank the SHR screen, draw lines on it with loops, > and then turn the screen on, but that would take forever. The pic > I want displayed isn't too complex; is loading a compressed pic a > lot harder than loading a 65-block uncompressed pic? Well, you won't need to do the loop stuff, there is an easy way to do it. I'll email you the program. As for the compressed pics ( I assume you mean Apple Preferred Format), the answer is yes and no. If you are doing it from BASIC, well it might take a little doin', but from machine language it shouldn't be too bad. > Thanks... Why you're welcome! > handel@stolaf.edu -Shawn /---------------------------------\ /---------------------------------\ / Shawn Platkus || Compuware Corporation \ \ platkus@ic.net || Shawn_Platkus@compuware.com / \---------------------------------/ \---------------------------------/ From news.stolaf.edu!umn.edu!zip.eecs.umich.edu!yeshua.marcam.com!news.mathworks.com!solaris.cc.vt.edu!uunet!winternet.com!drift!daver Sat Oct 29 13:51:19 CDT 1994 Article: 3497 of comp.sys.apple2.programmer Path: news.stolaf.edu!umn.edu!zip.eecs.umich.edu!yeshua.marcam.com!news.mathworks.com!solaris.cc.vt.edu!uunet!winternet.com!drift!daver From: daver@drift.winternet.com (Dave Roberts) Newsgroups: comp.sys.apple2.programmer Subject: Re: SHR Screen loading Date: 28 Oct 1994 01:54:20 GMT Organization: StarNet Communications, Inc Lines: 40 Message-ID: <38plkc$g22@blackice.winternet.com> References: <1994Oct26.011242.13526@news.stolaf.edu> <38mnqt$6r@gaia.ucs.orst.edu> NNTP-Posting-Host: drift.winternet.com X-Newsreader: NN version 6.5.0 #6 (NOV) yoshi@CSOS.ORST.EDU (Yoshi) writes: >: It'd be a uncompressed SHR screen; I'd have to load it into >: $E1/2000 & then turn it on with C029:C1 (or 41), right? Well, >: BLOAD PIC,A$E1/2000 doesn't work (from BASIC) and I'd like >: to actually write it as a $FF system file in Merlin. ProDOS 8 >: will have been loaded. > I have no idea what you mean by a '$FF system file in Merlin', > probably 'cuz I use ORCA/M. ProDOS 8 SYS ($FF) file. Duh =) BTW, I strongly encourage ya to use GS/OS. It's file routines are not only faster, but more complete, and you can support HFS and other cool things. [munch] > That should do it just fine. Of course, if you wanna get picky, > you can use MVN... ;-) On accelerated machines, MVN is really pretty quick =) Otherwise, there's faster ways to go moving stuffs between banks. Since your picture data is already in bank 00, you might as well remap the dp over your data and the databank (b) over $E1. You'll save a good deal of cycles that way, even with the overhead of moving around your dp. Oh yeah, don't forget to page-align the dp or else you suffer a big penalty speedwise. >: I want displayed isn't too complex; is loading a compressed pic a >: lot harder than loading a 65-block uncompressed pic? > Erm, well, it depends on what type of compression; PackBytes, > I presume? There's publicly available 65816 lzss decompression code; it was included with the soniqTracker source archive. By default it depacks to the screen, but it can be modified pretty easily to store anywhere. LZSS will give you far better compression ratios than RLE or PackBytes ever will =) Dave (use GS/OS! :) -- :: Dave J. Roberts :: daver@drift.winternet.com :: IRC: daver :::::::::::: :: UNIX, Apple IIgs C/65816 Programmer/Consultant For Hire ::::::::::::::: From news.stolaf.edu!umn.edu!spool.mu.edu!uwm.edu!reuter.cse.ogi.edu!cs.uoregon.edu!news.uoregon.edu!cie-2.uoregon.edu!nparker Sat Oct 29 13:51:42 CDT 1994 Article: 3498 of comp.sys.apple2.programmer Path: news.stolaf.edu!umn.edu!spool.mu.edu!uwm.edu!reuter.cse.ogi.edu!cs.uoregon.edu!news.uoregon.edu!cie-2.uoregon.edu!nparker From: nparker@cie-2.uoregon.edu (Neil Parker) Newsgroups: comp.sys.apple2.programmer Subject: Re: SHR Screen loading Date: 27 Oct 1994 06:09:58 GMT Organization: University of Oregon Campus Information Exchange Lines: 48 Message-ID: <38ng7m$k7q@pith.uoregon.edu> References: <1994Oct26.011242.13526@news.stolaf.edu> NNTP-Posting-Host: cie-2.uoregon.edu In article <1994Oct26.011242.13526@news.stolaf.edu> handel@lars.acc.stolaf.edu (Peter F Handel) writes: >What's the easiest way to display a Super High Res screen? >It'd be a uncompressed SHR screen; I'd have to load it into >$E1/2000 & then turn it on with C029:C1 (or 41), right? Well, >BLOAD PIC,A$E1/2000 doesn't work (from BASIC) and I'd like >to actually write it as a $FF system file in Merlin. ProDOS 8 >will have been loaded. 1. BLOAD PIC,A$1000,T$C1. 2. Turn on the SHR linearization bit. You can also turn on the SHR display switch at the same time if you want. (LDA #$40; TSB $C029) 3. Call a machine language routine to copy $8000 bytes from $00/1000 to $E1/2000. PHB CLC XCE REP #$30 LDX #$1000 LDY #$2000 LDA #$8000 MVN $00E1 SEC XCE PLB RTS 4. If you didn't turn on the SHR display switch in step 2, do it now. (LDA #$C0; TSB $C029) Note that regardless of when you make the SHR screen visible, you must always turn on the linearization bit BEFORE writing to the screen. Failure to do so will make your pictures come out scrambled. >I guess I could blank the SHR screen, draw lines on it with loops, >and then turn the screen on, but that would take forever. The pic >I want displayed isn't too complex; is loading a compressed pic a >lot harder than loading a 65-block uncompressed pic? Loading a compressed picture is a little bit harder, because you have to uncompress it first. - Neil Parker -- Neil Parker No cute ASCII art...no cute quote...no cute nparker@cie-2.uoregon.edu disclaimer...no deposit, no return... nparker@cie.uoregon.edu (This space intentionally left blank: )