public GameState() { CPU = new CPU_6502(); Palette = new Color[64]; for (int i = 0; i < 64; i++) { Palette[i] = Color.FromArgb(colorData[i * 3], colorData[i * 3 + 1], colorData[i * 3 + 2]); } }
public void Init(byte[] _BASICROM, byte[] _KERNALROM, byte[] _CHARENROM, byte[] _C1541ROM, Keyboard _keyboard) { MPU = new PLA(this, _BASICROM, _KERNALROM, _CHARENROM); CPU = new CPU_6502("C64", MPU); SID = new SID_NullDevice(); // IEC = new IECBus(); VIC = new VIC_II(this); CIA1 = new CIA1(_keyboard); CIA2 = new CIA2(); CIA1.SetJoystick(1, Joystick1); CIA1.SetJoystick(2, Joystick2); Datasette = new DatasetteTAP(); // Floppy = new C1541(); Reset(); ClockActive = false; }