Question: code 1: .DATA X 007 Y 002 Z 009 .CODE LDA X CMP Y JL L1 LDA Y L1 CMP Z JL L2 LDA Z

code 1:

.DATA

X 007

Y 002

Z 009

.CODE

LDA X

CMP Y

JL L1

LDA Y

L1 CMP Z

JL L2

LDA Z

L2 STA X

HLT

code 2:

.DATA

X 007

Y 002

Z 009

.CODE

LDA Y

CMP Z

JL L1

LDA Z

L1 CMP X

JG END

STA X

END HLT

convert both assembly codes into c++ language

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!