Question: Simulator of transfer between assembly language and machine language In this project, you will write a Python program simulator _ xxxxxxx . py , where

Simulator of transfer between assembly language and machine language
In this project, you will write a Python program simulator_xxxxxxx.py, where xxxxxxx is your CSU ID, to implement the language transfer between the assembly code and the machine code in hexadecimal format (8 hex characters). You use the command line argument -a to specify that the input is an assembly code and -m to specify that the input is a machine code. Following the methodology mentioned in the class, your simulator should be able to finish the following TWO
TASKS: 1) transferring one assembly code to its corresponding machine code, 2) transferring one machine code to its corresponding assembly code. You can do the self-check by swapping the input and output.
Please answer thoroughly with all the proper code. Including the simulator facilitates the bidirectional conversion between MIPS assembly code and machine code, supporting instructions such as add, addi, sub, sll, srl, lw, and sw.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!