n64decomp / mk64

A speedy Mario Kart 64 decompilation, brought to you by the cousin of a tame racing driver.
588 stars 67 forks source link

Segment offset macro misses #583

Closed MegaMech closed 4 months ago

MegaMech commented 6 months ago

Missed a few macros:

staff_ghosts.c SEGMENT_OFFSET(D_80162DC4) atosPiStartDma

This needs SEGMENT_NUMBER and SEGMENT_OFFSET: (there's 2 of them)

VIRTUAL_TO_PHYSICAL2(gSegmentTable[arg0 >> 0x18] + (arg0 & 0xFFFFFF));

osPiStartDma(&gDmaIoMesg, 0, 0, (uintptr_t)&_other_texturesSegmentRomStart[((u32) devAddr) & 0xFFFFFF], address, size, &gDmaMesgQueue);