mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 18:30:21 +00:00
Merge pull request #1040 from TomHarte/68000RESET
Fix decoding of 68000 RESET.
This commit is contained in:
commit
9848fa9a4d
@ -71,7 +71,7 @@ uint32_t operand_mask(AddressingMode mode1, AddressingMode mode2) {
|
||||
/// immediate operand.
|
||||
template <Model model>
|
||||
constexpr Operation Predecoder<model>::operation(OpT op) {
|
||||
if(op < OpT(Operation::Max)) {
|
||||
if(op <= OpT(Operation::Max)) {
|
||||
return Operation(op);
|
||||
}
|
||||
|
||||
@ -445,6 +445,7 @@ template <uint8_t op> uint32_t Predecoder<model>::invalid_operands() {
|
||||
case OpT(Operation::RTS):
|
||||
case OpT(Operation::TRAPV):
|
||||
case OpT(Operation::RTR):
|
||||
case OpT(Operation::RESET):
|
||||
return ~NoOperandMask::value;
|
||||
|
||||
case OpT(Operation::UNLINK):
|
||||
|
@ -45454,7 +45454,7 @@
|
||||
"4e73": "RTE",
|
||||
"4e72": "STOP #",
|
||||
"4e71": "NOP",
|
||||
"4e70": "None",
|
||||
"4e70": "RESET",
|
||||
"4e6f": "MOVEfromUSP A7",
|
||||
"4e6e": "MOVEfromUSP A6",
|
||||
"4e6d": "MOVEfromUSP A5",
|
||||
@ -65535,4 +65535,4 @@
|
||||
"0002": "OR.b #, D2",
|
||||
"0001": "OR.b #, D1",
|
||||
"0000": "OR.b #, D0"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user