public static void JMP(Chip8State state, UInt16 imm) { if (state.PC == imm) { state.Terminated = true; } state.Jump(imm); }
public static void JMP0(Chip8State state, UInt16 imm) { state.Jump((UInt16)(state.Registers.V0 + imm)); }
public static void CALL(Chip8State state, UInt16 imm) { state.SP++; state.StackRegion[state.SP] = (UInt16)(state.PC + 2); state.Jump(imm); }
public static void RET(Chip8State state) { state.Jump(state.StackRegion[state.SP]); state.SP--; }