BLuRry
unread,Aug 30, 2012, 10:21:56 PM8/30/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Here's something I wrote to see how fast I could fill the hires screen with the same number. I wrote this in a "race-the-gun" style so that you could in theory run this without ever getting a vertical retrace artifact or vertical blinds. Store the pattern you want in $06 before calling it.
I wrote this for ACME assembler. Because I unrolled the loop to store 8 bytes before a conditional branch it is incredibly speedy.
There is a reason for this routine, but it's actually because I want something that can reverse the whole screen. The way I see it is you can't make a killer 3d demo on this platform. But holy cow can you get creative with persistence of vision. Because this platform can fire off 60 fps, stroboscopic effects are much more effective.
-B
; @com.wudsn.ide.asm.hardware=APPLE2
!cpu 65c02
*=$6000
GRAPHICS = $c050
FULLSCREEN = $c052
PAGE1 = $c054
HIRES = $c057
bit HIRES
bit PAGE1
bit FULLSCREEN
bit GRAPHICS
LDY #47
CLC
clearloop
LDA lookup,y
STA rewrite1+2
ADC #$04
STA rewrite2+2
ADC #$04
STA rewrite3+2
ADC #$04
STA rewrite4+2
ADC #$04
STA rewrite5+2
ADC #$04
STA rewrite6+2
ADC #$04
STA rewrite7+2
ADC #$04
STA rewrite8+2
LDX #40
DEY
LDA lookup,y
STA rewrite1+1
STA rewrite2+1
STA rewrite3+1
STA rewrite4+1
STA rewrite5+1
STA rewrite6+1
STA rewrite7+1
STA rewrite8+1
LDA $06
rewrite1 STA $2000, X
rewrite2 STA $2000, X
rewrite3 STA $2000, X
rewrite4 STA $2000, X
rewrite5 STA $2000, X
rewrite6 STA $2000, X
rewrite7 STA $2000, X
rewrite8 STA $2000, X
DEX
BPL rewrite1
DEY
BPL clearloop
RTS
lookup !wo $23D0,$2350,$22D0,$2250,$21D0,$2150
!wo $20D0,$2050,$23A8,$2328,$22A8,$2228
!wo $21A8,$2128,$20A8,$2028,$2380,$2300
!wo $2280,$2200,$2180,$2100,$2080,$2000