Project information
- Category: Assembly & C
- Class: Computer Organization
- Project date: Fall 2023
- Project URL: Click Here
Project Details
This behavioral simulator project involves creating a program to simulate any assembly machine-code program. The simulator reads a machine-code file generated by an assembler, initializes registers and the program counter to 0, and executes the program until a halt instruction is encountered. The simulator parses machine code, extracts opcode and arguments, and executes instructions accordingly. The simulator handles offsetFields for loads, stores, and branches carefully, considering 2's complement 16-bit numbers.