public Suzy(ILynxDevice lynx) { device = lynx; Ram = lynx.Ram; SCB = new SpriteControlBlock(); SPRGO = new SpriteProcessStart(); SPRSYS = new SpriteSystemControl(); SPRINIT = new SpriteInitializationBits(0); SUZYBUSEN = new SuzyBusEnable(); JOYSTICK = new Joystick(); }
public void Initialize() { Ram = new Ram64KBMemory(); Rom = new RomBootMemory(); Rom.LoadBootImage(BootRomImage); Mikey = new Mikey(this); Suzy = new Suzy(this); Suzy.Initialize(); // Pass all hardware that have memory access to MMU Mmu = new MemoryManagementUnit(Rom, Ram, Mikey, Suzy); SystemClock = new Clock(); LcdScreenDma = new int[0x3FC0]; // 160 * 102 pixels // Construct processor Cpu = new Cmos65SC02(Mmu, SystemClock); Mikey.Initialize(); // Initialization means running reset operation Reset(); }