odd address check in i/o when in !word_mode

This commit is contained in:
folkert van heusden 2023-03-21 08:49:49 +01:00
parent c77ae1d617
commit 6ac4a9ecb6
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -114,7 +114,7 @@ uint16_t bus::read(const uint16_t a, const bool word_mode, const bool use_prev,
///^ registers ^///
if (!peek_only) {
if (a & 1) {
if ((a & 1) && word_mode == false) {
DOLOG(debug, true, "bus::readWord: odd address UNHANDLED %06o in i/o area", a);
c->schedule_trap(004); // invalid access
return 0;