1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-27 00:30:26 +00:00

Ensure ADDI, SUBI, etc, provide an operation.

This commit is contained in:
Thomas Harte 2022-04-18 07:42:30 -04:00
parent 0fbfb41fa8
commit fde5a1c507

View File

@ -70,6 +70,20 @@ constexpr Operation Predecoder<model>::operation(OpT op) {
case LEA: return Operation::MOVEAl; case LEA: return Operation::MOVEAl;
#define ImmediateGroup(x) \
case x##Ib: return Operation::x##b; \
case x##Iw: return Operation::x##w; \
case x##Il: return Operation::x##l;
ImmediateGroup(ADD)
ImmediateGroup(SUB);
ImmediateGroup(OR);
ImmediateGroup(AND);
ImmediateGroup(EOR);
ImmediateGroup(CMP);
#undef ImmediateGroup
default: break; default: break;
} }