From 1b2ad838b63a36377ef337c8cadd2149aca55aee Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Thu, 31 Mar 2022 18:29:48 +0200 Subject: [PATCH] ncurses window is now 82x32 -> 80x25 for emulation --- bus.cpp | 3 +++ console.cpp | 7 ++++--- console_ncurses.cpp | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/bus.cpp b/bus.cpp index 353c4f8..25a7ed7 100644 --- a/bus.cpp +++ b/bus.cpp @@ -362,6 +362,9 @@ uint16_t bus::write(const uint16_t a, const bool word_mode, uint16_t value, cons int run_mode = c->getPSW() >> 14; if (a >= 0160000) { + if (word_mode) + fprintf(stderr, "WRITE I/O %06o in byte mode\n", a); + if (word_mode) { if (a == 0177776 || a == 0177777) { // PSW D(fprintf(stderr, "writeb PSW %s\n", a & 1 ? "MSB" : "LSB");) diff --git a/console.cpp b/console.cpp index ae4823b..532fbda 100644 --- a/console.cpp +++ b/console.cpp @@ -5,6 +5,7 @@ #include #include "console.h" +#include "gen.h" #include "utils.h" @@ -84,13 +85,13 @@ void console::put_char(const char c) void console::put_string_ll(const std::string & what) { - for(int x=0; x win, TRUE);