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
celticdesign/G★P/M..
Paladin/G★P
Unlock/Padua/Albion
goto80/HT
Picrard/Mayday
zscs
Guests online: 105
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (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.047 sec.