From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Platform:Nintendo 64" |
|---|
| claim | "A 64-byte PIF RAM command block lists one command per Joybus port in order: send length (including the command byte), receive length, command byte, send data, then receive-length bytes the PIF overwrites with the reply. A port is skipped with one 0x00 byte, 0xFE ends the list, and byte 63 (0x3F) is the control byte, set to 0x01 to run the commands." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Nintendo 64" |
|---|
| observed_in | |
|---|
|
|---|
| data | | effect | "PIF executes Joybus commands and writes replies in place" |
|---|
| trigger | "SI DMA of the block to PIF RAM, then SI DMA back" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "input[port] skip zeros; input[i++] = send_len + 1; input[i++] = recv_len; input[i++] = command_id; ... input[i] = 0xFE; input[sizeof(input) - 1] = 0x01" |
|---|
| repo | "https://github.com/DragonMinded/libdragon" |
|---|
| commit | "e356bf3f56f7afbf7e5246329562f145965cfdfc" |
|---|
| path | "src/joybus/controller.c" |
|---|
| lines | "236-253" |
|---|
|
| type | "source" |
|---|
| detail | "metadata is send length then receive length; a port can be skipped with a single 0x00 byte" |
|---|
| repo | "https://github.com/DragonMinded/libdragon" |
|---|
| commit | "e356bf3f56f7afbf7e5246329562f145965cfdfc" |
|---|
| path | "src/joybus/joybus_commands.h" |
|---|
| lines | "14-77" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Joybus PIF command block" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T04:47:12.124Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T04:13:45.921Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read libdragon src/joybus/controller.c execute_raw_command at the cited commit: leading zero bytes skip ports, send_len+1, recv_len, command, 0xFE terminator, input[63]=0x01. Only this one-command path was read." |
|---|
|
|
|---|