/// <summary> /// Retrieves the data stored in each register half (AL/AH, BL/BH, CL/CH), returning the integer value /// If the specified register isn't A/B/C, throw a new exception. /// </summary> /// <param name="Register"></param> /// <returns>Two halves of the specified register combined into one integer</returns> public int GetSplit(char Register) { if (Register == 'A') { return(BitOps.CombineBytes(AL, AH)); } else if (Register == 'B') { return(BitOps.CombineBytes(BL, BH)); } else if (Register == 'C') { return(BitOps.CombineBytes(CL, CH)); } throw new Exception("There was an internal error and the VM has had to close."); }