Neo Geo

Memory Mapped Registers


參考資訊:
1. wiki

I/O registers

Name Address Mask Description Read Write
REG_P1CNT 0x300000 0xfe0001 Joypad port 1 inputs (active low) b7: D
b6: C
b5: B
b4: A
b3: RIGHT
b2: LEFT
b1: DOWN
b0: UP
REG_DIPSW 0x300001 0xfe0081 Hardware DIPs (active low) b7: Freeze
b6: Freeplay
b5: Enable Multiplayer
b4~b3: Comm. ID code
b2: [0]Normal controller, [1]Mahjong keyboard
b1: [0]1 chute, [1]2 chutes
b0: Settings mode
Kick watchdog
REG_SYSTYPE 0x300081 0xfe0081 Reads the unused DSW2 on MV4 boards.
Used for system ID on other boards.
b7: Test Button
b6: Type [0]2 slots, [1]4 or 6 slots
REG_SOUND 0x320000 0xfe0001 Read Z80 reply code Send command to Z80
REG_STATUS_A 0x320001 0xfe0001 Switch inputs are active low b7: RTC data bit
b6: RTC time pulse
b5: [0]4-SLOT, [1]6-SLOT
b4: Coin-in 4
b3: Coin-in 3
b2: Service button
b1: Coin-in 2
b0: Coin-in 1
REG_P2CNT 0x340000 0xfe0001 Joypad port 2 inputs (active low) b7: D
b6: C
b5: B
b4: A
b3: RIGHT
b2: LEFT
b1: DOWN
b0: UP
REG_STATUS_B 0x380000 0xfe0001 Aux inputs (lower bits active low) b7: [0]AES, [1]MVS
b6: Memory card write protected if 1
b5~b4: Memory card inserted if 00
b3: Select P2
b2: Start P2
b1: Select P1
b0: Start P1
REG_POUTPUT 0x380001 0xfe0071 Joypad ports outputs b5~b3: P2 outputs
b2~b0: P1 outputs
REG_CRDBANK 0x380011 0xfe0071 b2~b0: Memory card bank selection
REG_SLOT 0x380021 0xfe00f1 Mirror of REG_POUTPUT on the AES b2~b0: Slot #
REG_LEDLATCHES 0x380031 0xfe00f1 LED data is latched on 1 to 0 transition. b5: Latch LED2 data
b4: Latch LED1 data
b3: Latch marquee data
REG_LEDDATA 0x380041 0xfe00f1 8-bit data for credits displays and the marquee.
REG_RTCCTRL 0x380051 0xfe00f1 MAME upd4990a_control_16_w b2: RTC Strobe
b1: RTC Clock
b0: RTC DIN
REG_RESETCC1 0x380061 0xfe00f1 Any, coin counter 1 floats
REG_RESETCC2 0x380063 0xfe00f1 Any, coin counter 2 floats
REG_RESETCL1 0x380065 0xfe00f1 Any, coin lockout 1 floats
REG_RESETCL2 0x380067 0xfe00f1 Any, coin lockout 2 floats
REG_SETCC1 0x3800e1 0xfe00f1 Any, coin counter 1 sinks current
REG_SETCC2 0x3800e3 0xfe00f1 Any, coin counter 2 sinks current
REG_SETCL1 0x3800e5 0xfe00f1 Any, coin lockout 1 sinks current
REG_SETCL2 0x3800e7 0xfe00f1 Any, coin lockout 2 sinks current

System registers

NameAddressMaskWrite
REG_NOSHADOW0x3a00010xfe0001Normal video output
REG_SHADOW0x3a00110xfe0001Darken video output
REG_SWPBIOS0x3a00030xfe0001BIOS vector table
REG_SWPROM0x3a00130xfe0001Use the cart's vector table
REG_CRDUNLOCK10x3a00050xfe0001Enable writes to memory card (unused in CD systems)
REG_CRDLOCK10x3a00150xfe0001Disable writes to memory card (unused in CD systems)
REG_CRDLOCK20x3a00070xfe0001Disable writes to memory card (unused in CD systems)
REG_CRDUNLOCK20x3a00170xfe0001Enable writes to memory card (unused in CD systems)
REG_CRDREGSEL0x3a00090xfe0001Enable "Register select" for memory card
REG_CRDNORMAL0x3a00190xfe0001Disable "Register select" for memory card
REG_BRDFIX0x3a000b0xfe0001Use the embedded SFIX ROM and SM1 ROM
REG_CRTFIX0x3a001b0xfe0001Use the cart's S ROM and M1 ROM
REG_SRAMLOCK0x3a000d0xfe0001Write-protects backup RAM (MVS)
REG_SRAMUNLOCK0x3a001d0xfe0001Unprotects backup RAM (MVS)
REG_PALBANK10x3a000f0xfe0001Use palette bank 1
REG_PALBANK00x3a001f0xfe0001Use palette bank 0

Video registers

NameAddressMaskReadWrite
REG_VRAMADDR0x3c00000xfe0001Read from VRAM (address doesn't change)Sets VRAM address
REG_VRAMRW0x3c00020xfe0001Read from VRAM (address doesn't change)Write to VRAM (modulo is applied after)
REG_VRAMMOD0x3c00040xfe0001Reads VRAM address moduloSets VRAM address modulo
REG_LSPCMODE0x3c00060xfe0001 b15~b7: Raster line counter
b6~b4: 0
b3: [1]50Hz, [0]60Hz (LSPC2 only)
b2~b0: Auto animation counter
b15~b8: Auto animation speed (in frames)
b7~b5: Timer interrupt mode
b4: Timer interrupt enable
b3: Disable auto animation
b2~b0: Unused
REG_TIMERHIGH0x3c00080xfe0001Like REG_VRAMADDR.16 highest bits of the timer reload value.
REG_TIMERLOW0x3c000a0xfe0001Like REG_VRAMRW.16 lowest bits of the timer reload value.
REG_IRQACK0x3c000c0xfe0001Like REG_VRAMMOD. Interrupt acknowledge
b7~b3: Unused
b2: Ack VBlank
b1: Ack HBlank
b0: Ack IRQ3
REG_TIMERSTOP0x3c000e0xfe0001Like REG_LSPCMODE.b0: [1]Stops timer counter during first and last 16 lines (32 total) when in PAL mode.


返回上一頁