mirror of
https://github.com/DavidBuchanan314/6502-emu.git
synced 2024-09-28 03:55:19 +00:00
Marked read_addr & write_addr as extern in 6502.h
This commit is contained in:
parent
b664db7406
commit
4303c7276d
2
6502.c
2
6502.c
@ -19,6 +19,8 @@ uint8_t * (*get_ptr[NUM_MODES])(); // addressing mode decoder table
|
|||||||
Instruction instructions[0x100]; // instruction data table
|
Instruction instructions[0x100]; // instruction data table
|
||||||
Instruction inst; // the current instruction (used for convenience)
|
Instruction inst; // the current instruction (used for convenience)
|
||||||
int jumping; // used to check that we don't need to increment the PC after a jump
|
int jumping; // used to check that we don't need to increment the PC after a jump
|
||||||
|
void * read_addr;
|
||||||
|
void * write_addr;
|
||||||
|
|
||||||
/* Flag Checks */
|
/* Flag Checks */
|
||||||
|
|
||||||
|
4
6502.h
4
6502.h
@ -19,8 +19,8 @@ extern uint8_t SP; // points to first empty stack location
|
|||||||
extern uint8_t extra_cycles;
|
extern uint8_t extra_cycles;
|
||||||
extern uint64_t total_cycles;
|
extern uint64_t total_cycles;
|
||||||
|
|
||||||
void * read_addr;
|
extern void * read_addr;
|
||||||
void * write_addr;
|
extern void * write_addr;
|
||||||
|
|
||||||
struct StatusBits{
|
struct StatusBits{
|
||||||
bool carry:1; // bit 0
|
bool carry:1; // bit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user