@(#)README	1.3

Write a MIPS assembly language program that performs virtual
address to physical address translations.
The virtual addresses correspond to 16-bit binary numbers.
The leftmost 4 bits specify the virtual page number and
the rightmost 12 bits correspond to the displacement within
the 4096-byte page.
Hence the virtual addresses have the following format: 

------------------------------------
| 15       12 | 11               0 |
| Page number | Offset within page |
------------------------------------

Assume that each page map table entry has the following format:

------------------------------
| 7 | 6 | 5 3 | 2          0 |
| V | M | LRU | Frame number |
------------------------------

* V corresponds to the valid bit that indicates whether the page
  is currently in memory.
* M is the modify bit that equals 1 if the page has been changed
  by a write.
* LRU is a 3-bit field needed only when selecting a page for
  replacement (the LRU bits can be ignored for this assignment).

If the PTE (i.e. page table entry) indicates that the page is in
memory, then the frame number in the PTE identifies the physical
page that contains the specified virtual or logical page.

Note that the virtual pages and physical memory frames are all
4K bytes in size.
To facilitate testing, assume that physical memory corresponds to
only eight frames for this assignment.
To setup the page map table, your program should prompt the user
to enter a series of integers (each in the range 0 - 255) as
the 8-bit page table entries (PTEs).

Your program should then repeatedly prompt the user to enter
an integer in the range 0 to 65535 that represents a virtual
address.
If, according to the page map table, the page corresponding to
the entered address is not in memory (i.e. V = 0), your program
should display a message indicating a page fault.
Otherwise your program should output the corresponding frame
number and physical address (both in decimal) and should also
indicate whether the modified bit (M) for the page is set (i.e.
a write has been made to the page).

If the user indicates that there are no more input addresses to
be translated, the program should terminate.
