recompiler: Add comments to recLUT_SetPage

It's kind of confusing
This commit is contained in:
Tellow Krinkle 2020-06-24 17:27:17 -05:00 committed by tellowkrinkle
parent dc57270fb8
commit 0711e0cd52
1 changed files with 6 additions and 0 deletions

View File

@ -230,6 +230,12 @@ public:
#define PC_GETBLOCK_(x, reclut) ((BASEBLOCK*)(reclut[((u32)(x)) >> 16] + (x)*(sizeof(BASEBLOCK)/4)))
/**
* Add a page to the recompiler lookup table
*
* Will associate `reclut[pagebase + pageidx]` with `mapbase[mappage << 14]`
* Will associate `hwlut[pagebase + pageidx]` with `pageidx << 16`
*/
static void recLUT_SetPage(uptr reclut[0x10000], u32 hwlut[0x10000],
BASEBLOCK *mapbase, uint pagebase, uint pageidx, uint mappage)
{