From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Platform:Nintendo 64" |
|---|
| claim | "The Audio Interface registers at 0xA4500000 are: DMA RDRAM address, DMA length (bytes of 16-bit stereo samples), control (1 = DMA enable), status (bit 31 FIFO full, bit 30 busy), dacrate and bitrate." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Nintendo 64" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "n64_ai_regs" |
|---|
| size | "0x18" |
|---|
| fields | | offset | "0x00" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "dram_addr" |
|---|
|
| offset | "0x04" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "length" |
|---|
|
| offset | "0x08" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "control" |
|---|
|
| offset | "0x0C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "status" |
|---|
| bits | |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "dacrate" |
|---|
| notes | "round(dac_clock / sample_rate) - 1" |
|---|
|
| offset | "0x14" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "bitrate" |
|---|
| notes | "0..15, written as value - 1" |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "AI_regs_t: address, length, control, status (bit 31 full, bit 30 busy), dacrate, bitrate" |
|---|
| repo | "https://github.com/DragonMinded/libdragon" |
|---|
| commit | "e356bf3f56f7afbf7e5246329562f145965cfdfc" |
|---|
| path | "include/regsinternal.h" |
|---|
| lines | "33-61" |
|---|
|
| type | "source" |
|---|
| detail | "AI_NTSC_DACRATE 48681818, AI_PAL_DACRATE 49656530, AI_MPAL_DACRATE 48628322; AI_STATUS_BUSY 1<<30, AI_STATUS_FULL 1<<31" |
|---|
| repo | "https://github.com/DragonMinded/libdragon" |
|---|
| commit | "e356bf3f56f7afbf7e5246329562f145965cfdfc" |
|---|
| path | "src/audio.c" |
|---|
| lines | "23-37" |
|---|
|
| type | "source" |
|---|
| detail | "linker script output format elf32-bigmips (big-endian MIPS target)" |
|---|
| repo | "https://github.com/DragonMinded/libdragon" |
|---|
| commit | "e356bf3f56f7afbf7e5246329562f145965cfdfc" |
|---|
| path | "n64.ld" |
|---|
| lines | "11" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "AI registers" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T04:47:10.841Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T01:38:07.286Z" |
|---|
| result | "confirmed" |
|---|
| method | "Fetched libdragon include/regsinternal.h at e356bf3: AI_regs_t has six 32-bit members address, length, control, status, dacrate, bitrate = 0x18; matches size and field order." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T13:26:09.482Z" |
|---|
| summary | "Set byte order: big (platform reasoning, weaker): libdragon links with OUTPUT_FORMAT elf32-bigmips, so the registers are read as big-endian words by the CPU." |
|---|
| changed | |
|---|
|
|
|---|