1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Proactively fixes li sign extension.

This commit is contained in:
Thomas Harte 2021-01-03 11:14:43 -05:00
parent eb8d0eefd5
commit 5401ff6c78

View File

@ -178,7 +178,7 @@ struct Instruction {
0x0000'0000,
0xfc00'0000
};
const uint32_t value = (opcode & 0x03ff'fffc) | extensions[(opcode >> 26) & 1];
const uint32_t value = (opcode & 0x03ff'fffc) | extensions[(opcode >> 25) & 1];
return int32_t(value);
}