public InterruptService(DMGCPU dmgcpu) : base(dmgcpu) { for (int i = 0; i <= 0x1F; i++) { if ((i & 0x10) == 0x10) { IRQLookup[i] = 4; } if ((i & 0x8) == 0x8) { IRQLookup[i] = 3; } if ((i & 0x4) == 0x4) { IRQLookup[i] = 2; } if ((i & 0x2) == 0x2) { IRQLookup[i] = 1; } if ((i & 0x1) == 0x1) { IRQLookup[i] = 0; } if (i == 0) { IRQLookup[i] = -1; } } Board = dmgcpu.GetBoard(); Memory = Board.GetMemoryManagementUnit(); Registers = dmgcpu.Registers; }
public Disassembler(DMGCPU dmg) { cpu = dmg; Memory = dmg.GetBoard().GetMemoryManagementUnit(); }