MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / GetCurrentDisplayPosition

Function GetCurrentDisplayPosition

src/dolphin/src/vi/vi.c:930–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

928}
929
930static void GetCurrentDisplayPosition(u32* hct, u32* vct)
931{
932 u32 hcount, vcount0, vcount;
933 vcount = __VIRegs[VI_VERT_COUNT] & 0x7FF;
934
935 do
936 {
937 vcount0 = vcount;
938 hcount = __VIRegs[VI_HORIZ_COUNT] & 0x7FF;
939 vcount = __VIRegs[VI_VERT_COUNT] & 0x7FF;
940 } while (vcount0 != vcount);
941
942 *hct = hcount;
943 *vct = vcount;
944}
945
946inline u32 getCurrentHalfLine(void)
947{

Callers 2

getCurrentHalfLineFunction · 0.85
__VIGetCurrentPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected