Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please translate it Translate the following program into hexadecimal form, and put it in a file named prog2 with the same format as the file

please translate it

image text in transcribed

image text in transcribed

Translate the following program into hexadecimal form, and put it in a file named prog2 with the same format as the file prog. Run the simulator by [python3] sim.py [-d] prog2 Write down the final result stored in P. What does the program do? 4 LD L: PO, R4 LD P1, R1 LD P2, R2 LD P3, R3 ADD R4, R2, R4 SUB R3, R1, R3 BNZ L R4, P HLT .WORD O .WORD 1 .WORD 5 .WORD 4 .WORD ST PO: P1: P2: P3: P: Instruction Format Arithmetic/Logic Instruction The instruction format of the machine (except LOAD, STORE and BRANCH): Source Source Destination Opcode Operand 1 Operand 2 Operand The instructions can be categorized into the following types: Arithmetic Operations ADD R1, R2, R3 ; R3

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

Step: 3

blur-text-image

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

=+Understand the fi eld of comparative IHRM.

Answered: 1 week ago