Can some help me program a simple microprogrammed CPU simulator in Java by makin
ID: 3547803 • Letter: C
Question
Can some help me program a simple microprogrammed CPU simulator in Java by making it be able to read in opcode, and it needs to run the operations that correspond to each opcode. I need to be able to show that the algorithms I input work so the simulator needs to print out the contents of the 1. Program Counter 2. Accumulator 3. Data Registers 4. Instruction Registers 5. Memory Address Register and Memory Data/Buffer Register combination 6. RAM addresses referenced
The opcode I'm using is from the MAC-1 instruction set found here:http://cis.stvincent.edu/carlsond/cs330/mic1/mac1instructions.html.
So I need to be able to input a 4 digit opcode into the simulator. Please help!!
Since I can't up the points. I'm willing to add another question (with the same problem in it) and you can input your answer there also to get an extra 3000 points for helping me with this question. Meaning you'll get a total of 6,000 points
Explanation / Answer
I have made a verilog code for the same problem ...if u can understand that I can post that for u