Question: what is causing wrong in here INPUT Store B / / 2 INPUT store A / / 1 6 OuterLoop, Load A / /

what is causing wrong in here " INPUT
Store B //2
INPUT
store A //16
OuterLoop, Load A //16842
Store X //16842,1
Load B //2
Store Y //2
Load C
add One
store C
DiviLoop, Load Counter //01234567||0123||01||0
add One
Store Counter //12345678||1234||12||1
Load X //161412108642||8642||42||2
Subt Y //2
Store X //14121086420||6420||20||0
skipcond 400//if x is 0, skip
Jump DiviLoop //F
Load Counter //if counter Ac >0,84,21
skipcond 800//
Jump EXIT
Jump Next
Next, Store A //84||2,1
Load Zero
Store Counter
Jump OuterLoop
EXIT, Load C
Subt One
Store C
Output
HALT
C, DEC 0
A, DEC 0
B, DEC 0
Counter, DEC 0
X, DEC 0
Y, DEC 0
One, DEC 1
Zero, Dec 0
"

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 Programming Questions!