Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedPlease 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: A

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

=+13.4. 1 Relate the result in Problem 13.3 to Theorem 5.1(ii).

Answered: 1 week ago