Exemple #1
0
        public static void JMP(Chip8State state, UInt16 imm)
        {
            if (state.PC == imm)
            {
                state.Terminated = true;
            }

            state.Jump(imm);
        }
Exemple #2
0
 public static void JMP0(Chip8State state, UInt16 imm)
 {
     state.Jump((UInt16)(state.Registers.V0 + imm));
 }
Exemple #3
0
 public static void CALL(Chip8State state, UInt16 imm)
 {
     state.SP++;
     state.StackRegion[state.SP] = (UInt16)(state.PC + 2);
     state.Jump(imm);
 }
Exemple #4
0
 public static void RET(Chip8State state)
 {
     state.Jump(state.StackRegion[state.SP]);
     state.SP--;
 }