From 07afb9320e1311118ff1e7f049ad0ad950fbb264 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sat, 15 Feb 2025 22:00:46 +0000 Subject: Added initial code. Not even close to functional. --- 6502.h | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to '6502.h') diff --git a/6502.h b/6502.h index 3b68ac5..735a6f6 100644 --- a/6502.h +++ b/6502.h @@ -84,33 +84,31 @@ typedef int (*C6502Callback)(C6502 *cpu, C6502Val current_cycles); /* Callback reasons - eC6502_Instruction Called before the initial fetch for an instruction - (called just to once no matter how many bytes the - instruction is made up of). + e6502_Instruction Called before the initial fetch for an instruction. - eC6502_BRK Called when a BRK is executed. + e6502_BRK Called when a BRK is executed. - eC6502_JAM Called when the CPU hits an opcode that jams the CPU. + e6502_JAM Called when the CPU hits an opcode that jams the CPU. - eC6502_RTI Called when the RTI instruction is executed + e6502_RTI Called when the RTI instruction is executed */ typedef enum { - eC6502_Instruction, - eC6502_BRK, - eC6502_JAM, - eC6502_RTI, - eC6502_NO_CALLBACK + e6502_Instruction, + e6502_BRK, + e6502_JAM, + e6502_RTI, + e6502_NO_CALLBACK } C6502CallbackReason; /* Defines cycle timers */ typedef enum { - C6502_TIMER_1, - C6502_TIMER_2, - C6502_TIMER_3, - C6502_NO_TIMERS + e6502_TIMER_1, + e6502_TIMER_2, + e6502_TIMER_3, + e6502_NO_TIMERS } C6502Timer; -- cgit v1.2.3