Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int totalSize = noffH.code.size + noffH.initData.size;
- //printf("total size : %i\n", totalSize);
- for(int k = 0; totalSize > 0; ++k) //Loads to main memory the code and init Data of executable
- {
- int physp = pageTable[k].physicalPage;
- position += executable->ReadAt(&(machine->mainMemory[physp * PageSize]),
- PageSize, position);
- totalSize -= PageSize;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement