thecodingidiot.com

f03a-digital-basics

Digital Basics

The Gate

The Asteroids[1] PCB (Atari, 1979) runs a MOS 6502A at 1.5 MHz. Alongside the CPU are several 74-series logic chips doing address decode and video timing. Among them: 74LS00 quad NAND gates[2] — four two-input gates in a 14-pin package. They invert address lines to generate the chip-enable signals that tell the ROM and RAM which of them the CPU is addressing.

Asteroids — Arcade Cabinet
Asteroids — Front arcade flyer
Asteroids — Back arcade flyer
Asteroids — More Games. More Hits. More Often. Industry flyer (1980)

The 74HC00 in the f03b parts list is the same gate in a newer process. Same pinout. Same logic. In the breadboard computer it will again invert A15 to produce ROM CE# — the exact job the Asteroids hardware needs it for.

Before wiring the 74HC00 into a 6502 computer, this chapter uses all four of its gates for something simpler. A breadboard. Four LEDs. A transistor. No software. The goal is to make the chip's behaviour visible at the speed you can think, before it disappears inside a more complex circuit running at a million operations per second.

The implementation pages step through the building blocks in order: binary counting with four LEDs, then a transistor as a switch, then logic gates from the 74HC00. Each page ends with a visual verification — the right LEDs lit for the right input combinations. No software is required at any point. Start at Setup.

Implementation

Setup

Begin Implementation
  1. 0Setup
  2. 1Binary and LEDs
  3. 2The Transistor
  4. 3Logic Gates

Footnotes

  1. Asteroids (video game) - Wikipedia

  2. Asteroids Operation, Maintenance, and Service Manual (Atari TM-143)