mirror of
https://github.com/cc65/cc65.git
synced 2024-12-30 05:30:41 +00:00
Merge pull request #2564 from sidneycadot/fix-cpuregs-linkage
sim65: simulated CPU registers can be accessed from outside 6502.c.
This commit is contained in:
commit
c52d7b27e6
@ -392,7 +392,7 @@ CPUType CPU;
|
||||
typedef void (*OPFunc) (void);
|
||||
|
||||
/* The CPU registers */
|
||||
static CPURegs Regs;
|
||||
CPURegs Regs;
|
||||
|
||||
/* Cycles for the current insn */
|
||||
static unsigned Cycles;
|
||||
|
@ -65,6 +65,9 @@ struct CPURegs {
|
||||
unsigned PC; /* Program counter */
|
||||
};
|
||||
|
||||
/* Current CPU registers */
|
||||
extern CPURegs Regs;
|
||||
|
||||
/* Status register bits */
|
||||
#define CF 0x01 /* Carry flag */
|
||||
#define ZF 0x02 /* Zero flag */
|
||||
|
Loading…
Reference in New Issue
Block a user