public IGTState(GameBoy gb, bool success, int igtStamp) { IGTStamp = igtStamp; Success = success; State = gb.SaveState(); HRA = gb.CpuRead("hRandomAdd"); HRS = gb.CpuRead("hRandomSub"); Divider = gb.DividerState; }
public bool IsDefeated(GameBoy gb) { return((gb.CpuRead(EventFlagAddress) & EventFlagBit) == 0); }
public byte Peek() { return GB.CpuRead(Position); }