Please I need the correct way to convert Logical (Virtual) Address to Physical Address , i have the following Question :
Given the following Page Table :
Knowing that the virtual pages and physical frame are 1 k Bytes, what is the memory address corresponding to each of the following virtual addresses encoded in hexadecimal: 142A and 0AF1?
i solved it like this , but i don't know if it is correct :
142A (hex)=5162(decimal)
5162/1024=5 (page number ) <----> Frame 1 in page table
5162mod1024=42 (Offset)
so the physical address corresponding to 142A = 1(physical)+42 (offset) or (1*1024+42)
so is that correct ?!
Kind regards