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:
parent
0fbfb41fa8
commit
fde5a1c507
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user