💾 Archived View for compudanzas.net › little_person_computer.gmi captured on 2021-12-05 at 23:47:19. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

➡️ Next capture (2022-03-01)

-=-=-=-=-=-=-

little person computer

the little person computer is a model to learn about computer architecture

computer architecture

architecture

is uses the decimal system, with words of three-digits each.

it has ten instructions and 100 memory addresses.

example programs

written in the corresponding assembly language.

as part of the s-camino practice.

s-camino

multiplication of two numbers

no labels

pure assembler version, no labels.

        INP
        STA 16
        INP
        STA 17
        BRZ 11
        LDA 16
        ADD 15
        STA 15
        LDA 17
        SUB 14
        BRA 3
        LDA 15
        OUT
        HLT
        DAT 1
        DAT 0
        DAT 0
        DAT 0

with labels

the same behavior as above, but using labels for easier programming and reading

inputs  INP
        STA a
        INP
loop    STA b
        BRZ print // finish if b is 0
        LDA a
        ADD result
        STA result
        LDA b
        SUB one
        BRA loop
print   LDA result
        OUT
        HLT
one     DAT 1
result  DAT 0
a       DAT 0
b       DAT 0

external links

little man computer

the lmc instruction set

little man computer - cpu simulator

incoming links

computer architecture

the beans computer

most recent update on: 12021-07-07

source file

compudanzas home

text, images, and code are shared with the peer production license