Extension to Ben Eater's breadboard computer that allows saving/loading programs and works as a monitor, assembler and disassembler.
Project tutorial by David Hansel
Ever wanted to play with the computer that sparked the personal computer age but don't have the cash to buy an Altair?
Build your own!
The opcode numbers in my implementation of the breadboard computer probably
don't match up with what you have. In lines 172-187 of the sketch you can can
set the opcode numbers for the different assembly mnemonics.
Go into the Printer section of the configuration menu, set the printer type to C700 (Centronics). Set the "Map printer to interface" setting to a serial port - but not the one you are using for the regular input/output. So the Altair will send any output from LLIST or LPRINT to that serial port.
When starting 16K BASIC, enter "C" as the printer type so BASIC expects a Centronics printer.
Now you can connect any printer with a serial connection to that port (making port's baud rate and parameters match the printer's) and it should work.
Note that the Altair will just be sending plain ASCII text to the serial interface (no control codes or such - unless your software sends some). So to test this out you don't have to connect a printer - any terminal (program) will do. You could even just map the printer to the same interface you are using for regular I/O (i.e. "Primary). In that case any output produced by LPRINT or LLIST will just be sent to the regular output - i.e. they will behave the same as PRINT/LIST.
If you have further questions I would recommend posting them in the AltairDuino forum. There are many people there that are happy to help.
I use this library:
Note: it looks like I'm using version 1.0.05 (the code that's directly on that web page),
whereas the latest version in their GIT repository is 1.2.5. Not sure whether the newer version
would work or not.
For the EEPROM I'm using an Atmel AT24C256.
Of course you can just use the builtin eeprom but you'll have to modify the code
so it doesn't attempt to use the external EEPROM. The way it is currently set up it will
always try to use the external EEPROM for 8-bit programs.
Or connect with your social account:
New here? Create an account