Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that loops X times incrementing a counter each time through the loop. The value of X is stored in memory and will

Write a program that loops X times incrementing a counter each time
through the loop. The value of X is stored in memory and will have to be
accessed by indirect accessing (load indirect instruction). The program starts at
x3000 and the x3020 contains the address (x30A0) for the value of X (which is
x000F)
Lab-2: Write a program that compares two values stored at memory locations
x30A2 and x30A3. If the value at x30A2 is larger than the value at x30A3 then
store the value of 1 in R1, else store the value of 0 in R1. Use PC + offset
addressing to load contents of x30A2 into R2 and x30A3 into R3.
Lab-3: Repeat the previous using Base + offset (load register). Use the load
immediate (LEA) instruction to setup the base (R4) with the address of x30A2

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

=+What kinds of problems need to be overcome?

Answered: 1 week ago

Question

=+Describe an important trade-off you recently faced

Answered: 1 week ago