Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user eightbitswide ! (Registered 2024-12-24) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Beginner: Raster Bars etc
2003-12-12 01:21
wozza

Registered: May 2003
Posts: 18
Beginner: Raster Bars etc


As a beginner in ML C64 coding, I would like to ask for assitance in a programming related matter. I'm trying not to be a 'lamer' and ask 'how to do this?'without trying to work it out myself - Rather is it permitted to post my crap code that kinda works - for members to help me understand what basics I am doing wrong.

If the forum considers that this post is not what should be here, please say so, and I wont bother you again.

If this is the case please ignore the following, Otherwise I'm sure that you gurus will easily guide me in the right direction.

I'm am trying to create a rather simple effect, moving some raster bars, but I'm having problems with my loop, as for some reason the rotation of the bars and the colours also increases the same colours in the border and screen.

What am I doing wrong so I can just rotate the bars colours.

Thanking you in advance.

Regards, Wozza.

*= $2000

sei
lda #147
jsr $ffd2
lda #$7f
sta $dc0d
lda #$60
sta $d012
lda #<irq
sta $0314
lda #>irq
sta $0315
lda #$f1
sta $d01a
cli
ever jmp ever

irq lda #01
sta $d019
lda $d011
and #$7f
sta $d011
lda #$60
sta $d012
ldx #00
back lda colr,x
sta $d020
sta $d021
jsr delay
inx
cpx #78
bne back
ldx #00
ldy colr
loop lda colr+1,x
sta colr,x
inx
cpx #78

bne loop
tya
sta colr,x
jmp $ea31

delay ldy #05
del1 nop
dey
bne del1
rts


colr
!byte $00,$09,$09,$08,$0a,$07,$01,$00,$09,$09,$02,$02,$08,$08
!byte $0a,$0a,$07,$07,$01,$01,$00,$09,$09,$09,$02,$02,$02,$08,$08,$08
!byte $0a,$0a,$0a,$07,$07,$07,$01,$01,$01,$01,$01,$01,$07,$07,$07,$0a
!byte $0a,$0a,$08,$08,$08,$02,$02,$02,$09,$09,$09,$00,$01,$01,$07,$07
!byte $0a,$0a,$08,$08,$02,$02,$09,$09,$00,$01,$07,$0a,$08,$02,$09,$00



 
... 10 posts hidden. Click here to view all posts....
 
2004-03-15 13:13
Optic
Account closed

Registered: May 2002
Posts: 28
*weird double-post deleted*
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Bieno/Commodore Plus
MaD ][/Starship
iAN CooG/HVSC
Guests online: 109
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 X-Mas Demo 2024  (9.5)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Graphicians
1 Mirage  (9.8)
2 Archmage  (9.7)
3 Pal  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.047 sec.