コード例 #1
0
 public NesState(MusicNsf aMusicNsf)
 {
     nsf         = aMusicNsf;
     memory      = new NesMemory(nsf);
     cpuRegister = new NesCpuRegister();
     apuRegister = new NesApuRegister();
 }
コード例 #2
0
        public NesCpuRegister GetCopy()
        {
            NesCpuRegister lCCpuRegister = new NesCpuRegister();

            lCCpuRegister.A   = A;
            lCCpuRegister.X   = X;
            lCCpuRegister.Y   = Y;
            lCCpuRegister.S   = S;
            lCCpuRegister.P   = P;
            lCCpuRegister.PC  = PC;
            lCCpuRegister.NPC = NPC;
            lCCpuRegister.CLK = CLK;
            lCCpuRegister.SR  = SR.GetCopy();

            return(lCCpuRegister);
        }