Computers and Technology

Part1A: Write a program that starts with three integer values (stored in three registers using MOV) and then determines the largest value of the three and stores that value into a fourth answer register. Do not change any of the values in the first three registers during your program’s execution. So start your program with something like:

MOV R1, #34
MOV R2, #54
MOV R3, #21
MOV R0, #0 /* register to hold answer */

Part1B: Then Modify your code (separate from Part1A) so that it LOADS the N1, N2, N3 values from MEMORY into the registers. Use a label and a .data block to put these into three consecutive memory locations. Then store the answer into a fourth memory location immediately following the three original values; use a second label with a .skip directive or an initialized value to setup this location.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:30, darlene93
You are consulting for a beverage distributor who is interested in determining the benefits it could achieve from implementing new information systems. what will you advise as the first step?
Answers: 1
image
Computers and Technology, 23.06.2019 21:20, nicki76
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
image
Computers and Technology, 23.06.2019 21:30, maddietomlinson113
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
image
Computers and Technology, 24.06.2019 00:50, sequoyaburke
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
Do you know the correct answer?
Part1A: Write a program that starts with three integer values (stored in three registers using MOV)...

Questions in other subjects:

Konu
Advanced Placement (AP), 26.11.2020 01:00