mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 17:19:44 -06:00
Copied register table from hermes code
Please use instead of magic numbers git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2902 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -27,11 +27,69 @@
|
||||
|
||||
#include "Globals.h"
|
||||
|
||||
#define DSP_REG_ST0 0x0c
|
||||
//#define DSP_REG_ST1 0x0d
|
||||
//#define DSP_REG_ST2 0x0e
|
||||
//#define DSP_REG_ST3 0x0f
|
||||
|
||||
// Register table taken from libasnd
|
||||
#define DSP_REG_AR0 0x00 // address registers
|
||||
#define DSP_REG_AR1 0x01
|
||||
#define DSP_REG_AR2 0x02
|
||||
#define DSP_REG_AR3 0x03 // used as jump function selector
|
||||
|
||||
#define DSP_REG_IX0 0x04 // LEFT_VOLUME accel
|
||||
#define DSP_REG_IX1 0x05 // RIGHT_VOLUME accel
|
||||
#define DSP_REG_IX2 0x06 // ADDRH_SMP accel
|
||||
#define DSP_REG_IX3 0x07 // ADDRL_SMP accel
|
||||
|
||||
#define DSP_REG_R08 0x08 // fixed to 48000 value
|
||||
#define DSP_REG_R09 0x09 // problems using this
|
||||
#define DSP_REG_R0A 0x0a // ADDREH_SMP accel
|
||||
#define DSP_REG_R0B 0x0b // ADDREL_SMP accel
|
||||
|
||||
#define DSP_REG_ST0 0x0c
|
||||
#define DSP_REG_ST1 0x0d
|
||||
#define DSP_REG_ST2 0x0e
|
||||
#define DSP_REG_ST3 0x0f
|
||||
|
||||
#define DSP_REG_CONFIG 0x12
|
||||
#define DSP_REG_SR 0x13
|
||||
|
||||
#define DSP_REG_PRODL 0x14
|
||||
#define DSP_REG_PRODM 0x15
|
||||
#define DSP_REG_PRODH 0x16
|
||||
#define DSP_REG_PRODM2 0x17
|
||||
|
||||
#define DSP_REG_AXL0 0x18
|
||||
#define DSP_REG_AXL1 0x19
|
||||
#define DSP_REG_AXH0 0x1A // SMP_R accel
|
||||
#define DSP_REG_AXH1 0x1b // SMP_L accel
|
||||
|
||||
#define DSP_REG_ACC0 0x1c // accumulator (global)
|
||||
#define DSP_REG_ACC1 0x1d
|
||||
|
||||
#define DSP_REG_ACL0 0x1c // Low accumulator
|
||||
#define DSP_REG_ACL1 0x1d
|
||||
#define DSP_REG_ACM0 0x1e // Mid accumulator
|
||||
#define DSP_REG_ACM1 0x1f
|
||||
#define DSP_REG_ACH0 0x10 // Sign extended 8 bit register 0
|
||||
#define DSP_REG_ACH1 0x11 // Sign extended 8 bit register 1
|
||||
|
||||
// Hardware registers address
|
||||
|
||||
#define DSP_REG_DSCR 0xffc9 // DSP DMA Control Reg
|
||||
#define DSP_REG_DSBL 0xffcb // DSP DMA Block Length
|
||||
#define DSP_REG_DSPA 0xffcd // DSP DMA DMEM Address
|
||||
#define DSP_REG_DSMAH 0xffce // DSP DMA Mem Address H
|
||||
#define DSP_REG_DSMAL 0xffcf // DSP DMA Mem Address L
|
||||
|
||||
#define DSP_REG_DIRQ 0xfffb // DSP Irq Rest
|
||||
#define DSP_REG_DMBH 0xfffc // DSP Mailbox H
|
||||
#define DSP_REG_DMBL 0xfffd // DSP Mailbox L
|
||||
#define DSP_REG_CMBH 0xfffe // CPU Mailbox H
|
||||
#define DSP_REG_CMBL 0xffff // CPU Mailbox L
|
||||
|
||||
#define DMA_TO_DSP 0
|
||||
#define DMA_TO_CPU 1
|
||||
|
||||
// Stacks
|
||||
#define DSP_STACK_C 0
|
||||
#define DSP_STACK_D 1
|
||||
|
||||
|
Reference in New Issue
Block a user