CPU Simulator
Programming Assignment
Enhance the RSCPU Simulator to support 16-bit operations while, like Intel, maintaining backward compatibility with RSCPU.
Note: the bus is still 8 bits, so all memory accesses still take place 8 bits at a time, only the operations have changed to 16 bits.
Add 16-bit versions of:
AC and R are expanded to 16 bits. However, to maintain backwards compatibility, an 8-bit operation must not affect the high-order 8 bits of the affected operand; e.g. an 8-bit add must not affect the high-order 8 bits of AC, an 8-bit LDAC must not affect the high-order 8 bits of AC, an 8-bit MVAC must not affect the high-order 8 bits of R, etc.
Fetch remains unchanged since op codes are still 8 bits.
Condition codes must be properly set.
Your program must output information as described for the RSCPU.
Please Note: my program is 1437 lines. If you wait until the day before this assignment is due, it is unlikely that you will be successful.
© This project is copyright protected by Barbara Bracken
This page is maintained by Barbara Bracken
Last modified: 8/11/2024