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-09 00:07
Zyron

Registered: Jan 2002
Posts: 2381
:o
2020-04-09 07:25
MagerValp

Registered: Dec 2001
Posts: 1078
Neat!
2020-04-09 10:21
chatGPZ

Registered: Dec 2001
Posts: 11386
that calls for a test program that breaks emulation :)
2020-04-09 12:10
oziphantom

Registered: Oct 2014
Posts: 490
Quoting lft
The engineers must have assumed (wrongly) that the CPU will always trigger a transfer on the last cycle of an instruction, so that the next cycle is guaranteed to be a read (to fetch the next instruction).

Or explicitly put in the programming guide/datasheet.
'Thou shall not write to thing with anything else other than ABS.'
2020-04-09 14:23
Oswald

Registered: Apr 2002
Posts: 5094
I dont get it, if REU starts to use bus as soon as VIC signals on BA to processor to stop, then it will lead to a bus conflict ?
2020-04-09 21:46
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: I dont get it, if REU starts to use bus as soon as VIC signals on BA to processor to stop, then it will lead to a bus conflict ?

Nobody said that... :) It monitors BA... I don't know, but I would assume the REU will not transfer when BA is low, even though technically could use cycles 0..2 there. It might do, I dunno.
2020-04-09 23:47
chatGPZ

Registered: Dec 2001
Posts: 11386
but where is the test program? :)
2020-04-10 11:54
Walt

Registered: May 2004
Posts: 47
I am working on a REU demo and I had to do some test code because I experienced different behavior when using REU to magic byte on top of 8 sprites in a row.

Timing was different on VICE 2.4, VICE 3.x, real REU (Thanks Hedning :)), 64 Ultimate and 1541 Ultimate 2+...

The C64 Ultimate and VICE 2.4 behaved the same and real REU and VICE 3.x behaved the same (Nice work on VICE :))

So yeah, a test program for BA and REU would be nice...
2020-04-10 12:20
chatGPZ

Registered: Dec 2001
Posts: 11386
there are related test programs, but not for the ff00 trigger with inc as lft described :) see https://sourceforge.net/p/vice-emu/code/HEAD/tree/testprogs/REU/
2020-05-17 16:43
chatGPZ

Registered: Dec 2001
Posts: 11386
.... so i wrote one -> https://sourceforge.net/p/vice-emu/code/HEAD/tree/testprogs/REU..

works as LFT described on real hardware. fails in VICE :)
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
E$G/HF ⭐ 7
Chesser/Blazon
The Human Co../Maste..
El Gato
Steffan/BOOM!
v3nt0r/ibex-crew
aNdy/AL/Cosine
t0m3000/hf^boom!^ibx
MCM/ONSLAUGHT
Fred/Channel 4
Hobbit/Laser Inc.
REBEL 1/HF
acrouzet/G★P
Krill/Plush
Guests online: 130
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 Diskmag Editors
1 Magic  (9.8)
2 hedning  (9.6)
3 Jazzcat  (9.5)
4 Elwix  (9.1)
5 Remix  (9.1)

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