Skip to content
Tactiverge
Level 2Registers and memoryWork it out

Trace the accumulator

Follow this program by hand, one instruction at a time. Keep track of A and of the byte at label t.

What number does OUT display?

New to this? Silicon Studio 14: Fetch, decode, execute

How results are computed: model assumptions.

Bench-8 listing
        LDI 7
        STA t
        LDI 3
        ADD t
        STA t
        ADD t
        OUT
        HALT
t:      DB 0