public IDictionary <string, RegisterValue> GetCpuFlagsAndRegisters()
        {
            int[] regs = new int[6];
            var   ret  = new Dictionary <string, RegisterValue>();

            LibQuickNES.qn_get_cpuregs(Context, regs);
            ret["A"]  = (byte)regs[0];
            ret["X"]  = (byte)regs[1];
            ret["Y"]  = (byte)regs[2];
            ret["SP"] = (ushort)regs[3];
            ret["PC"] = (ushort)regs[4];
            ret["P"]  = (byte)regs[5];
            return(ret);
        }