Skip to content

Commit

Permalink
added option to enable thumb cycle counting via emulated ROM
Browse files Browse the repository at this point in the history
  • Loading branch information
thrust26 committed Jun 3, 2024
1 parent 02e35da commit 40ba896
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/emucore/Thumbulator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ void Thumbulator::write32(uInt32 addr, uInt32 data)
mamcr = static_cast<MamModeType>(data);
break;
#endif

default:
break;
}
Expand Down Expand Up @@ -760,6 +759,11 @@ uInt32 Thumbulator::read32(uInt32 addr)
case 0xE000E018:
data = systick_count;
return data;
#ifdef THUMB_CYCLE_COUNT
case 0xE01FC100: // APBDIV
_countCycles = true; // enabe cycle counting
return 1; // random value
#endif

#ifndef UNSAFE_OPTIMIZATIONS
case 0xE000E01C:
Expand Down

0 comments on commit 40ba896

Please sign in to comment.