1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-04-06 10:38:16 +00:00

Add MUL/DIV tests and exclusions.

This commit is contained in:
Thomas Harte 2022-04-22 09:47:16 -04:00
parent 977192f480
commit 06fb502047
2 changed files with 15 additions and 3 deletions

View File

@ -408,6 +408,16 @@ template <uint8_t op, bool validate> Preinstruction Predecoder<model>::validated
case AddressingMode::None:
return Preinstruction();
}
case OpT(Operation::DIVU): case OpT(Operation::DIVS):
case OpT(Operation::MULU): case OpT(Operation::MULS):
switch(original.mode<0>()) {
default: return original;
case AddressingMode::AddressRegisterDirect:
case AddressingMode::None:
return Preinstruction();
}
}
}

View File

@ -241,12 +241,14 @@ template <int index> NSString *operand(Preinstruction instruction, uint16_t opco
// case Operation::ORw: instruction = @"OR.w"; break;
// case Operation::ORl: instruction = @"OR.l"; break;
case Operation::MULU: instruction = @"MULU"; break;
case Operation::MULS: instruction = @"MULS"; break;
case Operation::DIVU: instruction = @"DIVU"; break;
case Operation::DIVS: instruction = @"DIVS"; break;
/*
TODO:
MULU, MULS,
DIVU, DIVS,
RTE, RTR,
TRAP, TRAPV,