Advertisement
smyrrie

Untitled

Oct 31st, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. int totalSize = noffH.code.size + noffH.initData.size;
  2. //printf("total size : %i\n", totalSize);
  3. for(int k = 0; totalSize > 0; ++k) //Loads to main memory the code and init Data of executable
  4. {
  5. int physp = pageTable[k].physicalPage;
  6.  
  7. position += executable->ReadAt(&(machine->mainMemory[physp * PageSize]),
  8. PageSize, position);
  9. totalSize -= PageSize;
  10.  
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement