From b6f51474ff5db52df43678656009d2441e23ca80 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 17 Jun 2017 18:20:30 -0400 Subject: [PATCH] Ensured that -description can handle the newly-captured bus actions. --- .../Mac/Clock SignalTests/Bridges/TestMachineZ80.mm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/Bridges/TestMachineZ80.mm b/OSBindings/Mac/Clock SignalTests/Bridges/TestMachineZ80.mm index e0b44acf0..f06e15e41 100644 --- a/OSBindings/Mac/Clock SignalTests/Bridges/TestMachineZ80.mm +++ b/OSBindings/Mac/Clock SignalTests/Bridges/TestMachineZ80.mm @@ -79,10 +79,12 @@ static CPU::Z80::Register registerForRegister(CSTestMachineZ80Register reg) { - (NSString *)description { NSString *opName = @""; switch(self.operation) { - case CSTestMachineZ80BusOperationCaptureOperationRead: opName = @"r"; break; - case CSTestMachineZ80BusOperationCaptureOperationWrite: opName = @"w"; break; - case CSTestMachineZ80BusOperationCaptureOperationPortRead: opName = @"i"; break; - case CSTestMachineZ80BusOperationCaptureOperationPortWrite: opName = @"o"; break; + case CSTestMachineZ80BusOperationCaptureOperationReadOpcode: opName = @"ro"; break; + case CSTestMachineZ80BusOperationCaptureOperationRead: opName = @"r"; break; + case CSTestMachineZ80BusOperationCaptureOperationWrite: opName = @"w"; break; + case CSTestMachineZ80BusOperationCaptureOperationPortRead: opName = @"i"; break; + case CSTestMachineZ80BusOperationCaptureOperationPortWrite: opName = @"o"; break; + case CSTestMachineZ80BusOperationCaptureOperationInternalOperation: opName = @"iop"; break; } return [NSString stringWithFormat:@"%@ %04x %02x [%d]", opName, self.address, self.value, self.timeStamp]; }