Category: System Programming

ii) Implement a menu driven simulator for hypothetical Simple Instruction Computer that provides the following functionalities
a) Load – Loading of the program from file into memory
b) Print – Printing the program loaded in memory
c) Run – Executing the loaded program
The machine has the basic instruction set comprising of add, mover, movem, read, print and hlt commands as given in Table 1. Create a file sum.sm containing the machine code for sum of two numbers. Test the program using the machine code programs sum.sm.

Implement a menu driven simulator for hypothetical Simple Instruction Computer that provides the following functionalities System Programming / Assignment 2 / Slot 1 Save above code as simulator.c The below…