This commit is contained in:
Abdelrahman Said 2023-03-19 23:22:18 +00:00
parent b3eb9b99c7
commit 732aa2803f

View File

@ -58,7 +58,6 @@ int main(int argc, char *argv[]) {
(inst & (uint16_t)FLAGS::REG_DEST) == (uint16_t)FLAGS::REG_DEST; (inst & (uint16_t)FLAGS::REG_DEST) == (uint16_t)FLAGS::REG_DEST;
bool word = (inst & (uint16_t)FLAGS::WORD) == (uint16_t)FLAGS::WORD; bool word = (inst & (uint16_t)FLAGS::WORD) == (uint16_t)FLAGS::WORD;
// NOTE: Using right shift will only work on little-endian CPUs
uint16_t operands_info = inst >> 8; uint16_t operands_info = inst >> 8;
if (decode_mode(operands_info) == (uint16_t)MODE::REG) { if (decode_mode(operands_info) == (uint16_t)MODE::REG) {