Skip to content

Instantly share code, notes, and snippets.

@StefanoFiumara
Created November 19, 2013 04:59
Show Gist options
  • Save StefanoFiumara/7540566 to your computer and use it in GitHub Desktop.
Save StefanoFiumara/7540566 to your computer and use it in GitHub Desktop.
for(int i = 0; i < frames_per_process; i++) {
int cur_frame = frames_per_process*pid_offset + i;
if(ram[cur_frame] == -1) {
//empty slot found in ram
return cur_frame;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment