Changed nameing convention of fields (now CamelCase), and improved comments.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user