public static bool F_RET() { CPU.MoveProgramCounter(CPU.PopStack()); // skips the call fuction it goes back to CPU.StepProgramCounter(I_CALL.Arguments); return(true); }
public static bool F_JUMP() { byte left = Memory.Read((ushort)(CPU.ProgCtr + 1)); byte right = Memory.Read((ushort)(CPU.ProgCtr + 2)); CPU.MoveProgramCounter(BytesToAddress(left, right)); return(true); }
public static bool F_CALLI() { byte left = Memory.Read((ushort)(CPU.ProgCtr + 1)); byte right = Memory.Read((ushort)(CPU.ProgCtr + 2)); CPU.PushStack(CPU.ProgCtr); CPU.MoveProgramCounter(CPU.I); return(true); }
public static bool F_JUMPI() { CPU.MoveProgramCounter(CPU.I); return(true); }