public ushort Pop()
        {
            var nextSpAddress = GetRegister(Registers.SP) + 2;

            SetRegister(Registers.SP, (ushort)nextSpAddress);
            StackFrameSize -= 2;

            return(MemoryMapper.GetUInt16((ushort)nextSpAddress));
        }
 public ushort GetRegister(Registers reg)
 {
     return(MemoryMapper.GetUInt16((ushort)RegisterMap[reg]));
 }