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

Function VIGetCurrentLine

src/dolphin/src/vi/vi.c:970–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

968}
969
970u32 VIGetCurrentLine(void)
971{
972 u32 line;
973 VITimingInfo* tm;
974 int interrupt;
975
976 tm = CurrTiming;
977 interrupt = OSDisableInterrupts();
978 line = getCurrentHalfLine();
979 OSRestoreInterrupts(interrupt);
980
981 if (line >= tm->numHalfLines)
982 {
983 line -= tm->numHalfLines;
984 }
985
986 return (line >> 1);
987}
988
989u32 VIGetTvFormat(void)
990{

Callers 1

SIInterruptHandlerFunction · 0.85

Calls 2

OSDisableInterruptsFunction · 0.85
getCurrentHalfLineFunction · 0.85

Tested by

no test coverage detected