Answer
Assuming that variables $a, b, c,$ and $d$ are stored in memory locations $100,$
$101,102,$ and $103,$ respectively:
$\begin{array}{llll}
{\text {Memory}} & {\text {} } & {\text {Address} } & {\text {} }\\
{\text {Location }} & {\text {Op Code} } & {\text {Field} } & {\text {Comment} }\\
{50} & {\text { COMPARE}} & {100, 101} & {\text {Compare a and b and set condition codes} } \\
{51} & {\text { JUMPGT}} & {55} & {\text {Jump to address 55 if a > b} } \\
{52} & {\text { LOAD}} & {103} & { \text {Load R with the value of d} } \\
{53} & {\text { STORE}} & {102} & {\text {And store it into c} }\\
{54} & {\text { JUMP}} & {58} & {\text {Jump to address 58} }\\
{55} & {\text { LOAD}} & {103} & {\text {Load R with the value of d} }\\
{56} & {\text { ADD}} & {103} & {\text {R now contains 2d} }\\
{57} & {\text { STORE}} & {102} & {\text {And store that result into c} }\\
{58} & {\text { }} & { } & {\text {The next instruction begins here} }\\
\end{array}\\$
Work Step by Step
Assuming that variables $a, b, c,$ and $d$ are stored in memory locations $100,$
$101,102,$ and $103,$ respectively:
$\begin{array}{llll}
{\text {Memory}} & {\text {} } & {\text {Address} } & {\text {} }\\
{\text {Location }} & {\text {Op Code} } & {\text {Field} } & {\text {Comment} }\\
{50} & {\text { COMPARE}} & {100, 101} & {\text {Compare a and b and set condition codes} } \\
{51} & {\text { JUMPGT}} & {55} & {\text {Jump to address 55 if a > b} } \\
{52} & {\text { LOAD}} & {103} & {b \text {Load R with the value of d} } \\
{53} & {\text { STORE}} & {102} & {\text {And store it into c} }\\
{54} & {\text { JUMP}} & {58} & {\text {Jump to address 58} }\\
{55} & {\text { LOAD}} & {103} & {\text {Load R with the value of d} }\\
{56} & {\text { ADD}} & {103} & {\text {R now contains 2d} }\\
{57} & {\text { STORE}} & {102} & {\text {And store that result into c} }\\
{58} & {\text { }} & { } & {\text {The next instruction begins here} }\\
\end{array}\\$