Question: Need help with my MARIE Project, It keeps giving me these 2 error codes. See last image. This is the Code segment: if x y
Need help with my MARIE Project, It keeps giving me these 2 error codes. See last image.
This is the Code segment:
if x
y = y + 1;
else if x != z
then y = y 1;
else z = z + 1;
My Code:

My Errors I'm getting:

If, Then, ORG 100 Load X Subt Y SkipCond 800 Jump Else Load Y Add One Store Clear Load Subt Z SkipCond 400 / Load X / Subtract X from Y and store in AC / If (AC>0) implies (X>Y) skip the next instruction / Jump to Else, if X is less than or equal to Y. / Reload Y to add 1 to it. / Add l; store result in AC / Y=Y+1; / Move O into AC / Load X / Subtract Z from X and store in AC / if (AC=0) implies X=2, skip the next instruction. Else, Else Then, Y One Y Else, Jump Load Subt Store Clear Load Add Store Halt DEC DEC DEC DEC Z One Z / Jump to Else, if X=Z / Load Y / Subtract 1 from Y, store it in AC. Y-Y-1 / Move O into AC / Load 2 / add 1 to Z; store it in z /ZZ+1 / Terminate program / X has starting value, not specified in problem / Y has starting value, not specified in problem V Z has starting value, not specified in problem / Use a constant X, Y, z, OOO One, 1 ORG 100 100 1114 1 If LOAD X / Load x 101 41151 SUBT Y / Subtract x from Y and store in AC 102 88001 SKIPCOND 800 / If (AC>0) implies (X>Y) skip the next instruction 103 9108 1 JUMP Else / Jump to Else, if x is less than or equal to Y. 104 1115 1 Then LOAD Y / Reload Y to add 1 to it. 105 3117 1 ADD One / Add 1; store result in AC 106 21151 STORE Y / Y=Y+1; 107 A0001 CLEAR / Move O into AC 108 1114 1 Else LOAD X / Load x 109 4116 1 SUBT Z / Subtract z from X and store in AC 10A 84001 SKIPCOND 400 / if (AC=0) implies x=z, skip the next instruction. 1 10B 9108 1 JUMP Else 1 Jump to Else, if x=z 100 1115 LOAD Y / Load y **** Statement label must be unique. 10D 4117 1 SUBT One / Subtract 1 from y, store it in AC. 10E 21151 STORE Y / Y=Y-1 10F A0001 CLEAR / Move O into AC 110 1116 1 LOAD Z / Load 2 **** Statement label must be unique. 111 3117 1 ADD One / add 1 to z; store it in z 112 2116 1 STORE Z / z=2+1 113 70001 HALT / Terminate program 114 0000 1 DEC 0 / x has starting value, not specified in problem 115 0000 1 Y DECO / Y has starting value, not specified in problem 116 0000 1 DECO / Z has starting value, not specified in problem 117 0001 1 One DEC 1 / Use a constant N 2 errors found. Assembly unsuccessful
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
