Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Raster timng per line
2012-03-02 21:36
Kickback

Registered: Apr 2004
Posts: 97
Raster timng per line

I have been going over this idea in my head for sometime now, but wasn't sure if it was actually possible in a LOOP form.

I wanted to store color to $d020, 21, 22, and 23. I was working with some of my old code to achieve this but wasn't sure if this was possible in a loop form.

Sample:

ldx #$00
lda color,x
sta $d020
sta $d021
lda color2,x
sta $d022
lda color3,x
sta $d023
.
.
.
inx
cpx #$20
bne -

Something to that degree, ofcourse the timing routine isn't in that code, I am more wondering if its even possible to do or am I beating a dead horse.

I have seen this done before in a unrolled loop, which makes me believe it's not possible in a rolled loop?

Any help here mates!
2012-03-03 06:32
Marauder/GSS
Account closed

Registered: Jul 2006
Posts: 224
yes, should be possible in a loop... I did something like that in MRD's After Party Demo, see the RIFFS logo on top...

check the IRQ-routine at $10BF:

IRQ1     ...
         LDA #$43
         STA $D012
         LDA #<(IRQ2)
         STA $0314
         LDA #>(IRQ2)
         STA $0315
         JMP $FEBC

IRQ2     LDA #$10
         STA $D016
         BIT $FF
         BIT $FFFF
         BIT $FFFF
         BIT $FFFF
         BIT $FFFF
         LDX #$00
I201     LDY #$06
I200     LDA $1B00,X
         STA $D022
         LDA $17A0,X
         STA $D020
         STA $D021
         LDA $1A00,X
         STA $D023
         INX
         NOP
         NOP
         NOP
         NOP
         NOP
         NOP
         NOP
         NOP
         NOP
         NOP
         NOP
         BIT $EA
         BIT $EA
         DEY
         BNE I200
         LDA $1B00,X
         STA $D022
         LDA $17A0,X
         STA $D020
         STA $D021
         LDA $1A00,X
         STA $D023
         INX
         LDA $17A0,X
         STA $D021
         STA $D020
         LDA $1B00,X
         STA $D022
         LDA $1A00,X
         STA $D023
         INX
         BIT $EA
         NOP
         NOP
         NOP
         NOP
         NOP
         NOP
         NOP
         CPX #$40
         BNE I201
         ASL $D019
         ...


hope it helps...
-Jo
2012-03-04 07:40
Kickback

Registered: Apr 2004
Posts: 97
Thanks mate!!
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
Neon Vincent
Endurion
Chrx/Design/Chaos
Matt
Guests online: 140
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
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 Triad  (9.3)
5 Censor Design  (9.3)
Top Coders
1 Axis  (9.8)
2 Graham  (9.8)
3 Lft  (9.8)
4 Crossbow  (9.8)
5 HCL  (9.8)

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