Suppose the page size in a computer system using single-levelpage-based memory management is 4K bytes, calculate the page numberand the offset in hexadecimal for logical addresses 0x17C244 and0x899 (hexadecimal numbers).
Answer
page size is 4K bytes => 22 x 210 =>212 bits necessary for offset
1) 0x17C244
=> 0001 0111 1100 0010 0100 0100 –> First 12 bitsare page number and last 12 bit is the offset
=> Hence the Page number is 0x17C and Offset is0x244
2) 0x899
=> 1000 1001 1001 –> First 12 bits are page numberand last 12 bit is the offset
=> Hence the Page number is 0x000 and Offset is
OR
OR