On Sun, 25 Apr 2004, Rich J. wrote: > Date: 25 Apr 2004 03:04:21 -0700 > From: Rich J. > Newsgroups: comp.sys.apple2.programmer > Subject: Re: Hi-Res Display > > focuseditsolutions@hotmail.com (Jim Cullen) wrote in message news:... > > Hi All! Hi! > > For the most part, I'm working on IIgs software....but I had a > > hankering to > > Develop my current project also for 8-bit Apple II. So I've been > > studying the > > memory mappings for the Hi-Res display... > > graphically speaking by Mark P is a good book for source > code for Preshifted shape animation. Another one is 'Apple Graphics & Arcade Game Design' by Jeffrey Stanton. > You can easliy adapt the code for turning bits on the > screen on/off. > > http://rich12345.tripod.com > > there is a link to the code. The author has approved of it's > presence. > > The page doesn't describe how to create the shapes or > the lookup tables though. > > anyone want to post the basic code to create a lookup > table for the HiRes screen, and poke it into say $4000 > and up, so it can be BSAVED and used from assembly? > > Rich > > aiiadict AT hotmail DOT com Well, in case anyone really needs it, here it is: You can either use this one: d0: EQU some_zeropage_address_or_whatever graphicinit: LDY #0 grphinit2: TYA AND #$c0 STA d0 LSR LSR ORA d0 STA d0 TYA STA d0+1 ASL ASL ASL ROL d0+1 ASL ROL d0+1 ASL LDA d0 ROR STA yvertl,y; lower byte of address LDA d0+1 AND #$1f ORA #$20 STA yverth,y; higher byte of address page 1 EOR #$60 STA yverth2,y; higher byte of address page 2 INY CPY #192 BCC grphinit2 RTS or simply use this one: yvertl: HEX 0000000000000000 HEX 8080808080808080 HEX 0000000000000000 HEX 8080808080808080 HEX 0000000000000000 HEX 8080808080808080 HEX 0000000000000000 HEX 8080808080808080 HEX 2828282828282828 HEX a8a8a8a8a8a8a8a8 HEX 2828282828282828 HEX a8a8a8a8a8a8a8a8 HEX 2828282828282828 HEX a8a8a8a8a8a8a8a8 HEX 2828282828282828 HEX a8a8a8a8a8a8a8a8 HEX 5050505050505050 HEX d0d0d0d0d0d0d0d0 HEX 5050505050505050 HEX d0d0d0d0d0d0d0d0 HEX 5050505050505050 HEX d0d0d0d0d0d0d0d0 HEX 5050505050505050 HEX d0d0d0d0d0d0d0d0 yverth: HEX 2024282c3034383c HEX 2024282c3034383c HEX 2125292d3135393d HEX 2125292d3135393d HEX 22262a2e32363a3e HEX 22262a2e32363a3e HEX 23272b2f33373b3f HEX 23272b2f33373b3f HEX 2024282c3034383c HEX 2024282c3034383c HEX 2125292d3135393d HEX 2125292d3135393d HEX 22262a2e32363a3e HEX 22262a2e32363a3e HEX 23272b2f33373b3f HEX 23272b2f33373b3f HEX 2024282c3034383c HEX 2024282c3034383c HEX 2125292d3135393d HEX 2125292d3135393d HEX 22262a2e32363a3e HEX 22262a2e32363a3e HEX 23272b2f33373b3f HEX 23272b2f33373b3f yverth2: HEX 4044484c5054585c HEX 4044484c5054585c HEX 4145494d5155595d HEX 4145494d5155595d HEX 42464a4e52565a5e HEX 42464a4e52565a5e HEX 43474b4f53575b5f HEX 43474b4f53575b5f HEX 4044484c5054585c HEX 4044484c5054585c HEX 4145494d5155595d HEX 4145494d5155595d HEX 42464a4e52565a5e HEX 42464a4e52565a5e HEX 43474b4f53575b5f HEX 43474b4f53575b5f HEX 4044484c5054585c HEX 4044484c5054585c HEX 4145494d5155595d HEX 4145494d5155595d HEX 42464a4e52565a5e HEX 42464a4e52565a5e HEX 43474b4f53575b5f HEX 43474b4f53575b5f HTH Holger