public VDP(SMS sms, Z80A cpu, VdpMode mode, DisplayType displayType) { Sms = sms; Cpu = cpu; this.mode = mode; if (mode == VdpMode.SMS) CRAM = new byte[32]; if (mode == VdpMode.GameGear) CRAM = new byte[64]; DisplayType = displayType; NameTableBase = CalcNameTableBase(); }