Marked read_addr & write_addr as extern in 6502.h

This commit is contained in:
Rob McMullen 2018-05-17 13:49:33 -07:00
parent b664db7406
commit 4303c7276d
2 changed files with 4 additions and 2 deletions

2
6502.c
View File

@ -19,6 +19,8 @@ uint8_t * (*get_ptr[NUM_MODES])(); // addressing mode decoder table
Instruction instructions[0x100]; // instruction data table
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
void * read_addr;
void * write_addr;
/* Flag Checks */

4
6502.h
View File

@ -19,8 +19,8 @@ extern uint8_t SP; // points to first empty stack location
extern uint8_t extra_cycles;
extern uint64_t total_cycles;
void * read_addr;
void * write_addr;
extern void * read_addr;
extern void * write_addr;
struct StatusBits{
bool carry:1; // bit 0