mirror of
https://github.com/TomHarte/CLK.git
synced 2025-04-09 15:39:08 +00:00
I think the 68000 actually loads a byte value onto both the upper and lower data lines.
This commit is contained in:
parent
6f4444d834
commit
08f2877382
@ -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;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user