Meet the Altair · Run, stop, continue

Letting the
computer run.

You have been choosing when every instruction happens. Now let the processor keep going. You can stop to look, then continue from exactly where you left it.

Begin here: the countdown from 3 is already loaded. Press RUN, watch A change, then press STOP. The default pace leaves a second between instructions.

Loaded countdown · reference card All addresses and bytes here are hexadecimal
These eleven bytes are already loaded at 0100. RAM shows what is stored now.
AddressReferenceRAMCheck

0100–0102: 3A 03 00 loads address 3 into A.
0103–0104: D6 01 subtracts one.
0105–0107: 32 04 00 stores A at address 4.
0108–010A: C2 03 01 jumps back to 0103 if Z = 0.

The source byte at address 3 starts at 3. Each trip subtracts, stores, and tests Z. This lesson checks all eleven program bytes before executing.

Operate the memory panel

The 8080 behind the panel

A decimal
0
PC hex
0100
RAM[3] decimal
3
RAM[4] decimal
0

Zero flag Z: 0 · the subtraction’s answer

The program is loaded. Enable JavaScript to run or step it.

Last CPU instruction

No instruction has run.

Look inside the last instruction
Step an instruction to see its fetched bytes, memory accesses, and any port transfers.
Recent instructions

0 instructions executed.

    RUN and STOP are teaching controls at instruction boundaries. Pace is for reading, not a simulation of the Altair’s clock. This page stops running when hidden. Looking at these readouts changes no state; EXAMINE changes PC.

    EXAMINE changes PC without running a program instruction. Stepping advances PC, and the panel lights follow it. This added control executes a whole instruction; the original SINGLE STEP switch advanced one machine cycle.

    ALTAIR 8800

    Memory controls · learning view

    Address lights The selected location

    0 decimal · 0000 hex

    Data lights The byte at that location

    0 decimal · 00 hex

    A lit lamp is 1; a dark lamp is 0. The digits help you read the lights.

    Data / address switches Up = 1 · Down = 0

    15–8 · Address only

    7–0 · Address or data

    All switches as an address
    0 decimal · 0000 hex
    Lower eight as a byte
    0 decimal · 00 hex

    Setting the switches prepares a number. It does not read or write memory.

    Raise only switch 8 and press EXAMINE to select 0100.

    Select the address in the switches and read its byte.

    Move to the next address and read its byte.

    Write the lower eight switches to the selected address.

    Move to the next address, then write the lower eight switches.

    EXAMINE would select address 0. DEPOSIT would write 0 to the selected address, 0.

    Last memory operation

    Enable JavaScript to operate the panel.

    This lesson supplies an 8080, 65,536 bytes of RAM, and the loaded countdown. The lights show PC and RAM at PC between instructions; bus cycles and status lamps are not modeled. Start again restores the program and initial data, clears execution history, and stops. It is not the hardware RESET switch.

    The same instructions, without each click.

    This is the program from Counting down. Load 3 into A once, then repeat three instructions: subtract one, store A at address 4, and jump back if Z is clear.

    We have loaded its eleven bytes for you this time. The reference card lets you examine them. There is no new instruction to learn: RUN simply asks the 8080 to keep taking the same steps.

    At the starting pace, the load makes A = 3 after one second. Next comes the subtraction: A = 2, but address 4 still holds 0. The following store writes 2 there. The jump then returns to the subtraction.

    Stopping keeps your place.

    STOP leaves PC, A, the flags, and memory as they are. Nothing else executes until you ask. Read the state, open the last instruction’s trace, or inspect the recent instruction list.

    While stopped, Step one instruction advances just once. RUN continues from the resulting PC. It does not reload the starting count, clear the result, or return to 0100.

    The readouts and trace let you inspect without changing anything. The panel’s EXAMINE control has a different purpose: it changes PC, as in the previous lesson. If you EXAMINE another address, RUN will use that new address. Remember the stopped PC if you want to return to it.

    Three different outcomes.

    • You press STOP: execution pauses between instructions. You can continue from the current PC.
    • The countdown reaches its endpoint: A is 0, Z is 1, and the final jump continues to 010B. The lesson stops there automatically.
    • You start the lesson again: the original program and data return, A and the flags are cleared, PC returns to 0100, and the instruction history is emptied.

    The countdown takes ten instructions: one load, then three trips through subtract, store, and jump. The final jump still executes even though it does not go backward.

    There is no halt instruction in this program. Stopping at 010B is our lesson boundary. To rerun the countdown without clearing anything, EXAMINE 0100 and press RUN. The first load will read the starting count again.

    A pace for reading.

    Try four instructions per second, then twenty. The program does the same work and reaches the same result. The faster pace makes it harder to follow each change, so STOP and the recent instruction list become useful.

    These are teaching speeds. They do not reproduce the Altair’s clock or the different durations of its instructions. The page pauses when hidden and stays stopped when you return.

    The memory controls are disabled while running; STOP before using EXAMINE or DEPOSIT. You can still move switches, but their positions alone do not affect execution. Starting again always stops first and keeps your chosen pace and number-guide preference.

    A longer experiment

    While stopped, EXAMINE address 3, lower all eight data switches, and DEPOSIT 0. Then EXAMINE 0100 and RUN. As in the earlier countdown lesson, subtraction wraps 0 to 255 before counting down. This takes 769 instructions. Try the faster pace, stop partway through, and inspect the recent twelve instructions. The total count keeps increasing even as older entries leave the list.

    What this view models

    RUN schedules one whole 8080 instruction at a time. STOP takes effect between instructions and does not change the CPU’s stored state. Address and data lamps show PC and RAM at PC at those boundaries. Bus cycles, physical clock timing, and status lamps remain outside this teaching view. As before, the lesson checks the known program bytes and instruction starts before executing.