Klasse GMod2

java.lang.Object
libsidplay.components.cart.Cartridge
libsidplay.components.cart.supported.GMod2

public class GMod2 extends Cartridge
 "GMod2" Cartridge (GMod2)
 

- this cart comes in 7 sizes, 8Kb, 16Kb, 32Kb, 64Kb, 128Kb, 256Kb, and 512Kb. - ROM is always mapped in at $8000-$9FFF.

XXX EEPROM functionality currently untested

There is one register mapped to $DE00. The register is always active, and there is no way to disable it. bit r/w Flash ROM EEPROM Expansion Port 7 rw 1=write enable (write) Data output (read) - 6 w - Chip select (1=selected) EXROM (0=active) 5 w Bank Selection Bit#5 Clock - 4 w Bank Selection Bit#4 Data input - 3 w Bank Selection Bit#3 - - 2 w Bank Selection Bit#2 - - 1 w Bank Selection Bit#1 - - 0 w Bank Selection Bit#0 - -

bit7 bit6 mode 0 0 regular 8K Game mode, ROM readable at $8000 0 1 EEPROM selected, Flash inactive. EEPROM can be used via bits 4/5/7 1 0 illegal, do not use 1 1 Flash ROM writing enabled

Autor:
Ken Händel
  • Felddetails

    • currentRomBank

      protected int currentRomBank
      Currently active flash ROM bank.
    • romlBanks

      protected final byte[][] romlBanks
      512KiB flash ROM - ROML banks 0..6 (each of sizes 0x2000).
    • m93c86

      private final M93C86 m93c86
      2kB EEPROM
    • eeprom_cs

      private int eeprom_cs
    • eeprom_data

      private int eeprom_data
    • eeprom_clock

      private int eeprom_clock
    • io1Bank

      private final Bank io1Bank
    • romlBank

      private final Bank romlBank
    • romhBank

      private final Bank romhBank
  • Konstruktordetails

  • Methodendetails

    • getRoml

      public Bank getRoml()
      Beschreibung aus Klasse kopiert: Cartridge
      Get currently active ROML bank.
      Setzt außer Kraft:
      getRoml in Klasse Cartridge
      Gibt zurück:
      ROML bank
    • getRomh

      public Bank getRomh()
      Beschreibung aus Klasse kopiert: Cartridge
      Get currently active ROMH bank.
      Setzt außer Kraft:
      getRomh in Klasse Cartridge
      Gibt zurück:
      ROMH bank
    • getIO1

      public Bank getIO1()
      Beschreibung aus Klasse kopiert: Cartridge
      Acquire the IO1 bank
      Setzt außer Kraft:
      getIO1 in Klasse Cartridge
      Gibt zurück:
      The bank responding to IO1 line.
    • reset

      public void reset()
      Beschreibung aus Klasse kopiert: Cartridge
      Bring the cart to power-on state. If overridden, remember to call the superclass method.
      Setzt außer Kraft:
      reset in Klasse Cartridge