You are not logged in -
nap
CSDb User Forums
Forums
>
C64 Coding
>
Rasterroutine found in the good old days :)
2011-05-03
14:09
madman68
Account closed
Registered: Apr 2011
Posts: 20
Rasterroutine found in the good old days :)
Hello all,
I have just picked up coding again after 20 jears and i must say that i forgot a lot about it...:)
What i have done is took an old demo i wrote back then and i ripped this piece out of it.
This routine allows to split up the screen in as many parts as you like and jump in each part to a subroutine which does what u like.
It monitors the irq flag at D019 and changes the raster pos bij a row of variables .
Is this a useful routine to make some demos or is it already
to be modified?
Thanx for your respond,
an old beginner
Here it is (i almost forgot hihi):
; 10 SYS (49152)
*=$0800
BYTE $00, $0F, $08, $0A, $00, $9E, $20, $28, $34, $39, $31, $35, $32, $29, $00, $00, $00
*=$c000
lda#$07
sta$10
sei
lda#$01
sta$d01a
lda#$1b
sta$d011
lda#<irq
sta$0314
lda#>irq
sta$0315
lda#$7e
sta$dc0d
cli
loopie jmploopie
irq lda$d019
sta$d019
and#$01
bnehop
jmp$ea81
hop dec$10
lda$10
bplsplitter
lda#$07
sta$10
splitter tax
ldaraster,x
sta$d012
ldacolor,x
sta$d020
ldasubrouthi,x
stajmpsub+2
ldasubroutlo,x
stajmpsub+1
jmpsub jsr$c200
einde jmp$ea81
raster byte $f0,$d0,$a0,$90,$70,$50,$30,$10
color byte $03,$02,$01,$00,$06,$08,$07,$05
subrouthi byte $c2,$c3,$c4,$c5,$c6,$c7,$c8,$c9
subroutlo byte $00,$00,$00,$00,$00,$00,$00,$00,$00
*=$c200
lda#$00
sta$d021
rts
*=$c300
lda#$04
sta$d021
rts
*=$c400
lda#$05
sta$d021
rts
*=$c500
lda#$07
sta$d021
*=$c600
lda#$09
sta$d021
rts
*=$c700
lda#$0c
sta$d021
rts
*=$c800
lda#$0f
sta$d021
rts
*=$c900
lda#$00
sta$d021
rts
2011-05-03
14:29
Oswald
Registered: Apr 2002
Posts: 5094
and#$01
bnehop
this check is never done in demos, because you know no other irq source is present :)
I have learned to code things like this when I was 14-15, so I dont think its very useful for guys other than beginners.
2011-05-03
14:32
madman68
Account closed
Registered: Apr 2011
Posts: 20
you mean that $d019 could be triggerd by other sources too and this would mess up the lot?
If so, what is a better method?
the double irq routine?
2011-05-03
16:23
Oswald
Registered: Apr 2002
Posts: 5094
please do your homework, and understand why and what happend with the d019 handling. :)
http://codebase64.org/doku.php?id=base:introduction_to_raster_i..
http://unusedino.de/ec64/technical/aay/c64/vic25.htm
2011-05-03
16:37
madman68
Account closed
Registered: Apr 2011
Posts: 20
Im already working on that, thank for comment AND links.
can u give me the home of the second link where all adresses are explained like that?
that would be awesome!
2011-05-03
16:40
Celtic
Administrator
Registered: Jan 2002
Posts: 807
and why not contact Terric, the guys in this thread:
http://noname.c64.org/csdb/forums/?roomid=7&topicid=84209&first..
he is offering help to coders, you need it, so a match made in heaven :)
2011-05-03
16:44
madman68
Account closed
Registered: Apr 2011
Posts: 20
You will be in Heaven too for this Celtic :))
Asswhipe that i am, forget about the home of the second link i already got it , Thankx!
Refresh
Subscribe to this thread:
You need to be logged in to post in the forum.
Search the forum:
Search
All forums
C64 Coding
C64 Composing
C64 Pixeling
C64 Productions
CSDb Bug Reports
CSDb Development
CSDb Discussions
CSDb Entries
CSDb Feedback
CSDb Info
CSDb moderators
CSDb Questions
Messages to moderators
Requests
for
in
Writer & text
Text
Writer
All times are CET.
Search CSDb
All
Releases
Groups
Sceners
Events
BBS
SIDs
-------
Forum
Comments
Advanced
Users Online
Brush/Elysium
zscs
Guests online: 98
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 Logo Graphicians
1
t0m3000
(10)
2
Sander
(9.8)
3
Mermaid
(9.5)
4
Facet
(9.4)
5
Shine
(9.4)
Home
-
Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.045 sec.