1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-27 02:55:07 +00:00

Having verified manually, lock in 68010 instruction set.

This commit is contained in:
Thomas Harte 2022-10-27 09:55:02 -04:00
parent 3f80df1feb
commit adbd23eaea
2 changed files with 65555 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -17,6 +17,21 @@ using namespace InstructionSet::M68k;
namespace {
template <Model model> void generate() {
printf("{\n");
Predecoder<model> decoder;
for(int instr = 0; instr < 65536; instr++) {
printf("\t\"%04x\": \"", instr);
const auto found = decoder.decode(uint16_t(instr));
printf("%s\"", found.to_string(instr).c_str());
if(instr != 0xffff) printf(",");
printf("\n");
}
printf("}\n");
}
template <Model model> void test(NSString *filename, Class cls) {
NSData *const testData =
[NSData dataWithContentsOfURL:
@ -65,11 +80,11 @@ template <Model model> void test(NSString *filename, Class cls) {
*/
- (void)test68010 {
test<Model::M68010>(@"68000ops", [self class]);
test<Model::M68010>(@"68010ops", [self class]);
}
- (void)test68020 {
test<Model::M68020>(@"68000ops", [self class]);
test<Model::M68020>(@"68010ops", [self class]);
}
@end