From 08f28773828140049be2d7bb01a12f50afdbd05a Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 21 Dec 2019 20:37:03 -0500 Subject: [PATCH] I think the 68000 actually loads a byte value onto both the upper and lower data lines. --- Processors/68000/68000.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Processors/68000/68000.hpp b/Processors/68000/68000.hpp index ca087411a..8bd61227a 100644 --- a/Processors/68000/68000.hpp +++ b/Processors/68000/68000.hpp @@ -224,8 +224,7 @@ struct Microcycle { */ forceinline uint16_t value16() const { if(operation & SelectWord) return value->full; - const auto shift = byte_shift(); - return uint16_t((value->halves.low << shift) | (0xff00 >> shift)); + return uint16_t((value->halves.low << 8) | value->halves.low); } /*! @@ -237,7 +236,7 @@ struct Microcycle { return uint8_t(value->full >> 8); } - return uint8_t(value->halves.low | (0xff00 >> ((*address & 1) << 3))); + return value->halves.low; } /*! @@ -249,7 +248,7 @@ struct Microcycle { return uint8_t(value->full); } - return uint8_t(value->halves.low | (0x00ff << ((*address & 1) << 3))); + return value->halves.low; } /*!