public static void BRZ(StatusRegister statusRegister, ProgramCounter programCounter, Registers registers) { if (statusRegister.zero) { programCounter.programCounter = registers.R[7]; } }
public static void BRN(StatusRegister statusRegister, ProgramCounter programCounter, Registers registers) { if (statusRegister.negative) { programCounter.programCounter = registers.R[7]; } }
public static void BRO(StatusRegister statusRegister, ProgramCounter programCounter, Registers registers) { if (statusRegister.overflow) { programCounter.programCounter = registers.R[7]; } }
public static void BRC(StatusRegister statusRegister, ProgramCounter programCounter, Registers registers) { if (statusRegister.carry) { programCounter.programCounter = registers.R[7]; } }