diff --git a/bus.cpp b/bus.cpp index bed9dcb..62e401c 100644 --- a/bus.cpp +++ b/bus.cpp @@ -59,6 +59,9 @@ uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev, if (word_mode) DOLOG(debug, false, "READ I/O %06o in byte mode", a); + if (peek_only) + return 012345; + if (a == 0177750) { // MAINT DOLOG(debug, !peek_only, "read MAINT"); return 1; // POWER OK diff --git a/bus.h b/bus.h index eb50428..0a6dbf2 100644 --- a/bus.h +++ b/bus.h @@ -52,7 +52,7 @@ public: void add_tm11(tm_11 *tm11) { this -> tm11 = tm11; } void add_rk05(rk05 *rk05_) { this -> rk05_ = rk05_; } void add_rl02(rl02 *rl02_) { this -> rl02_ = rl02_; } - void add_tty(tty *tty_) { this -> tty_ = tty_; } + void add_tty(tty *tty_) { this -> tty_ = tty_; } cpu *getCpu() { return this->c; } diff --git a/console.cpp b/console.cpp index e739496..f0d5b1e 100644 --- a/console.cpp +++ b/console.cpp @@ -212,7 +212,7 @@ void console::put_string(const std::string & what) void console::operator()() { - DOLOG(::debug, true, "Console thread started"); + DOLOG(::info, true, "Console thread started"); set_thread_name("kek::console"); @@ -239,5 +239,5 @@ void console::operator()() } } - DOLOG(::debug, true, "Console thread terminating"); + DOLOG(::info, true, "Console thread terminating"); } diff --git a/utils.cpp b/utils.cpp index 213684b..a8435cb 100644 --- a/utils.cpp +++ b/utils.cpp @@ -66,7 +66,7 @@ uint64_t get_us() int parity(int v) { - return __builtin_parity(v); // FIXME + return __builtin_parity(v); // TODO } void myusleep(uint64_t us)