mirror of
https://github.com/cc65/cc65.git
synced 2025-08-09 13:25:06 +00:00
Fixed mistake in the latching code.
This commit is contained in:
@@ -82,10 +82,10 @@ void PeripheralWriteByte (uint8_t Addr, uint8_t Val)
|
|||||||
PRegs.latched_wallclock_time = get_uint64_wallclock_time();
|
PRegs.latched_wallclock_time = get_uint64_wallclock_time();
|
||||||
|
|
||||||
/* Now latch all the cycles maintained by the processor. */
|
/* Now latch all the cycles maintained by the processor. */
|
||||||
PRegs.latched_counter_clock_cycles = PRegs.latched_counter_clock_cycles;
|
PRegs.latched_counter_clock_cycles = PRegs.counter_clock_cycles;
|
||||||
PRegs.latched_counter_instructions = PRegs.latched_counter_instructions;
|
PRegs.latched_counter_instructions = PRegs.counter_instructions;
|
||||||
PRegs.latched_counter_irq_events = PRegs.latched_counter_irq_events;
|
PRegs.latched_counter_irq_events = PRegs.counter_irq_events;
|
||||||
PRegs.latched_counter_nmi_events = PRegs.latched_counter_nmi_events;
|
PRegs.latched_counter_nmi_events = PRegs.counter_nmi_events;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PERIPHERALS_ADDRESS_OFFSET_SELECT: {
|
case PERIPHERALS_ADDRESS_OFFSET_SELECT: {
|
||||||
|
Reference in New Issue
Block a user