Turn on thread page Beta
    • Thread Starter
    Offline

    0
    ReputationRep:
    hey so I am doing computer science controlled assessment as we speak and wondered if anyone can help me with a question. But to start of with I will introduce myself im called ed and that's all you need to know.

    so I have to make a code to follow the Fibonacci sequence in LMC Durham version here is what I have done.

    loop LDA a
    ADD b
    STO temp
    LDA b
    STO a
    OUT a
    LDA temp
    STO b
    LDA n
    LDA loop
    SUB one
    BR loop
    BRZ end
    end HLT
    a DAT 000
    b DAT 001
    one DAT 001
    n DAT 010
    temp DAT 099


    it is meant to stop after 10 iterations but it doesn't can anyone please help me.
 
 
 

2,516

students online now

800,000+

Exam discussions

Find your exam discussion here

Poll
Who is going to be the top scorer of the World Cup in 2018?
Useful resources

Quick link:

Unanswered welcome lounge threads

Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.