mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-12 09:25:19 +00:00
Having verified manually, lock in 68010 instruction set.
This commit is contained in:
65538
OSBindings/Mac/Clock SignalTests/68000 Decoding/68010ops.json
Normal file
65538
OSBindings/Mac/Clock SignalTests/68000 Decoding/68010ops.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -17,6 +17,21 @@ using namespace InstructionSet::M68k;
|
|||||||
|
|
||||||
namespace {
|
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) {
|
template <Model model> void test(NSString *filename, Class cls) {
|
||||||
NSData *const testData =
|
NSData *const testData =
|
||||||
[NSData dataWithContentsOfURL:
|
[NSData dataWithContentsOfURL:
|
||||||
@@ -65,11 +80,11 @@ template <Model model> void test(NSString *filename, Class cls) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
- (void)test68010 {
|
- (void)test68010 {
|
||||||
test<Model::M68010>(@"68000ops", [self class]);
|
test<Model::M68010>(@"68010ops", [self class]);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)test68020 {
|
- (void)test68020 {
|
||||||
test<Model::M68020>(@"68000ops", [self class]);
|
test<Model::M68020>(@"68010ops", [self class]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Reference in New Issue
Block a user