5. 16KB Example with Page Directory

256 page table entries * 4 bytes each = 1 KB = 16 * 64-byte pages with 16 PTEs per page

4 bits to index one of the 16 entries in the page directory:

  PDEAddr = PageDirBase + (PDIndex * sizeof(PDE))
4 bits to index one of the 16 PTEs:
  PTEAddr = (PDE.PFN << SHIFT) + (PTIndex * sizeof(PTE))