// // ARMDecoderTests.m // Clock Signal // // Created by Thomas Harte on 16/02/2024. // Copyright 2024 Thomas Harte. All rights reserved. // #import #include "../../../InstructionSets/ARM/OperationMapper.hpp" using namespace InstructionSet::ARM; namespace { struct Scheduler { template void perform(Condition, DataProcessing) {} template void perform(Condition, Multiply) {} template void perform(Condition, SingleDataTransfer) {} template void perform(Condition, BlockDataTransfer) {} template void perform(Condition, Branch) {} template void perform(Condition, CoprocessorRegisterTransfer) {} template void perform(Condition, CoprocessorDataOperation) {} template void perform(Condition, CoprocessorDataTransfer) {} void software_interrupt(Condition) {} void unknown(uint32_t) {} }; } @interface ARMDecoderTests : XCTestCase @end @implementation ARMDecoderTests - (void)testXYX { Scheduler scheduler; InstructionSet::ARM::dispatch(1, scheduler); // const auto intr = Instruction(1); // NSLog(@"%d", intr.operation()); } @end