public static void Output(Cpu cpu, byte flag, uint destination, uint source) { var deviceId = (DeviceId)ReadValue(cpu, Dest(flag), destination); var value = ReadValue(cpu, Source(flag), source); cpu.Output(deviceId, value); }