Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Sep 6, 2024
1 parent 84f97be commit 311b1d8
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion Emulator/Media/Cartridges/CustomCartridges/Reu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,24 @@ Reu::processEvent(EventID id)
case EXP_REU_SWAP:
case EXP_REU_VERIFY:
{
// Only proceed if the bus is available
/* Only proceed if the bus is available
* Note: The timing of the BA line is not accurately emulated yet.
* Emulation is tricky because of non-trivial timing constraints on
* VICII's BA line. E.g., in Denise, vicii.h states:
*
* "of course expansion port sees the same BA state like CPU RDY
* line. but there is a known case, when BA calculation takes more
* time within cycle. for CPU it doesn't matter, because it checks
* later in cycle. REU seems to check this sooner and can't
* recognize BA in this special cycle.
* auto reuBaLow() -> bool { return baLow && !sprite0DmaLateBA; }"
*
* TODO: Improve accuracy at a later point
*
* A good starting point is VICE test bonzai/spritetiming.prg
* Patch Denise to print out the values of the BA line for this test
*/
if (vic.baLine.readWithDelay(1)) {

// Process the event again in the next cycle
Expand Down

0 comments on commit 311b1d8

Please sign in to comment.