mirror of
https://github.com/cc65/cc65.git
synced 2025-01-02 09:34:22 +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);
|
typedef void (*OPFunc) (void);
|
||||||
|
|
||||||
/* The CPU registers */
|
/* The CPU registers */
|
||||||
static CPURegs Regs;
|
CPURegs Regs;
|
||||||
|
|
||||||
/* Cycles for the current insn */
|
/* Cycles for the current insn */
|
||||||
static unsigned Cycles;
|
static unsigned Cycles;
|
||||||
|
@ -65,6 +65,9 @@ struct CPURegs {
|
|||||||
unsigned PC; /* Program counter */
|
unsigned PC; /* Program counter */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Current CPU registers */
|
||||||
|
extern CPURegs Regs;
|
||||||
|
|
||||||
/* Status register bits */
|
/* Status register bits */
|
||||||
#define CF 0x01 /* Carry flag */
|
#define CF 0x01 /* Carry flag */
|
||||||
#define ZF 0x02 /* Zero flag */
|
#define ZF 0x02 /* Zero flag */
|
||||||
|
Loading…
Reference in New Issue
Block a user