FGR improvements
This commit is contained in:
@@ -42,9 +42,9 @@ static FORCE_INLINE constexpr u32 GetVideoFrequency(bool pal) {
|
||||
#define RD(x) (((x) >> 11) & 0x1F)
|
||||
#define RT(x) (((x) >> 16) & 0x1F)
|
||||
#define RS(x) (((x) >> 21) & 0x1F)
|
||||
#define FD(x) (((x) >> 6) & 0x1F)
|
||||
#define FT(x) RT(x)
|
||||
#define FS(x) RD(x)
|
||||
#define FD(type, x) FGR_D<type>(regs.cop0.status, (((x) >> 6) & 0x1F))
|
||||
#define FT(type, x) FGR_T<type>(regs.cop0.status, RT((x)))
|
||||
#define FS(type, x) FGR_S<type>(regs.cop0.status, RD((x)))
|
||||
#define BASE(x) RS(x)
|
||||
#define VT(x) (((x) >> 16) & 0x1F)
|
||||
#define VS(x) (((x) >> 11) & 0x1F)
|
||||
|
||||
Reference in New Issue
Block a user