MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / DLParser_FetchNextCommand

Function DLParser_FetchNextCommand

Source/HLEGraphics/DLParser.cpp:208–217  ·  view source on GitHub ↗

Reads the next command from the display list, updates the PC.

Source from the content-addressed store, hash-verified

206// Reads the next command from the display list, updates the PC.
207//*****************************************************************************
208inline void DLParser_FetchNextCommand( MicroCodeCommand * p_command )
209{
210 // Current PC is the last value on the stack
211 u32 & pc( gDlistStack.address[gDlistStackPointer] );
212#ifdef DAEDALUS_ENABLE_ASSERTS
213 DAEDALUS_ASSERT(pc < MAX_RAM_ADDRESS, "Display list PC is out of range: 0x%08x", pc );
214 #endif
215 *p_command = *(MicroCodeCommand*)(g_pu8RamBase + pc);
216 pc+= 8;
217}
218
219//*****************************************************************************
220//

Callers 5

DLParser_ProcessDListFunction · 0.85
DLParser_TexRectFunction · 0.85
DLParser_TexRectFlipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected