Reads the next command from the display list, updates the PC.
| 206 | // Reads the next command from the display list, updates the PC. |
| 207 | //***************************************************************************** |
| 208 | inline 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 | // |
no outgoing calls
no test coverage detected