1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-21 21:33:54 +00:00

Switch byte order.

This commit is contained in:
Thomas Harte 2024-07-02 21:51:00 -04:00
parent dbc0ecde31
commit 00b3007b9f

View File

@ -949,7 +949,7 @@ class ConcreteMachine:
if(ssm_delegate_) { if(ssm_delegate_) {
if((ssm_code_ & 0xff00ff00) == 0xed00ed00) { if((ssm_code_ & 0xff00ff00) == 0xed00ed00) {
const auto code = uint16_t( const auto code = uint16_t(
(ssm_code_ & 0xff) | ((ssm_code_ >> 8) & 0xff00) ((ssm_code_ << 8) & 0xff00) | ((ssm_code_ >> 16) & 0x00ff)
); );
ssm_code_ = 0; ssm_code_ = 0;