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 > (Ab)use of dummy accesses
2020-03-09 17:04
chatGPZ

Registered: Dec 2001
Posts: 11149
(Ab)use of dummy accesses

For the next release of my "No more Secrets" doc i am preparing a chapter related to the dummy access which happen when the CPU performs an internal operation. Once again i am looking for some examples on how to (ab)use it :) I guess everyone knows "inc $d019" - but i am sure there is more than this. And not only with RMW instructions. So if you have anything in your mind - just drop it here!

here are some related notes which i pasted together. feel free to proofread and point out mistakes :)
 
... 55 posts hidden. Click here to view all posts....
 
2020-04-06 17:48
Compyx

Registered: Jan 2005
Posts: 631
Perhaps I'm missing something, but aren't the 'alternate' ghostbytes at $B9FF and $F9FF (when using ECM)?
2020-04-06 18:04
CyberBrain
Administrator

Posts: 392
Yes, you're absolutely right of course. Their values unfortunately doesn't become much nicer:

$B9FF = $A0
$F9FF = $D2
2020-04-06 19:22
Compyx

Registered: Jan 2005
Posts: 631
Nope. But the 'trick' is very interesting though, never would have thought of it :)
2020-04-06 20:15
Oswald

Registered: Apr 2002
Posts: 5031
nice trick, but 3fff can be set to any byte in a 8 pixel wide area with another trick.
2020-04-06 20:56
Compyx

Registered: Jan 2005
Posts: 631
Pray tell.
2020-04-07 08:32
tlr

Registered: Sep 2003
Posts: 1728
Quote: nice trick, but 3fff can be set to any byte in a 8 pixel wide area with another trick.

I assume you are refering to exploiting the difference in pipeline delay between changing the videomode and changing the fetched graphics data to be fetched?

That is a neat trick, but it is dependant on the type of VIC-II (old/new) and it takes more cycles per instance.

The inc $ffff trick is only 6 cycles per instance.
2020-04-07 08:41
Hoogo

Registered: Jun 2002
Posts: 102
Dec $dc0d after a Timer A IRQ occurred would acknowledge that IRQ and stop further ones. But I don't see a good reason to do that.
2020-04-07 09:27
Rastah Bar

Registered: Oct 2012
Posts: 336
Hoogo, perhaps when you no longer need that timer interrupt, f.e. as an exit strategy to move on to a new demo part?

Oswald, are you referring to the vertical border scrollers in Krestage? But aren't these 7 pixels wide?

CyberBrain, great idea!
2020-04-07 11:34
chatGPZ

Registered: Dec 2001
Posts: 11149
reminds me of a subtle bug i created long ago which made me pull my hair out. somehow i thought its a good idea to ACK the timer irq by
lda $dc0d
sta $dc0d

aaaargs
2020-04-07 14:35
Oswald

Registered: Apr 2002
Posts: 5031
Quote: Hoogo, perhaps when you no longer need that timer interrupt, f.e. as an exit strategy to move on to a new demo part?

Oswald, are you referring to the vertical border scrollers in Krestage? But aren't these 7 pixels wide?

CyberBrain, great idea!


maybe 7,dont know :)

interesting it doesnt work on old vic ? why did they change it? why is it needed? interesting details here :)
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 - 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
katon/Lepsi De
iAN CooG/HVSC
taper/ΤRIΛD
Scooby/G★P/Light
DeMOSic/HF^MS^BCC^LSD
Knut Clausen/SHAPE/F..
Magic/Nah-Kolor
Moderators/CSDb Staff
Dave/SIDNIFY
pcollins/Quantum
Mikael/Pretzel Logic
Guests online: 167
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 No Bounds  (9.6)
7 Aliens in Wonderland  (9.6)
8 Comaland 100%  (9.6)
9 Uncensored  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 It's More Fun to Com..  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Happy Birthday Dr.J  (9.6)
6 Copper Booze  (9.6)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Rainbow Connection  (9.5)
9 Dawnfall V1.1  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (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.061 sec.