diff --git a/cpu.h b/cpu.h index 40db82c..5c8cad9 100644 --- a/cpu.h +++ b/cpu.h @@ -1,4 +1,4 @@ -// (C) 2018-2022 by Folkert van Heusden +// (C) 2018-2023 by Folkert van Heusden // Released under Apache License v2.0 #pragma once @@ -12,6 +12,7 @@ #include "bus.h" + typedef struct { bool word_mode; bool prev_mode; diff --git a/debugger.cpp b/debugger.cpp index 854152a..56082af 100644 --- a/debugger.cpp +++ b/debugger.cpp @@ -352,7 +352,7 @@ void debugger(console *const cnsl, bus *const b, std::atomic_uint32_t *const sto #endif continue; } -#if defined(ESP32) || define(RP2040) +#if defined(ESP32) || defined(RP2040) else if (cmd == "cfgdisk") { configure_disk(cnsl); @@ -380,7 +380,7 @@ void debugger(console *const cnsl, bus *const b, std::atomic_uint32_t *const sto else if (cmd == "help" || cmd == "h" || cmd == "?") { cnsl->put_string_lf("disassemble/d - show current instruction (pc=/n=)"); cnsl->put_string_lf("go - run until trap or ^e"); -#if !defined(ESP32) && !define(RP2040) +#if !defined(ESP32) && !defined(RP2040) cnsl->put_string_lf("quit/q - stop emulator"); #endif cnsl->put_string_lf("examine/e - show memory address ( [])"); @@ -397,7 +397,7 @@ void debugger(console *const cnsl, bus *const b, std::atomic_uint32_t *const sto cnsl->put_string_lf("cfgnet - configure network (e.g. WiFi)"); cnsl->put_string_lf("startnet - start network"); #endif -#if defined(ESP32) || define(RP2040) +#if defined(ESP32) || defined(RP2040) cnsl->put_string_lf("cfgdisk - configure disk"); #endif