Meet the Altair · Memory by hand

Switches, lights,
and memory.

You know what a byte is, and how an address tells us where to find it. Now meet the Altair 8800: a computer whose front-panel switches let you put those ideas into practice.

Begin here: turn on switches 1 and 0, then press EXAMINE to look at address 3. The walkthrough below shows how to put a byte there.

Operate the memory panel

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.

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.

A focused model of the Altair’s memory controls. This lesson provides RAM at all 65,536 addresses and performs no CPU execution. Start again clears our experiment; it is not the hardware RESET switch.

Two ways to show a bit.

Inside the Altair was the Intel 8080, the processor from our earlier lessons. Here we will use its front-panel controls to read and write memory by hand.

A switch can be up or down. A lamp can be lit or dark. Both represent the same two possibilities we met in the byte explorer: 1 and 0.

The switches are your input. The lights show the selected address and the byte stored there. They need not agree: preparing a number with the switches does nothing to memory until you use a control.

This learning view keeps the original memory-control names but spreads them out and adds explanations. Each button performs one action. The original EXAMINE / EXAMINE NEXT and DEPOSIT / DEPOSIT NEXT controls were paired toggle switches.

First, choose where.

Start with all switches down. Turn on switches 1 and 0, the two at the right. Their values are 2 and 1, making address 3.

Press EXAMINE. The address lights now show 3: A1 and A0 are on. The data lights show the byte at address 3, which is initially 0.

All sixteen switches take part in choosing an address. For this first exercise, keep switches 15–8 down and work with small addresses.

Then, choose what.

Keep address 3 selected. Set the lower eight switches so that only 5, 3, and 0 are up. Their values are 32, 8, and 1: together, 41.

The address lights still show 3, even though the switches now spell a different number. Press DEPOSIT to write 41 into that selected location. The data lights now show 00101001.

The same switches can name a location or supply its contents. The control you press determines their role.

One location farther.

With address 3 still selected, prepare 42 by turning switch 0 down and switch 1 up. Leave 5 and 3 up. Press DEPOSIT NEXT.

This control advances first, then writes. It selects address 4 and stores 42 there. Address 3 keeps 41. The switches remain at 42; moving to the next address does not move them.

Try DEPOSIT NEXT twice with the same switch setting. It writes that byte into two successive locations. Try EXAMINE NEXT twice: it visits two successive locations without writing anything.

Let the lights tell you.

The decimal and hexadecimal guides are teaching aids. Once the controls feel familiar, hide them and read the bits directly. Our added 0 and 1 labels remain beside the lights.

There are sixteen address lights but only eight data lights: a location needs a sixteen-bit address, while its contents fit in one byte. This lesson fills the whole address space with RAM. Real machines depended on which memory boards were installed.

What happens after the last address?

With all sixteen switches up, EXAMINE selects hexadecimal FFFF, decimal 65,535. A NEXT action wraps to address 0. DEPOSIT NEXT writes there after wrapping; EXAMINE NEXT only reads it.

Our memory starts at zero to give you a predictable experiment. Real RAM did not promise that on power-up. Start again clears every location and lowers all switches; the number-guide preference stays as you chose it.

A program is bytes too.

In the earlier lessons, we supplied the program in memory. These controls give us a way to enter those instruction bytes ourselves, one at a time, and examine them before execution. Try it in Entering your first program.

What this view models

We model the Altair’s four memory operations against real RAM in the emulator. The switches and selected address belong to this lesson’s panel. We have not yet connected the 8080, RUN, STOP, single stepping, status lamps, or the electrical bus cycles. The layout is adapted for learning and narrow screens rather than a replica of the complete panel.

The memory controls follow the original MITS Altair 8800 Operator’s Manual, Part 3. Its programming example also demonstrates entering and reading back bytes with these controls.