Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which choices contain correct implementations of the following pseudocode? ( Assume that all values are unsigned ) : if ( A > B ) C

Which choices contain correct implementations of the following pseudocode? (Assume that all values are unsigned):
if( A > B )
C =5;
else
C =6;
a.
ADR R1, A
ADR R2, B
ADR R3, C
LDR R4,[R1]
LDR R5,[R2]
CMP R4,R5
BLE L2
MOV R6, #5
STR R6,[R3]
B L2
L1 MOV R6, #6
STR R6,[R3]
L2
b.
ADR R1, A
ADR R2, B
ADR R3, C
LDR R4,[R1]
LDR R5,[R2]
CMP R4,R5
BGT L1
MOV R6, #5
STR R6,[R3]
B L2
L1 MOV R6, #6
STR R6,[R3]
L2
c.
ADR R1, A
ADR R2, B
ADR R3, C
LDR R4,[R1]
LDR R5,[R2]
CMP R4,R5
BGT L1
MOV R6, #6
STR R6,[R3]
B L2
L1 MOV R6, #5
L2 STR R6,[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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2018 Dublin Ireland September 10 14 2018 Proceedings Part 1 Lnai 11051

Authors: Michele Berlingerio ,Francesco Bonchi ,Thomas Gartner ,Neil Hurley ,Georgiana Ifrim

1st Edition

3030109240, 978-3030109240

More Books

Students also viewed these Databases questions

Question

The models used to analyse different national cultures.

Answered: 1 week ago

Question

The nature of the issues associated with expatriate employment.

Answered: 1 week ago