From c3674370eff944f4c4da3550d93f86830daac7aa Mon Sep 17 00:00:00 2001 From: David Buchanan Date: Fri, 11 Dec 2020 15:35:27 +0000 Subject: [PATCH] Fix compile --- 6850.c | 4 +++- 6850.h | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/6850.c b/6850.c index f810d5f..b203ac2 100644 --- a/6850.c +++ b/6850.c @@ -6,7 +6,9 @@ #include "6502.h" #include "6850.h" -int n; +static int n; +static union UartStatusReg uart_SR; +static uint8_t incoming_char; void init_uart() { memory[DATA_ADDR] = 0; diff --git a/6850.h b/6850.h index 44f26c5..62c9459 100644 --- a/6850.h +++ b/6850.h @@ -19,10 +19,6 @@ union UartStatusReg { uint8_t byte; }; -union UartStatusReg uart_SR; - -uint8_t incoming_char; - void init_uart(); void step_uart();