From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Platform:Nintendo 64" |
|---|
| claim | "The Peripheral Interface registers at 0xA4600000 start with the DMA RDRAM address, the cartridge (PI bus) address, the read length (RDRAM to cartridge), the write length (cartridge to RDRAM), status, then the domain-1 timing registers. Lengths are written as size - 1 and writing one starts the DMA." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Nintendo 64" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "n64_pi_regs" |
|---|
| size_min | "0x1C" |
|---|
| size_max | "0x34" |
|---|
| fields | | offset | "0x00" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "dram_addr" |
|---|
|
| offset | "0x04" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "cart_addr" |
|---|
| notes | "0x10000000 + ROM offset for the cartridge ROM" |
|---|
|
| offset | "0x08" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "rd_len" |
|---|
| notes | "RDRAM -> cartridge" |
|---|
|
| offset | "0x0C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "wr_len" |
|---|
| notes | "cartridge -> RDRAM (the usual ROM load)" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "status" |
|---|
|
| offset | "0x14" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "dom1_latency" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "dom1_pulse_width" |
|---|
| notes | "further domain-1/2 timing registers follow (unverified here; upper bound 0x34)" |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "PI_DRAM_ADDR 0xA4600000, PI_CART_ADDR 0xA4600004, PI_RD_LEN 0xA4600008, PI_WR_LEN 0xA460000C, PI_STATUS 0xA4600010" |
|---|
| repo | "https://github.com/DragonMinded/libdragon" |
|---|
| commit | "e356bf3f56f7afbf7e5246329562f145965cfdfc" |
|---|
| path | "include/dma.h" |
|---|
| lines | "39-43" |
|---|
|
| type | "source" |
|---|
| detail | "PI_regs_t: ram_address, pi_address, read_length, write_length, status, dom1_latency, dom1_pulse_width" |
|---|
| repo | "https://github.com/DragonMinded/libdragon" |
|---|
| commit | "e356bf3f56f7afbf7e5246329562f145965cfdfc" |
|---|
| path | "include/regsinternal.h" |
|---|
| lines | "104-120" |
|---|
|
| type | "source" |
|---|
| detail | "IPL3 loads stage 2 from ROM to RDRAM by writing PI_DRAM_ADDR, PI_CART_ADDR, then PI_WR_LEN = size-1" |
|---|
| repo | "https://github.com/DragonMinded/libdragon" |
|---|
| commit | "e356bf3f56f7afbf7e5246329562f145965cfdfc" |
|---|
| path | "boot/ipl3.c" |
|---|
| lines | "345-348" |
|---|
|
| type | "source" |
|---|
| detail | "linker script output format elf32-bigmips" |
|---|
| repo | "https://github.com/DragonMinded/libdragon" |
|---|
| commit | "e356bf3f56f7afbf7e5246329562f145965cfdfc" |
|---|
| path | "n64.ld" |
|---|
| lines | "11" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "PI registers" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T04:47:11.000Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T01:38:07.491Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched libdragon regsinternal.h and dma.h at e356bf3: PI_regs_t lists exactly ram_address, pi_address, read_length, write_length, status, dom1_latency, dom1_pulse_width with a TODO for the remaining registers, so size_min 0x1C and the listed fields are right; the unlisted domain-1/2 registers (up to 0x34) are not in this source, as the fact already says." |
|---|
| notes | "The upper bound 0x34 is not checkable from libdragon." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T13:26:09.644Z" |
|---|
| summary | "Set byte order: big (platform reasoning, weaker): libdragon n64.ld uses elf32-bigmips." |
|---|
| changed | |
|---|
|
|
|---|