compile fixes

This commit is contained in:
folkert van heusden 2023-03-22 13:16:20 +01:00
parent 22cacbe020
commit d159b3571b
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1
2 changed files with 5 additions and 4 deletions

3
cpu.h
View file

@ -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;

View file

@ -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 (<b|w> <octal address> [<n>])");
@ -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