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
Get step-by-step solutions from verified subject matter experts
