# I/O Map All unofficial (i.e. not derived from Sony's own code or documentation) register names are suffixed with a question mark. #### DEV0 ``` 1F000000h 80000h Expansion Region (default 512 Kbytes, max 8 MBytes) 1F000000h 100h Expansion ROM Header (IDs and Entrypoints) ``` #### Scratchpad ``` 1F800000h 400h Scratchpad (1K Fast RAM) (Data Cache mapped to fixed address) ``` #### System Bus Interface ``` 1F801000h 4 DEV0_ADDR? DEV0 (PIO) Base Address (usually 1F000000h) 1F801004h 4 DEV8_ADDR? DEV8 (debug) Base Address (usually 1F802000h) 1F801008h 4 DEV0_DELAY / DV0_DELAY DEV0 (PIO) Delay/Size (usually 0013243Fh; 512Kbytes 8bit-bus) 1F80100Ch 4 DEV1_DELAY / DV1_DELAY DEV1 (debug) Delay/Size (usually 00003022h; 1 byte) 1F801010h 4 DEV2_DELAY / DV2_DELAY DEV2 (BIOS ROM) Delay/Size (usually 0013243Fh; 512Kbytes 8bit-bus) 1F801014h 4 DEV4_DELAY / DV4_DELAY DEV4 (SPU) Delay/Size (usually 200931E1h) 1F801018h 4 DEV5_DELAY / DV5_DELAY DEV5 (CD-ROM) Delay/Size (usually 00020843h or 00020943h) 1F80101Ch 4 DEV8_DELAY / DV8_DELAY DEV8 (debug) Delay/Size (usually 00070777h; 128-bytes 8bit-bus) 1F801020h 4 COM_DELAY / COMMON_DELAY (00031125h or 0000132Ch or 00001325h) ``` #### Peripheral I/O Ports ``` 1F801040h 1/4 SIO0_DR Joypad/Memory Card Data (R/W) 1F801044h 4 SIO0_SR Joypad/Memory Card Status (R) 1F801048h 2 SIO0_MR Joypad/Memory Card Mode (R/W) 1F80104Ah 2 SIO0_CR Joypad/Memory Card Control (R/W) 1F80104Eh 2 SIO0_BR Joypad/Memory Card Baudrate (R/W) 1F801050h 1/4 SIO1_DR Serial Port Data (R/W) 1F801054h 4 SIO1_SR Serial Port Status (R) 1F801058h 2 SIO1_MR Serial Port Mode (R/W) 1F80105Ah 2 SIO1_CR Serial Port Control (R/W) 1F80105Ch 2 SIO1_? Serial Port Internal Register (R/W) 1F80105Eh 2 SIO1_BR Serial Port Baudrate (R/W) ``` #### DRAM Controller ``` 1F801060h 4/2 DRAM_CTRL? (usually 00000B88h; 2MB RAM mirrored in first 8MB) ``` #### Interrupt Control ``` 1F801070h 2 I_STAT / I_REG Interrupt status register 1F801074h 2 I_MASK Interrupt mask register ``` #### DMA Registers ``` 1F801080h 4 D0_MADR Channel 0 (MDECin) Memory Address Register (R/W) 1F801084h 4 D0_BCR Channel 0 (MDECin) Block Count Register (R/W) 1F801088h 4 D0_CHCR Channel 0 (MDECin) Channel Control Register (R/W) 1F80109xh 12 D1_* Channel 1 (MDECout) ... 1F8010Axh 12 D2_* Channel 2 (GPU) ... 1F8010Bxh 12 D3_* Channel 3 (CD-ROM) ... 1F8010Cxh 12 D4_* Channel 4 (SPU) ... 1F8010Dxh 12 D5_* Channel 5 (PIO) ... 1F8010Exh 12 D6_* Channel 6 (OTC) ... 1F8010F0h 4 DPCR / D_PCR DMA Priority Control Register 1F8010F4h 4 DICR / D_ICR DMA Interrupt Control Register 1F8010F8h 4 unknown 1F8010FCh 4 unknown ``` #### Timers (aka Root counters) ``` 1F801100h 2 T0_COUNT Timer 0 (dotclock) Current Value (R/W) 1F801104h 2 T0_MODE Timer 0 (dotclock) Mode (R/W) 1F801108h 2 T0_COMP / T0_TARGET Timer 0 (dotclock) Target Value (R/W) 1F80111xh 12 T1_* Timer 1 (hblank) ... 1F80112xh 12 T2_* Timer 2 (sysclock) ... ``` #### CDROM Registers (Address.Read/Write.Index) ``` 1F801800h.R.* 1 HSTS CD Index/Status Register (R) 1F801801h.R.* 1 RESULT CD Response Fifo (R) 1F801802h.R.* 1 RDDATA CD Data Fifo (R) 1F801803h.R.bank0 1 HINTMSK CD Interrupt Enable Register (R) 1F801803h.R.bank1 1 HINTSTS CD Interrupt Flag Register (R) 1F801800h.W.* 1 ADDRESS CD Index Register (Bit0-1 W) 1F801801h.W.bank0 1 COMMAND CD Command Register (W) 1F801802h.W.bank0 1 PARAMETER CD Parameter Fifo (W) 1F801803h.W.bank0 1 HCHPCTL CD Request Register (W) 1F801801h.W.bank1 1 WRDATA CD Sound Map Data (W) 1F801802h.W.bank1 1 HINTMSK CD Interrupt Enable Register (W) 1F801803h.W.bank1 1 HCLRCTL CD Interrupt Flag Register (W) 1F801801h.W.bank2 1 CI CD Sound Map Coding Info (W) 1F801802h.W.bank2 1 ATV0 CD Audio Volume for Left-CD-Out to Left-SPU-Input (W) 1F801803h.W.bank2 1 ATV1 CD Audio Volume for Left-CD-Out to Right-SPU-Input (W) 1F801801h.W.bank3 1 ATV2 CD Audio Volume for Right-CD-Out to Right-SPU-Input (W) 1F801802h.W.bank3 1 ATV3 CD Audio Volume for Right-CD-Out to Left-SPU-Input (W) 1F801803h.W.bank3 1 ADPCTL CD Audio Volume Apply Changes (by writing bit5=1) ``` #### GPU Registers ``` 1F801810h.W 4 GP0 Send GP0 Commands/Packets (Rendering and VRAM Access) 1F801810h.R 4 GP0 Read responses to GP0(C0h) and GP1(10h) commands 1F801814h.W 4 GP1 Send GP1 Commands (Display Control) 1F801814h.R 4 GP1 Read GPU Status Register ``` #### MDEC Registers ``` 1F801820h.W 4 MDEC0 MDEC Command/Parameter Register (W) 1F801820h.R 4 MDEC0 MDEC Data/Response Register (R) 1F801824h.W 4 MDEC1 MDEC Control/Reset Register (W) 1F801824h.R 4 MDEC1 MDEC Status Register (R) ``` #### SPU Voice 0..23 Registers ``` 1F801C00h + 10h*N 2 VOLL Voice 0..23 Volume Left 1F801C02h + 10h*N 2 VOLR Voice 0..23 Volume Right 1F801C04h + 10h*N 2 PITCH Voice 0..23 Sample Rate 1F801C06h + 10h*N 2 SSA Voice 0..23 Sample Start Address 1F801C08h + 10h*N 2 ADSR1 Voice 0..23 ADSR Attack/Decay 1F801C0Ah + 10h*N 2 ADSR2 Voice 0..23 ADSR Sustain/Release 1F801C0Ch + 10h*N 2 ENVX Voice 0..23 ADSR Current Volume 1F801C0Eh + 10h*N 2 LSAX Voice 0..23 Loop Start Address ``` #### SPU Control Registers ``` 1F801D80h 2 MVOLL Main Volume Left 1F801D82h 2 MVOLR Main Volume Right 1F801D84h 2 EVOLL Reverb Volume Left 1F801D86h 2 EVOLR Reverb Volume Right 1F801D88h 2 KON0 Voice 0..15 Key ON (Start Attack/Decay/Sustain) (W) 1F801D8Ah 2 KON1 Voice 16..23 Key ON (Start Attack/Decay/Sustain) (W) 1F801D8Ch 2 KOF0 Voice 0..15 Key OFF (Start Release) (W) 1F801D8Eh 2 KOF1 Voice 16..23 Key OFF (Start Release) (W) 1F801D90h 2 PMON0 Voice 1..15 Channel FM (pitch lfo) mode (R/W) 1F801D92h 2 PMON1 Voice 16..23 Channel FM (pitch lfo) mode (R/W) 1F801D94h 2 NON0 Voice 0..15 Channel Noise mode (R/W) 1F801D96h 2 NON1 Voice 16..23 Channel Noise mode (R/W) 1F801D98h 2 EON0 Voice 0..15 Channel Reverb mode (R/W) 1F801D9Ah 2 EON1 Voice 16..23 Channel Reverb mode (R/W) 1F801D9Ch 2 ENDX0 Voice 0..15 Channel ON/OFF (status) (R) 1F801D9Eh 2 ENDX1 Voice 16..23 Channel ON/OFF (status) (R) 1F801DA0h 2 Unused? (R) or (W) 1F801DA2h 2 ESA Sound RAM Reverb Work Area Start Address 1F801DA4h 2 IRQA Sound RAM IRQ Address 1F801DA6h 2 TSA Sound RAM Transfer Start Address 1F801DA8h 2 DATA? Sound RAM Data Write Fifo 1F801DAAh 2 ATTR SPU Attribute Register 1F801DACh 2 RAM_CTRL? Sound RAM Size Control 1F801DAEh 2 STATX SPU Status Register (R) 1F801DB0h 2 AVOLL I2SA (CD-ROM) Volume Left 1F801DB2h 2 AVOLR I2SA (CD-ROM) Volume Right 1F801DB4h 2 BVOLL I2SB (PIO) Volume Left 1F801DB6h 2 BVOLR I2SB (PIO) Volume Right 1F801DB8h 2 MVOLXL Current Main Volume Left 1F801DBAh 2 MVOLXR Current Main Volume Right 1F801DBCh 4 Unused? (R/W) ``` #### SPU Reverb Configuration Area ``` 1F801DC0h 2 dAPF1? Reverb APF Offset 1 1F801DC2h 2 dAPF2? Reverb APF Offset 2 1F801DC4h 2 vIIR? Reverb Reflection Volume 1 1F801DC6h 2 vCOMB1? Reverb Comb Volume 1 1F801DC8h 2 vCOMB2? Reverb Comb Volume 2 1F801DCAh 2 vCOMB3? Reverb Comb Volume 3 1F801DCCh 2 vCOMB4? Reverb Comb Volume 4 1F801DCEh 2 vWALL? Reverb Reflection Volume 2 1F801DD0h 2 vAPF1? Reverb APF Volume 1 1F801DD2h 2 vAPF2? Reverb APF Volume 2 1F801DD4h 4 mSAME? Reverb Same Side Reflection Address 1 Left/Right 1F801DD8h 4 mCOMB1? Reverb Comb Address 1 Left/Right 1F801DDCh 4 mCOMB2? Reverb Comb Address 2 Left/Right 1F801DE0h 4 dSAME? Reverb Same Side Reflection Address 2 Left/Right 1F801DE4h 4 mDIFF? Reverb Different Side Reflection Address 1 Left/Right 1F801DE8h 4 mCOMB3? Reverb Comb Address 3 Left/Right 1F801DECh 4 mCOMB4? Reverb Comb Address 4 Left/Right 1F801DF0h 4 dDIFF? Reverb Different Side Reflection Address 2 Left/Right 1F801DF4h 4 mAPF1? Reverb APF Address 1 Left/Right 1F801DF8h 4 mAPF2? Reverb APF Address 2 Left/Right 1F801DFCh 4 vIN? Reverb Input Volume Left/Right ``` #### SPU Internal Registers ``` 1F801E00h + 4h*N 2 VOLXL Voice 0..23 Current Volume Left 1F801E02h + 4h*N 2 VOLXR Voice 0..23 Current Volume Right 1F801E60h 20h Unused? (R/W) 1F801E80h 180h Unused? (Read: FFh-filled) ``` #### DEV8 (default 128 bytes, max 8 KBytes) ``` 1F802000h 80h Expansion Region (8bit data bus, crashes on 16bit access?) ``` #### DEV8 - Dual Serial Port (for TTY Debug Terminal) ``` 1F802020h.1st 1 DUART Mode Register 1.A (R/W) 1F802020h.2nd 1 DUART Mode Register 2.A (R/W) 1F802021h.R 1 DUART Status Register A (R) 1F802021h.W 1 DUART Clock Select Register A (W) 1F802022h.R 1 DUART Toggle Baud Rate Generator Test Mode (Read=Strobe) 1F802022h.W 1 DUART Command Register A (W) 1F802023h.R 1 DUART Rx Holding Register A (FIFO) (R) 1F802023h.W 1 DUART Tx Holding Register A (W) 1F802024h.R 1 DUART Input Port Change Register (R) 1F802024h.W 1 DUART Aux. Control Register (W) 1F802025h.R 1 DUART Interrupt Status Register (R) 1F802025h.W 1 DUART Interrupt Mask Register (W) 1F802026h.R 1 DUART Counter/Timer Current Value, Upper/Bit15-8 (R) 1F802026h.W 1 DUART Counter/Timer Reload Value, Upper/Bit15-8 (W) 1F802027h.R 1 DUART Counter/Timer Current Value, Lower/Bit7-0 (R) 1F802027h.W 1 DUART Counter/Timer Reload Value, Lower/Bit7-0 (W) 1F802028h.1st 1 DUART Mode Register 1.B (R/W) 1F802028h.2nd 1 DUART Mode Register 2.B (R/W) 1F802029h.R 1 DUART Status Register B (R) 1F802029h.W 1 DUART Clock Select Register B (W) 1F80202Ah.R 1 DUART Toggle 1X/16X Test Mode (Read=Strobe) 1F80202Ah.W 1 DUART Command Register B (W) 1F80202Bh.R 1 DUART Rx Holding Register B (FIFO) (R) 1F80202Bh.W 1 DUART Tx Holding Register B (W) 1F80202Ch.N 1 DUART Reserved Register (neither R nor W) 1F80202Dh.R 1 DUART Input Port (R) 1F80202Dh.W 1 DUART Output Port Configuration Register (W) 1F80202Eh.R 1 DUART Start Counter Command (Read=Strobe) 1F80202Eh.W 1 DUART Set Output Port Bits Command (Set means Out=LOW) 1F80202Fh.R 1 DUART Stop Counter Command (Read=Strobe) 1F80202Fh.W 1 DUART Reset Output Port Bits Command (Reset means Out=HIGH) ``` #### DEV8 - Int/Dip/Post ``` 1F802000h 1 DTL-H2000: ATCONS STAT (R) 1F802002h 1 DTL-H2000: ATCONS DATA (R and W) 1F802004h 2 DTL-H2000: ATCONS DATA16 (R and W) 1F802030h 1/4 DTL-H2000: Secondary IRQ10 Flags 1F802032h 1 DTL-H2000: Whatever IRQ Control ? 1F802040h 1 DTL-H2000: Bootmode "Dip switches" (R) 1F802041h 1 PSX: POST (external 7 segment display, indicate BIOS boot status) 1F802042h 1 DTL-H2000: POST/LED (similar to POST) (other addr, 2-digit wide) 1F802070h 1 PS2: POST2 (similar to POST, but PS2 BIOS uses this address) ``` #### DEV8 - Nocash Emulation Expansion ``` 1F802060h 1 Emu-Expansion ID1 "E" (R) 1F802061h 1 Emu-Expansion ID2 "X" (R) 1F802062h 1 Emu-Expansion ID3 "P" (R) 1F802063h 1 Emu-Expansion Version (01h) (R) 1F802064h 1 Emu-Expansion Enable1 "O" (R/W) 1F802065h 1 Emu-Expansion Enable2 "N" (R/W) 1F802066h 1 Emu-Expansion Halt (R) 1F802067h 1 Emu-Expansion Turbo Mode Flags (R/W) ``` #### DEV8 - PCSX-Redux Emulation Expansion ``` 1F802080h.R 4 Redux-Expansion ID "PCSX" (R) 1F802080h.W 1 Redux-Expansion Console putchar (W) 1F802081h.W 1 Redux-Expansion Debug break (W) 1F802082h.W 1 Redux-Expansion Exit code (W) 1F802084h 4 Redux-Expansion Notification message pointer (W) ``` #### DEV1 (default 1 byte, max 2 MBytes) ``` 1FA00000h Not used by BIOS or any PSX games 1FA00000h POST3 (similar to POST, but PS2 BIOS uses this address) ``` #### BIOS Region (default 512 Kbytes, max 4 MBytes) ``` 1FC00000h 80000h BIOS ROM (512Kbytes) (Reset Entrypoint at BFC00000h) ``` #### CW33300 CPU Configuration ``` FFFE0130h 4 BCC BIU/Cache Control ``` #### Coprocessor Registers ``` COP0 System Control Coprocessor - 32 registers (not all used) COP1 N/A COP2 Geometry Transformation Engine (GTE) - 64 registers (most are used) COP3 N/A ``` #### Legacy names from outdated documentation nocash's original version of the documentation, as well as emulators and other tools that were written using it as a reference, refer to several registers using unofficial names that have since been changed to the known official ones in this fork: ``` System bus devices: EXP1 / Expansion 1 --> DEV0 EXP2 / Expansion 2 --> DEV8 EXP3 / Expansion 3 --> DEV1 SIO0: JOY_TX_DATA, JOY_RX_DATA --> SIO0_DR JOY_STAT --> SIO0_SR JOY_MODE --> SIO0_MR JOY_CTRL --> SIO0_CR JOY_BAUD --> SIO0_BR SIO1 (often referred to as just "SIO"): SIO_TX_DATA, SIO_RX_DATA --> SIO1_DR SIO_STAT --> SIO1_SR SIO_MODE --> SIO1_MR SIO_CTRL --> SIO1_CR SIO_MISC --> SIO1_? SIO_BAUD --> SIO1_BR GPU: GPUREAD --> GP0 GPUSTAT --> GP1 (BIOS refers to it as GP1 when reading) SPU: SPUCNT --> ATTR SPUSTAT --> STATX DTC / Data Transfer Control --> RAM_CTRL? Reverb mBASE --> ESA Reverb vLOUT, vROUT --> EVOLL, EVOLR ```