1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Reorder from most specific to least.

This commit is contained in:
Thomas Harte 2022-04-19 08:00:52 -04:00
parent 3ffca20001
commit fc4fd41be4
2 changed files with 17 additions and 17 deletions

View File

@ -601,6 +601,22 @@ Preinstruction Predecoder<model>::decode4(uint16_t instruction) {
default: break;
}
switch(instruction & 0xff8) {
case 0x860: Decode(Op::SWAP); // 4-185 (p289)
case 0x880: Decode(Op::EXTbtow); // 4-106 (p210)
case 0x8c0: Decode(Op::EXTwtol); // 4-106 (p210)
case 0xe50: Decode(Op::LINKw); // 4-111 (p215)
case 0xe58: Decode(Op::UNLINK); // 4-194 (p298)
case 0xe60: Decode(Op::MOVEtoUSP); // 6-21 (p475)
case 0xe68: Decode(Op::MOVEfromUSP); // 6-21 (p475)
default: break;
}
switch(instruction & 0xff0) {
case 0xe40: Decode(Op::TRAP); // 4-188 (p292)
default: break;
}
switch(instruction & 0xfc0) {
// 4-146 (p250)
case 0x000: Decode(Op::NEGXb);
@ -666,22 +682,6 @@ Preinstruction Predecoder<model>::decode4(uint16_t instruction) {
default: break;
}
switch(instruction & 0xff0) {
case 0xe40: Decode(Op::TRAP); // 4-188 (p292)
default: break;
}
switch(instruction & 0xff8) {
case 0x860: Decode(Op::SWAP); // 4-185 (p289)
case 0x880: Decode(Op::EXTbtow); // 4-106 (p210)
case 0x8c0: Decode(Op::EXTwtol); // 4-106 (p210)
case 0xe50: Decode(Op::LINKw); // 4-111 (p215)
case 0xe58: Decode(Op::UNLINK); // 4-194 (p298)
case 0xe60: Decode(Op::MOVEtoUSP); // 6-21 (p475)
case 0xe68: Decode(Op::MOVEfromUSP); // 6-21 (p475)
default: break;
}
return Preinstruction();
}

View File

@ -45453,7 +45453,7 @@
"4e74": "None",
"4e73": "RTE/RTR",
"4e72": "STOP",
"4e71": "None",
"4e71": "NOP",
"4e70": "None",
"4e6f": "MOVEA.l A0",
"4e6e": "MOVEA.l A0",