diff --git a/src/main.c b/src/main.c index 617c7c1..2ec1385 100644 --- a/src/main.c +++ b/src/main.c @@ -22,15 +22,16 @@ #include "pia.h" -#define BASIC_LOAD_ADDRESS 0xE000 -#define ROM_START 0xF000 -#define ROM_SIZE 0x00FF -#define RESET_VECTOR 0xFF00 -#define DEBUGGER_MESSAGE " [ Hit ` for debugger ] " +#define BASIC_LOAD_ADDRESS 0xE000 +#define ROM_START 0xF000 +#define ROM_SIZE 0x00FF +#define RESET_VECTOR 0xFF00 -#define DEFAULT_FILENAME_ROM "apple1.rom" -#define DEFAULT_FILENAME_BASIC "apple1basic.bin" -#define DEFAULT_FILENAME_DEBUG "apple1.dbg" +#define DEBUGGER_MESSAGE " [ Hit ` for debugger ] " + +#define DEFAULT_FILENAME_ROM "apple1.rom" +#define DEFAULT_FILENAME_BASIC "apple1basic.bin" +#define DEFAULT_FILENAME_DEBUG "apple1.dbg" static v6502_cpu *cpu; static a1pia *pia; diff --git a/src/pia.c b/src/pia.c index 384b69d..3ffea88 100644 --- a/src/pia.c +++ b/src/pia.c @@ -14,11 +14,11 @@ #include #define FIXME_I_SHOULDNT_BE_NULL NULL -#define KEYBOARD_READY 0xFF // This just needs to meet the requirements of being a negative number in the eyes of the 6502 -#define KEYBOARD_NOTREADY 0x00 -#define ANSI_BGCOLOR_GREEN "\x1b[42;1m" -#define CURSES_BACKSPACE 0x7F -#define A1_BACKSPACE 0xDF +#define KEYBOARD_READY 0xFF // This just needs to meet the requirements of being a negative number in the eyes of the 6502 +#define KEYBOARD_NOTREADY 0x00 +#define ANSI_BGCOLOR_GREEN "\x1b[42;1m" +#define CURSES_BACKSPACE 0x7F +#define A1_BACKSPACE 0xDF void saveFreeze(a1pia *pia, const char *fname) { FILE *f = fopen(fname, "w");