BIM :: CO :: Basic Computer Assembly Program

Basic Computer is a model defined and designed by M. Morris Mano. It is studied in BIM, 3rd Semester, TU. Subject is Computer Organization. We have to study assembly language prograaming for this model. So, here is an example. If you guys have any problems related to Basic Computer model programming, please do ask me in comment, I will solve.

/ 1 + 3 + 5 + ……………. up to 10 terms

CTR, DEC -10

TRM, DEC 1

TMP, DEC 0

RLT, DEC 0

CLA

LOP, LDA TRM

STA TMP

ADD RLT

STA RLT

LDA TMP

INC

INC

STA TRM

ISZ CTR

BUN LOP

HLT

1 comment:

  1. REP,LDA SUM
    ADD TRM
    STA SUM
    LDA TRM
    INC
    INC
    STA TRM
    ISZ CTR
    BUN REP
    HLT
    TRM, DEC 1
    SUM, DEC 0
    CTR, DEC -10
    END

    ReplyDelete