public LR35902( ) { m_regs = new Registers(); m_instructionHandler = new InstructionHandler[0x100]; // 256 instructions m_extendedInstructionHandler = new InstructionHandler[0x100]; // 256 extended instructions FillInstructionHandler(); FillExtendedInstructionHandler(); // Temp binding Read8 = (int aAddress) => { return(0xFF); }; Write8 = (int aAddress, int aAvalue) => { }; CyclesStep += InternalCyclesStep; Reset(); }
/// <summary> /// Binds delegates to handle memory access. /// </summary> /// <param name="aRead">A compatible delegate</param> /// <param name="aWrite">A compatible delegate</param> public void BindBUS(BUSRead8Func aRead, BUSWrite8Func aWrite) { Read8 = aRead; Write8 = aWrite; }