Changed nameing convention of fields (now CamelCase), and improved comments.

This commit is contained in:
sidney
2024-12-19 07:44:01 +01:00
parent 3cd7548b59
commit 743a3dc735
4 changed files with 74 additions and 59 deletions

View File

@@ -4108,7 +4108,7 @@ unsigned ExecuteInsn (void)
if (HaveNMIRequest) {
HaveNMIRequest = 0;
Peripherals.Counter.nmi_events += 1;
Peripherals.Counter.NmiEvents += 1;
PUSH (PCH);
PUSH (PCL);
@@ -4124,7 +4124,7 @@ unsigned ExecuteInsn (void)
} else if (HaveIRQRequest && GET_IF () == 0) {
HaveIRQRequest = 0;
Peripherals.Counter.irq_events += 1;
Peripherals.Counter.IrqEvents += 1;
PUSH (PCH);
PUSH (PCL);
@@ -4146,11 +4146,11 @@ unsigned ExecuteInsn (void)
Handlers[CPU][OPC] ();
/* Increment the instruction counter by one.NMIs and IRQs are counted separately. */
Peripherals.Counter.cpu_instructions += 1;
Peripherals.Counter.CpuInstructions += 1;
}
/* Increment the 64-bit clock cycle counter with the cycle count for the instruction that we just executed */
Peripherals.Counter.clock_cycles += Cycles;
/* Increment the 64-bit clock cycle counter with the cycle count for the instruction that we just executed. */
Peripherals.Counter.ClockCycles += Cycles;
/* Return the number of clock cycles needed by this insn */
return Cycles;