From 56a5df37837c5a829dc17699031fead8e3c29a65 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 22 Feb 2024 10:48:19 -0500 Subject: [PATCH] Do the least possible manual test. --- OSBindings/Mac/Clock SignalTests/ARMDecoderTests.mm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/ARMDecoderTests.mm b/OSBindings/Mac/Clock SignalTests/ARMDecoderTests.mm index 80db06897..3cfeffbce 100644 --- a/OSBindings/Mac/Clock SignalTests/ARMDecoderTests.mm +++ b/OSBindings/Mac/Clock SignalTests/ARMDecoderTests.mm @@ -19,7 +19,10 @@ struct Scheduler { template void perform(Condition, Multiply) {} template void perform(Condition, SingleDataTransfer) {} template void perform(Condition, BlockDataTransfer) {} - template void perform(Condition, Branch) {} + + template void perform(Condition condition, Branch branch) { + printf("Branch %sif %d; add %08x\n", op == Operation::BL ? "with link " : "", int(condition), branch.offset()); + } template void perform(Condition, CoprocessorRegisterTransfer) {} template void perform(Condition, CoprocessorDataOperation) {} template void perform(Condition, CoprocessorDataTransfer) {} @@ -38,7 +41,7 @@ struct Scheduler { - (void)testXYX { Scheduler scheduler; - InstructionSet::ARM::dispatch(1, scheduler); + InstructionSet::ARM::dispatch(0xEAE06900, scheduler); // const auto intr = Instruction(1); // NSLog(@"%d", intr.operation()); }