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 > fetch the 0-sprite. with open borders...
2010-05-17 18:59
Testa
Account closed

Registered: Oct 2004
Posts: 197
fetch the 0-sprite. with open borders...

hi,

ik have a little problem.. i want to open the sideborders with the 4 lowest sprites... i have two questions about it..

when i do the D016 write i use a dec d016 or a lsr or ror as opcode... why does a sty, sta, stx not work....
has it something to do with cpu takeover cycles at that point...

second question... what to do on a badline....

there are not enough free cycles. with 4 sprites for a inc, ror or lsr d016 instead of a sta, sty or stx...

i realize it is common knowledge.. but sorry i dont. know it...

bye...

2010-05-17 19:42
Radiant

Registered: Sep 2004
Posts: 639
I don't really understand your first question. As for your second question, opening the sideborder with sprite 0 enabled on a badline is impossible because BA will be low at cycle 56.
2010-05-17 20:10
Danzig

Registered: Jun 2002
Posts: 429
But it's fun still to see people trying... in somewhat like 2010!
2010-05-17 21:07
Ventura
Account closed

Registered: Jan 2006
Posts: 67
Quote: But it's fun still to see people trying... in somewhat like 2010!

Well, can't argue with that, but hey psst: don't tell how any of this works!.
2010-05-17 23:50
Ninja

Registered: Jan 2002
Posts: 406
See this graph: In cycles marked with "X" (during takeover), writing is possible, reading not. RMW opcodes are special because their last *two* cycles are write-cycles. This way, you can still access the cycle yo need for opening the border. STA has just the final cycle as write cycle, that is not enough.
2010-05-18 03:51
Oswald

Registered: Apr 2002
Posts: 5022
hmm does the cpu finish off all instructions or may it be stopped in the middle of one ?
2010-05-18 04:25
Ninja

Registered: Jan 2002
Posts: 406
If that cycle at the first "X" is a read-cycle (and most are read cycles), the current opcode will be halted at this point.
2010-05-18 04:28
Oswald

Registered: Apr 2002
Posts: 5022
so why is this whole BA mechanism at place at all then? I thought its purpose is to let instructions finish before letting the bus go. Atari 8 bits simply stop the cpu when needed, there's none of this messy ready cycle business.
2010-05-18 05:06
Ninja

Registered: Jan 2002
Posts: 406
What do you expect to happen if you halt the CPU while it is driving R/W# low? :)
2010-05-18 05:17
chatGPZ

Registered: Dec 2001
Posts: 11130
Quote:
Atari 8 bits simply stop the cpu when needed, there's none of this messy ready cycle business.

the _c64_ does also only stop the cpu (exactly!) when needed - using that "messy" ready cycle business :) the atari stops the cpu _more_ than needed, because it does not have such mechanism :)
2010-05-18 06:09
Oswald

Registered: Apr 2002
Posts: 5022
Quote: What do you expect to happen if you halt the CPU while it is driving R/W# low? :)

what does the "lets wait for a read cycle" rule has to do with that ? a read cycle doesnt drives the R/W(rite)# low ?
 
... 36 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 | 3 | 4 | 5 - 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
Fred/Channel 4
Scrap/Genesis Project
celticdesign/G★P/M..
zscs
Moderators/CSDb Staff
Guests online: 66
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 Webmasters
1 Slaygon  (9.7)
2 Perff  (9.6)
3 Morpheus  (9.5)
4 Sabbi  (9.5)
5 CreaMD  (9.1)

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