Assembly Program for the Basic Computer designed by Morris Mano

Q. WAP for Basic Computer to add 10 numbers located from the address 100H, then store the result at 200H address.

ADR, HEX 100
CTR, DEC -10
        CLA
REP,  ADD ADR I
         STA SUM
         LDA ADR
         INC
         STA ADR
         LDA SUM
         ISZ CTR
         BUN REP
         HLT
ORG 200
SUM, HEX 0
END

No comments:

Post a Comment