Merge pull request #4 from robmcmullen/extern_h

Missed 2 externs
This commit is contained in:
David Buchanan 2018-05-17 22:48:41 +01:00 committed by GitHub
commit e000e95ffd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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