Psuedo code for combined PPU-CPU execution