Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write the process of BNZ L and ST R4, P in the form of the example, thank you Part I: Example Program The simulator
Please write the process of BNZ L and ST R4, P in the form of the example, thank you
Part I: Example Program The simulator program is given in sim.cc. Study the source code of the simulator to understand the internal operations of the CPU. Running the simulator program sim [-d] prog If -d option is specified, the program will print out debug information. The simulator obtained input program from the file prog LD LD MOV LD PO,R4 P1,R1 R1,R2 P2,R3 0000: 0600ff04 0000003c 0008: 0600ff01 00000040 0010: 05010002 0014: 0600ff03 00000044 001C: 00040104 0020: 00010201 0024: 01030105 0028: 0802ff00 0000001c 0030: 0704ff00 00000048 0038: 09000000 003C: 00000000 0040: 00000001 0044: 0000000a 0048: 00000000 L ADD R4,R1,R4 ADD R1,R2,R1 SUB R3,R1,R5 BNZL ST HLT R4,P PO: WORD 0 P1: WORD 1 P2: WORD A WORD What does this program do? Run the simulator with the debug option, and write down what happens (the data transfer and transformation) inside the CPU for the instructions 1. BNZ L 2. ST R4, P Execution of the instruction LD P2, R3 Instruction Execute Move via S1: AStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started