2013-04-05 06:13:26 +00:00
|
|
|
#ifndef RSP_H
|
|
|
|
#define RSP_H
|
|
|
|
|
|
|
|
#include "Types.h"
|
2015-11-23 13:27:16 +00:00
|
|
|
#include "N64.h"
|
2013-04-05 06:13:26 +00:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2017-08-09 05:20:20 +00:00
|
|
|
u32 PC[18], PCi;
|
2018-05-24 14:53:00 +00:00
|
|
|
u32 F5DL[10];
|
2017-10-24 06:34:22 +00:00
|
|
|
u32 uc_start, uc_dstart, cmd, nextCmd;
|
2016-02-28 17:47:26 +00:00
|
|
|
u32 w0, w1;
|
2014-10-06 16:01:45 +00:00
|
|
|
s32 count;
|
2017-10-05 17:38:09 +00:00
|
|
|
bool busy, halt, infloop;
|
2017-10-24 06:34:22 +00:00
|
|
|
bool LLE;
|
2014-10-17 04:49:22 +00:00
|
|
|
char romname[21];
|
2014-11-28 07:34:32 +00:00
|
|
|
wchar_t pluginpath[PLUGIN_PATH_SIZE];
|
2013-04-05 06:13:26 +00:00
|
|
|
} RSPInfo;
|
|
|
|
|
|
|
|
extern RSPInfo RSP;
|
|
|
|
|
2015-03-05 13:43:32 +00:00
|
|
|
extern u32 DepthClearColor;
|
2016-03-13 11:53:08 +00:00
|
|
|
extern u32 rectDepthBufferCopyFrame;
|
2015-03-05 13:43:32 +00:00
|
|
|
|
2015-05-05 13:54:18 +00:00
|
|
|
#define RSP_SegmentToPhysical( segaddr ) ((gSP.segment[(segaddr >> 24) & 0x0F] + (segaddr & RDRAMSize)) & RDRAMSize)
|
2013-04-05 06:13:26 +00:00
|
|
|
|
|
|
|
void RSP_Init();
|
|
|
|
void RSP_ProcessDList();
|
|
|
|
void RSP_LoadMatrix( f32 mtx[4][4], u32 address );
|
2014-10-06 16:01:45 +00:00
|
|
|
void RSP_CheckDLCounter();
|
2013-04-05 06:13:26 +00:00
|
|
|
|
|
|
|
#endif
|