Update RSP Registers.h

Change multi line comments into single line comments, fix some typos and capitalization errors, and fix abbreviations
This commit is contained in:
Derek "Turtle" Roe 2021-03-19 01:10:20 -05:00
parent bfceec349e
commit 8efe8cc800
1 changed files with 62 additions and 62 deletions

View File

@ -1,69 +1,69 @@
#include "Types.h"
#define SP_STATUS_HALT 0x001 /* Bit 0: halt */
#define SP_STATUS_BROKE 0x002 /* Bit 1: broke */
#define SP_STATUS_DMA_BUSY 0x004 /* Bit 2: dma busy */
#define SP_STATUS_DMA_FULL 0x008 /* Bit 3: dma full */
#define SP_STATUS_IO_FULL 0x010 /* Bit 4: io full */
#define SP_STATUS_SSTEP 0x020 /* Bit 5: single step */
#define SP_STATUS_INTR_BREAK 0x040 /* Bit 6: interrupt on break */
#define SP_STATUS_SIG0 0x080 /* Bit 7: signal 0 set */
#define SP_STATUS_SIG1 0x100 /* Bit 8: signal 1 set */
#define SP_STATUS_SIG2 0x200 /* Bit 9: signal 2 set */
#define SP_STATUS_SIG3 0x400 /* Bit 10: signal 3 set */
#define SP_STATUS_SIG4 0x800 /* Bit 11: signal 4 set */
#define SP_STATUS_SIG5 0x1000 /* Bit 12: signal 5 set */
#define SP_STATUS_SIG6 0x2000 /* Bit 13: signal 6 set */
#define SP_STATUS_SIG7 0x4000 /* Bit 14: signal 7 set */
#define SP_STATUS_HALT 0x001 // Bit 0: halt
#define SP_STATUS_BROKE 0x002 // Bit 1: broke
#define SP_STATUS_DMA_BUSY 0x004 // Bit 2: DMA busy
#define SP_STATUS_DMA_FULL 0x008 // Bit 3: DMA full
#define SP_STATUS_IO_FULL 0x010 // Bit 4: IO full
#define SP_STATUS_SSTEP 0x020 // Bit 5: single step
#define SP_STATUS_INTR_BREAK 0x040 // Bit 6: interrupt on break
#define SP_STATUS_SIG0 0x080 // Bit 7: signal 0 set
#define SP_STATUS_SIG1 0x100 // Bit 8: signal 1 set
#define SP_STATUS_SIG2 0x200 // Bit 9: signal 2 set
#define SP_STATUS_SIG3 0x400 // Bit 10: signal 3 set
#define SP_STATUS_SIG4 0x800 // Bit 11: signal 4 set
#define SP_STATUS_SIG5 0x1000 // Bit 12: signal 5 set
#define SP_STATUS_SIG6 0x2000 // Bit 13: signal 6 set
#define SP_STATUS_SIG7 0x4000 // Bit 14: signal 7 set
#define SP_CLR_HALT 0x00001 /* Bit 0: clear halt */
#define SP_SET_HALT 0x00002 /* Bit 1: set halt */
#define SP_CLR_BROKE 0x00004 /* Bit 2: clear broke */
#define SP_CLR_INTR 0x00008 /* Bit 3: clear intr */
#define SP_SET_INTR 0x00010 /* Bit 4: set intr */
#define SP_CLR_SSTEP 0x00020 /* Bit 5: clear sstep */
#define SP_SET_SSTEP 0x00040 /* Bit 6: set sstep */
#define SP_CLR_INTR_BREAK 0x00080 /* Bit 7: clear intr on break */
#define SP_SET_INTR_BREAK 0x00100 /* Bit 8: set intr on break */
#define SP_CLR_SIG0 0x00200 /* Bit 9: clear signal 0 */
#define SP_SET_SIG0 0x00400 /* Bit 10: set signal 0 */
#define SP_CLR_SIG1 0x00800 /* Bit 11: clear signal 1 */
#define SP_SET_SIG1 0x01000 /* Bit 12: set signal 1 */
#define SP_CLR_SIG2 0x02000 /* Bit 13: clear signal 2 */
#define SP_SET_SIG2 0x04000 /* Bit 14: set signal 2 */
#define SP_CLR_SIG3 0x08000 /* Bit 15: clear signal 3 */
#define SP_SET_SIG3 0x10000 /* Bit 16: set signal 3 */
#define SP_CLR_SIG4 0x20000 /* Bit 17: clear signal 4 */
#define SP_SET_SIG4 0x40000 /* Bit 18: set signal 4 */
#define SP_CLR_SIG5 0x80000 /* Bit 19: clear signal 5 */
#define SP_SET_SIG5 0x100000 /* Bit 20: set signal 5 */
#define SP_CLR_SIG6 0x200000 /* Bit 21: clear signal 6 */
#define SP_SET_SIG6 0x400000 /* Bit 22: set signal 6 */
#define SP_CLR_SIG7 0x800000 /* Bit 23: clear signal 7 */
#define SP_SET_SIG7 0x1000000 /* Bit 24: set signal 7 */
#define SP_CLR_HALT 0x00001 // Bit 0: clear halt
#define SP_SET_HALT 0x00002 // Bit 1: set halt
#define SP_CLR_BROKE 0x00004 // Bit 2: clear broke
#define SP_CLR_INTR 0x00008 // Bit 3: clear INTR
#define SP_SET_INTR 0x00010 // Bit 4: set INTR
#define SP_CLR_SSTEP 0x00020 // Bit 5: clear SSTEP
#define SP_SET_SSTEP 0x00040 // Bit 6: set SSTEP
#define SP_CLR_INTR_BREAK 0x00080 // Bit 7: clear INTR on break
#define SP_SET_INTR_BREAK 0x00100 // Bit 8: set INTR on break
#define SP_CLR_SIG0 0x00200 // Bit 9: clear signal 0
#define SP_SET_SIG0 0x00400 // Bit 10: set signal 0
#define SP_CLR_SIG1 0x00800 // Bit 11: clear signal 1
#define SP_SET_SIG1 0x01000 // Bit 12: set signal 1
#define SP_CLR_SIG2 0x02000 // Bit 13: clear signal 2
#define SP_SET_SIG2 0x04000 // Bit 14: set signal 2
#define SP_CLR_SIG3 0x08000 // Bit 15: clear signal 3
#define SP_SET_SIG3 0x10000 // Bit 16: set signal 3
#define SP_CLR_SIG4 0x20000 // Bit 17: clear signal 4
#define SP_SET_SIG4 0x40000 // Bit 18: set signal 4
#define SP_CLR_SIG5 0x80000 // Bit 19: clear signal 5
#define SP_SET_SIG5 0x100000 // Bit 20: set signal 5
#define SP_CLR_SIG6 0x200000 // Bit 21: clear signal 6
#define SP_SET_SIG6 0x400000 // Bit 22: set signal 6
#define SP_CLR_SIG7 0x800000 // Bit 23: clear signal 7
#define SP_SET_SIG7 0x1000000 // Bit 24: set signal 7
#define DPC_CLR_XBUS_DMEM_DMA 0x0001 /* Bit 0: clear xbus_dmem_dma */
#define DPC_SET_XBUS_DMEM_DMA 0x0002 /* Bit 1: set xbus_dmem_dma */
#define DPC_CLR_FREEZE 0x0004 /* Bit 2: clear freeze */
#define DPC_SET_FREEZE 0x0008 /* Bit 3: set freeze */
#define DPC_CLR_FLUSH 0x0010 /* Bit 4: clear flush */
#define DPC_SET_FLUSH 0x0020 /* Bit 5: set flush */
#define DPC_CLR_TMEM_CTR 0x0040 /* Bit 6: clear tmem ctr */
#define DPC_CLR_PIPE_CTR 0x0080 /* Bit 7: clear pipe ctr */
#define DPC_CLR_CMD_CTR 0x0100 /* Bit 8: clear cmd ctr */
#define DPC_CLR_CLOCK_CTR 0x0200 /* Bit 9: clear clock ctr */
#define DPC_CLR_XBUS_DMEM_DMA 0x0001 // Bit 0: clear xbus_dmem_dma
#define DPC_SET_XBUS_DMEM_DMA 0x0002 // Bit 1: set xbus_dmem_dma
#define DPC_CLR_FREEZE 0x0004 // Bit 2: clear freeze
#define DPC_SET_FREEZE 0x0008 // Bit 3: set freeze
#define DPC_CLR_FLUSH 0x0010 // Bit 4: clear flush
#define DPC_SET_FLUSH 0x0020 // Bit 5: set flush
#define DPC_CLR_TMEM_CTR 0x0040 // Bit 6: clear TMEM CTR
#define DPC_CLR_PIPE_CTR 0x0080 // Bit 7: clear pipe CTR
#define DPC_CLR_CMD_CTR 0x0100 // Bit 8: clear CMD CTR
#define DPC_CLR_CLOCK_CTR 0x0200 // Bit 9: clear clock CTR
#define DPC_STATUS_XBUS_DMEM_DMA 0x001 /* Bit 0: xbus_dmem_dma */
#define DPC_STATUS_FREEZE 0x002 /* Bit 1: freeze */
#define DPC_STATUS_FLUSH 0x004 /* Bit 2: flush */
#define DPC_STATUS_START_GCLK 0x008 /* Bit 3: start gclk */
#define DPC_STATUS_TMEM_BUSY 0x010 /* Bit 4: tmem busy */
#define DPC_STATUS_PIPE_BUSY 0x020 /* Bit 5: pipe busy */
#define DPC_STATUS_CMD_BUSY 0x040 /* Bit 6: cmd busy */
#define DPC_STATUS_CBUF_READY 0x080 /* Bit 7: cbuf ready */
#define DPC_STATUS_DMA_BUSY 0x100 /* Bit 8: dma busy */
#define DPC_STATUS_END_VALID 0x200 /* Bit 9: end valid */
#define DPC_STATUS_START_VALID 0x400 /* Bit 10: start valid */
#define DPC_STATUS_XBUS_DMEM_DMA 0x001 // Bit 0: xbus_dmem_dma
#define DPC_STATUS_FREEZE 0x002 // Bit 1: freeze
#define DPC_STATUS_FLUSH 0x004 // Bit 2: flush
#define DPC_STATUS_START_GCLK 0x008 // Bit 3: start GCLK
#define DPC_STATUS_TMEM_BUSY 0x010 // Bit 4: TMEM busy
#define DPC_STATUS_PIPE_BUSY 0x020 // Bit 5: pipe busy
#define DPC_STATUS_CMD_BUSY 0x040 // Bit 6: CMD busy
#define DPC_STATUS_CBUF_READY 0x080 // Bit 7: CBUF ready
#define DPC_STATUS_DMA_BUSY 0x100 // Bit 8: DMA busy
#define DPC_STATUS_END_VALID 0x200 // Bit 9: end valid
#define DPC_STATUS_START_VALID 0x400 // Bit 10: start valid
#define R4300i_SP_Intr 0x1
@ -117,7 +117,7 @@ void Enter_RSP_Register_Window ( void );
void InitilizeRSPRegisters (void);
void UpdateRSPRegistersScreen ( void );
/*** RSP Registers ***/
// RSP registers
extern UWORD32 RSP_GPR[32], RSP_Flags[4];
extern UDWORD RSP_ACCUM[8];
extern VECTOR RSP_Vect[32];