public NesState(MusicNsf aMusicNsf) { nsf = aMusicNsf; memory = new NesMemory(nsf); cpuRegister = new NesCpuRegister(); apuRegister = new NesApuRegister(); }
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); }