also log i/o r/w

This commit is contained in:
folkert van heusden 2023-03-19 14:43:06 +01:00
parent 4f0327e323
commit 28750c56d8
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -81,6 +81,8 @@ uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev,
uint16_t temp = 0; uint16_t temp = 0;
if (a >= 0160000) { if (a >= 0160000) {
DOLOG(debug, !peek_only, "READ from %06o/IO %c %c", a, space == d_space ? 'D' : 'I', word_mode ? 'B' : 'W');
if (word_mode) if (word_mode)
DOLOG(debug, false, "READ I/O %06o in byte mode", a); DOLOG(debug, false, "READ I/O %06o in byte mode", a);
@ -680,6 +682,8 @@ void bus::write(const uint16_t a, const bool word_mode, uint16_t value, const bo
} }
if (a >= 0160000) { if (a >= 0160000) {
DOLOG(debug, true, "WRITE to %06o/IO %c %c: %o", a, space == d_space ? 'D' : 'I', word_mode ? 'B' : 'W', value);
if (word_mode) { if (word_mode) {
assert(value < 256); assert(value < 256);
DOLOG(debug, true, "WRITE I/O %06o in byte mode", a); DOLOG(debug, true, "WRITE I/O %06o in byte mode", a);