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: 11386
(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: 5094
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: 1790
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: 105
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
Account closed

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: 11386
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: 5094
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
csabanw
Bitbreaker/Performers
theK/ATL
CopAss/Leader
algorithm
Mr. Commodore/UCF/Un..
Chesser/Blazon
Guests online: 116
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 Layers  (9.6)
2 No Listen  (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 Graphicians
1 Mirage  (9.8)
2 Archmage  (9.7)
3 Pal  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

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