diff --git a/bus.cpp b/bus.cpp index 79f796b..6ef05f9 100644 --- a/bus.cpp +++ b/bus.cpp @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #include #include @@ -74,6 +74,11 @@ uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev) return 0x80; } + if (a == 0177564) { // console tty status register + fprintf(stderr, "console tty status register\n"); + return 0x80; + } + /// MMU /// if (a >= 0172300 && a < 0172320) { uint16_t t = pages[((a & 017) >> 1)].pdr; @@ -407,6 +412,12 @@ uint16_t bus::write(const uint16_t a, const bool word_mode, uint16_t value, cons return 128; } + if (a == 0177566) { // console tty buffer register + fprintf(stderr, "bus::write TTY buffer %c\n", value); + printf("%c", value & 127); + return 128; + } + if (a & 1) D(fprintf(stderr, "bus::writeWord: odd address UNHANDLED\n");) D(fprintf(stderr, "UNHANDLED write %o(%c): %o\n", a, word_mode ? 'B' : ' ', value);) diff --git a/bus.h b/bus.h index b7b2f69..c6954f0 100644 --- a/bus.h +++ b/bus.h @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #pragma once #include diff --git a/cpu.cpp b/cpu.cpp index be1d2d8..22728a5 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1,5 +1,5 @@ -// (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// (C) 2018-2022 by Folkert van Heusden +// Released under Apache License v2.0 #include #include #include diff --git a/cpu.h b/cpu.h index b88f986..518a2ba 100644 --- a/cpu.h +++ b/cpu.h @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #pragma once #include diff --git a/gen.h b/gen.h index 1824dde..2b90f9e 100644 --- a/gen.h +++ b/gen.h @@ -1,5 +1,5 @@ // (C) 2018-2022 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #ifndef NDEBUG #define D(x) do { x } while(0); #else diff --git a/main.cpp b/main.cpp index f6646eb..1fe28f6 100644 --- a/main.cpp +++ b/main.cpp @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #include #include #include diff --git a/memory.cpp b/memory.cpp index 13c0601..de5460a 100644 --- a/memory.cpp +++ b/memory.cpp @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #include #include "memory.h" diff --git a/memory.h b/memory.h index bf971e6..aa53663 100644 --- a/memory.h +++ b/memory.h @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #pragma once #include diff --git a/rk05.cpp b/rk05.cpp index 21e85fb..422b341 100644 --- a/rk05.cpp +++ b/rk05.cpp @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #include #include diff --git a/rk05.h b/rk05.h index 03b5252..b424058 100644 --- a/rk05.h +++ b/rk05.h @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #pragma once #include diff --git a/rx02.cpp b/rx02.cpp index 28f4463..6b5767f 100644 --- a/rx02.cpp +++ b/rx02.cpp @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #include #include diff --git a/rx02.h b/rx02.h index 2eda04e..36146db 100644 --- a/rx02.h +++ b/rx02.h @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #pragma once #include diff --git a/tests.cpp b/tests.cpp index 4b2efcf..73532f3 100644 --- a/tests.cpp +++ b/tests.cpp @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #include #include #include diff --git a/tests.h b/tests.h index e987c20..163bd5c 100644 --- a/tests.h +++ b/tests.h @@ -1,3 +1,3 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 void tests(cpu *const c); diff --git a/tm-11.cpp b/tm-11.cpp index 2287532..84c1285 100644 --- a/tm-11.cpp +++ b/tm-11.cpp @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #include #include diff --git a/tm-11.h b/tm-11.h index 9452fc3..e4b49a8 100644 --- a/tm-11.h +++ b/tm-11.h @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #pragma once #include diff --git a/tty.cpp b/tty.cpp index 7acdc2f..e94e5b1 100644 --- a/tty.cpp +++ b/tty.cpp @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// // Released under AGPL v3.0 +// // Released under Apache License v2.0 #include #include #include diff --git a/tty.h b/tty.h index 2f0638e..3a456d7 100644 --- a/tty.h +++ b/tty.h @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #pragma once #include diff --git a/utils.cpp b/utils.cpp index 7b56eb6..6211e6e 100644 --- a/utils.cpp +++ b/utils.cpp @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #include #include #include diff --git a/utils.h b/utils.h index 10337a3..8d3652b 100644 --- a/utils.h +++ b/utils.h @@ -1,5 +1,5 @@ // (C) 2018 by Folkert van Heusden -// Released under AGPL v3.0 +// Released under Apache License v2.0 #include #include