Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Serial Communication

AddressstdgbaAccessTypetonclib
0x4000120reg_siodata32RWunsigned intREG_SIODATA32
0x4000120reg_siomulti[4]RWunsigned short[4]REG_SIOMULTI0..3
0x4000128reg_siocntRWsio_controlREG_SIOCNT
0x4000128reg_siocnt_multiRWsio_multi_controlREG_SIOCNT
0x400012Areg_siodata8RWunsigned charREG_SIODATA8
0x400012Areg_siomlt_sendRWunsigned shortREG_SIOMLT_SEND
0x4000134reg_rcntRWrcnt_controlREG_RCNT
0x4000140reg_joycntRWjoycnt_controlREG_JOYCNT
0x4000150reg_joy_recvRconst unsigned intREG_JOY_RECV
0x4000154reg_joy_transWvolatile unsigned intREG_JOY_TRANS
0x4000158reg_joystatRWjoystat_statusREG_JOYSTAT

The serial registers at 0x4000120-0x400012A are aliased for different modes. Use reg_siocnt for Normal mode and reg_siocnt_multi for Multi-Player mode. Likewise reg_siodata32 / reg_siomulti share the same address.