# Machines, maps and firmware Source names as in [cpu-8088.md](cpu-8088.md); **JR** PCjr Technical Reference; **T** Tandy 1000 SX Technical Reference. ## The rows | Row | CPU | Board peripherals | Video | Sound | Keyboard | Floppy | Order | | --- | --- | --- | --- | --- | --- | --- | --- | | **5150** (1981) | 8088, 4.77 MHz, maximum mode | 8253-5, 8259A, 8237-2 + refresh, 8255A-5, cassette | MDA or CGA card | PIT ch2 speaker | 83-key, 8048 (undumped), serial | IBM adapter, uPD765, DMA 2 | **first** | | **5160** (XT, 1983) | as 5150 | as 5150 (8237A-5), no cassette, switch reading by PB3, 8 slots | as 5150 | as 5150 | 83-key, 8048 (4584751 dumped) | as 5150, plus Xebec hard disk (later) | second | | PCjr (1983) | 8088, 4.77 MHz, **minimum mode** | 8253 (ch1 deserialises the keyboard), 8259A; **no 8237**: refresh by the 6845 and the gate array (JR p.43) | 6845 + Video Gate Array, video in shared system RAM, CPU "average of two wait states" (JR p.39) | **SN76496N** at C0h plus PIT ch2 (JR p.55, p.114) | infrared 80C48, start bit raises **NMI** (JR p.123-129) | uPD765, no DMA, watchdog timer (JR p.179, p.187) | later row | | Tandy 1000 (1984; SX 1985) | 8088-2, 4.77 or 7.16 MHz (SX: port 62h bit 3) (T p.18, p.50) | 8253, 8259A, a custom chip "equivalent of an 8237A-5" that also refreshes (T p.33) | "6845 equivalent design" custom chip, video in shared RAM with a wait signal (T p.31) | SN76496 at C0h mixed with PIT ch2 (T p.33, p.42) | wired, custom chip (T p.36) | 765 + 9216 data separator, DMA 2 (T p.36) | later row | The PCjr and Tandy rows share the 8088 core, the PIT, the PIC and the uPD765 with the 5150 and add the family's `sn76489-python` (a SN76496 variant row: open decision 6) and their own video gate arrays. Their timing differs at the root (no DMA refresh, video-shared RAM wait states), so they are rows with their own bus model, not parameters of the 5150's. ## Memory map, 5150 (A81 p.41-43 / 2-25-2-27) | Range | Contents | | --- | --- | | 00000-0FFFF | system board RAM (16-64 KB; A83's board: 64-256 KB) | | 10000-9FFFF | expansion RAM in the I/O channel (to 640 KB in practice) | | A0000-AFFFF | reserved | | B0000-B0FFF | MDA buffer (4 KB, mirrored in B0000-B7FFF by partial decode: HYPOTHESIS) | | B8000-BBFFF | CGA buffer (16 KB) | | C0000-EFFFF | expansion ROM area (C8000: the XT's fixed-disk ROM, A83 p.22) | | F0000-F3FFF | reserved | | F4000-FFFFF | system ROM: 40 KB in five 8 KB sockets of six (A81 p.20 / 2-4): cassette BASIC at F6000 ("F600:0000", A81 p.167 / 3-3), BIOS at FE000 (HYPOTHESIS from the U33 socket and the vectors F000:E2C3-FF54, A81 p.167 / 3-3; the BIOS code OBSERVED running at F000:E0B0 onwards) | Reset: FFFF:0000 (8088). OBSERVED first BIOS instructions at F000:E0B0-E0C3 (NMI mask, DMA page, CGA and MDA mode registers, PPI control, port B). ## I/O map, 5150 (A81 p.39 / 2-23; the XT's fuller map XT p.20 / 1-8) 00-0F DMA; 20-21 PIC; 40-43 PIT; 60-63 PPI; 80-83 DMA page registers; A0 NMI mask; 200-20F game adapter; 378-37F printer; 3B0-3BF MDA and printer; 3D0-3DF CGA; 3F0-3F7 diskette; 3F8-3FF serial. "512 I/O device addresses are available" (A81 p.24 / 2-8): the board decodes A0-A9 only, so ports alias every 400h (HYPOTHESIS from the 512/1,024 statement; U17: the netlist decides). The I/O map page of the Apr 1983 manual is missing from the bitsavers scan (printed pages 1-7 to 1-10). ## Firmware and the boot (census.md for SHA-1s) - 5150 BIOS revisions: 04/24/81, 10/19/81, 10/27/82 (the last scans for expansion ROMs, which the hard-disk and EGA cards need). 5160: 08/16/82, 11/08/82, 01/10/86, 05/09/86. - **OBSERVED boot timeline** (MAME 0.285, `ibm5150` rev 3, 640 KB, CGA, no hard disk, no floppy; mame-oracle.md): the chips are programmed by 0.06 s; the keyboard reset at 2.7 s and 3.25 s; the PIC and PIT ch0 at 2.74-3.25 s; the memory test runs to **39.1 s** for 640 KB; the floppy is tried from 39.13 s to 49.28 s; ROM BASIC C1.10 is on screen at the 50.1 s screenshot. With 64 KB of RAM and MAME's default switches the POST stops with "201" (a RAM size mismatch), so the switch settings must follow the RAM size (the board's row data). - No HLE BIOS: the BIOS runs as itself, player-supplied. Free BIOSes (GLaBIOS, Kiselev's) are GPL-3.0 programs a player may supply; none is vendored (open decision 8).