예제 #1
0
        public ushort Pop()
        {
            var nextSpAddress = GetRegister(Registers.SP) + 2;

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

            return(MemoryMapper.GetUInt16((ushort)nextSpAddress));
        }
예제 #2
0
 public ushort GetRegister(Registers reg)
 {
     return(MemoryMapper.GetUInt16((ushort)RegisterMap[reg]));
 }