From 4303c7276d5acb697718dd5a8b80faa7e2516477 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Thu, 17 May 2018 13:49:33 -0700 Subject: [PATCH] Marked read_addr & write_addr as extern in 6502.h --- 6502.c | 2 ++ 6502.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/6502.c b/6502.c index 2323a83..3dddaaa 100644 --- a/6502.c +++ b/6502.c @@ -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 */ diff --git a/6502.h b/6502.h index 7565900..264624c 100644 --- a/6502.h +++ b/6502.h @@ -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