OFF/ON
STOP
RUN
SINGLE STEP
EXAMINE
EXAMINE-NEXT
DEPOSIT
DEPOSIT-NEXT
RESET
A15
A14
A13
A12
A11
A10
A09
A08
A07
A06
A05
A04
A03
A02
A01
A00
CTRL-C (BREAK)
RUBOUT (_)
KILL LINE (@)
LINE FEED
CLEAR PAPER
Nothing has printed yet. Run a program that reads the serial board - try Teletype echo from Load - then type here.

            
◀
▶
Follow PC
Zero All Memory
Quick Tutorial

How to input and run the following program to calculate 1 + 2 = 3:

LDA 0080H  ; 00 111 010
           ; 10 000 000
           ; 00 000 000
MOV B,A    ; 01 000 111
LDA 0081H  ; 00 111 010
           ; 10 000 001
           ; 00 000 000
ADD B      ; 10 000 000
STA 0082H  ; 00 110 010
           ; 10 000 010
           ; 00 000 000
JMP 0000H  ; 11 000 011
           ; 00 000 000
           ; 00 000 000
  1. Turn on Altair 8800 by clicking OFF/ON switch.
  2. Set switches A7-A0 to 00 111 010 (up for 1, down for 0).
  3. Click "DEPOSIT".
  4. Set switches A7-A0 to 10 000 000.
  5. Click "DEPOSIT NEXT".
  6. Repeat step 4-5 to input the following bytes one by one: 00 000 000, 01 000 111, 00 111 010, 10 000 001, 00 000 000, 10 000 000, 00 110 010, 10 000 010, 00 000 000, 11 000 011, 00 000 000, 00 000 000.
  7. Set switches A7-A0 to 10 000 000.
  8. Click "EXAMINE".
  9. Set switches A7-A0 to 00 000 001 (the first number to be added, or 1 in decimal).
  10. Click "DEPOSIT".
  11. Set switches A7-A0 to 00 000 010 (the second number to be added, or 2 in decimal).
  12. Click "DEPOSIT NEXT".
  13. Click "RESET".
  14. Click "RUN" and wait for a few seconds.
  15. Click "STOP".
  16. Set switches A7-A0 to 10 000 010 (the address that holds the sum).
  17. Click "EXAMINE".
  18. The LEDs D7-D0 show the result 00 000 011 (3 in decimal).
  19. Turn off Altair 8800.
Running Microsoft BASIC

The Altair's first piece of software, and Microsoft's: Altair BASIC 3.2, written in 1975 by Bill Gates, Paul Allen and Monte Davidoff. How to start it:

  1. In the Memory menu, choose 4 KB (or 8 KB, for room to write longer programs). Installing memory switches the machine off, which is what opening the case would have done.
  2. In the Load menu, choose Microsoft 4K BASIC. The machine powers up, the tape is read for you, RESET is pressed, and the Debugger opens to show what arrived.
  3. Before going any further, look at the memory map above the dump. Fifteen of the sixteen pages of a 4 KB machine are full: that is BASIC, and the one page left over is all the room you have for a program. This is what "4K BASIC" means.
  4. The address switches A15-A8 tell BASIC which terminal board to use: all down is the 88-SIO at ports 00H and 01H, switch A11 up is the 88-2SIO at 10H and 11H. The teletype here is wired to both slots, so either setting works - a real Altair would have had only one of the two boards fitted, and the wrong setting left it silent.
  5. Click RUN on the front panel.
  6. Open the Teletype, under the panel. BASIC asks MEMORY SIZE? - press Enter to take everything it found. Press Enter again for TERMINAL WIDTH?, then Y for WANT SIN? to keep the maths functions.
  7. It prints how many bytes are free, then OK. Try PRINT 22/7 for an answer straight away. To enter a program, type these lines one at a time, pressing Enter after each:
    10 FOR I=1 TO 10
    20 PRINT I,I*I
    30 NEXT I
    RUN
  8. The keyboard is upper case only. Underscore rubs out the last character, at-sign throws away the line, and Ctrl-C stops a running program.

What loading 4K BASIC skips: on a real Altair you first toggled a 28 byte boot loader in through the front panel, one byte at a time, then started the paper tape reader and waited about seven minutes while BASIC clattered in. Get one switch wrong and you did it again.

Load Hex Bytes

Bytes in hex, put into memory from 0000H. Spaces, commas and line breaks may separate them.

Share a Link

What should the link open?

Altair 8800 Simulator

Version

An Altair 8800 you can switch on in a web page: its front panel, a teletype running Microsoft's 4K BASIC, and a debugger the real one never had.

Licences