sm64/rsp/rsp_defs.inc
2020-06-02 12:44:34 -04:00

21 lines
554 B
PHP

// RSP definitions
// OSTask placed at end of DMEM (IMEM_START - sizeof(OSTask))
.definelabel OSTask_addr, 0xFC0
// OSTask data member offsets
OSTask_flags equ 0x04
OSTask_ucode equ 0x10
OSTask_ucode_size equ 0x14 // ucode_size is ignored
OSTask_ucode_data equ 0x18
OSTask_ucode_data_size equ 0x1C
// flags
OS_TASK_DP_WAIT equ 0x0002
// RDP Status read flags
DPC_STATUS_XBUS_DMA equ 0x0001
DPC_STATUS_DMA_BUSY equ 0x0100
DPC_STATUS_START_VALID equ 0x0400
// RDP Status write flags
DPC_STATUS_CLR_XBUS equ 0x0001