Skip to content

Instantly share code, notes, and snippets.

@Subv
Created December 16, 2017 20:20
Show Gist options
  • Save Subv/461e48d003da8d68be8675a8738cac61 to your computer and use it in GitHub Desktop.
Save Subv/461e48d003da8d68be8675a8738cac61 to your computer and use it in GitHub Desktop.
for (unsigned i = 0; i < command_buffer->number_commands; ++i) {
g_debugger.GXCommandProcessed((u8*)&command_buffer->commands[i]);
// Decode and execute command
ExecuteCommand(command_buffer->commands[i], thread_id);
// Indicates that command has completed
command_buffer->number_commands.Assign(command_buffer->number_commands - 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment