fix nasty bug on writing to RSP PC. Mario Kart 64 boots now

This commit is contained in:
CocoSimone
2022-10-10 23:35:14 +02:00
parent db4e2caf85
commit 0ac6f07054
19 changed files with 385 additions and 214 deletions

View File

@@ -15,10 +15,6 @@ using s64 = int64_t;
using u128 = __uint128_t;
using s128 = __int128_t;
#define UINT128_MAX (((u128)0xFFFF'FFFF'FFFF'FFFF << 64) | 0xFFFF'FFFF'FFFF'FFFF)
#define UINT128_MIN 0
#define INT128_MAX (((u128)0x7FFF'FFFF'FFFF'FFFF << 64) | 0xFFFF'FFFF'FFFF'FFFF)
#define INT128_MIN (-(INT128_MAX) - 1LL)
#define KiB * 1024
#define MiB ((KiB) * 1024)
#define GiB ((MiB) * 1024)
@@ -26,7 +22,6 @@ using s128 = __int128_t;
#define N64_CYCLES_PER_FRAME ((N64_CPU_FREQ) / 60)
#define HALF_ADDRESS(addr) ((addr) ^ 2)
#define BYTE_ADDRESS(addr) ((addr) ^ 3)
#define ASPECT_RATIO ((float)4/3)
#define RD(x) (((x) >> 11) & 0x1F)
#define RT(x) (((x) >> 16) & 0x1F)