# Cartridges, the BIOS, BASIC and tapes ## Cartridges - The slot maps at 2000-3FFF, 8 KB (SYS 82). The No-Intro set holds 2 KB, 4 KB and 8 KB images plus 11 odd-sized ones (1857-8187 bytes; [census.md](census.md)): images that are not a power of two need a stated rule for the unmapped bytes (**U12**; propose: open bus, logged). - MAME's cartridge devices (OBSERVED, `mame -listxml`): `astrocade_rom` (plain), `astrocade_rom_256k`, `astrocade_rom_512k` (bank-switched large cartridges, from the homebrew era), `astrocade_rom_cass` (a ROM with a cassette interface: the Astrovision Bally BASIC). The software list (CC0) marks only one entry with a slot feature, `astrobas` = `rom_cass`; the other 126 entries are plain ROMs. The large-cartridge bank registers are not described in any document pinned here (**U13**): a later socket, not milestone work. - Cartridges are only ROM to the CPU, but every write to 2000-3FFF is a magic write to 6000-7FFF (SYS 82): cartridge code uses that constantly. A cartridge never sees writes. ## The BIOS Three 8 KB images are known by SHA-1 (MAME 0.285 `-listroms`; all three held, see [census.md](census.md)): the Professional Arcade BIOS (also No-Intro's "[BIOS] Bally Professional Arcade (USA)"), the Home Library Computer BIOS and the "white" Astrocade BIOS (No-Intro's "[BIOS] Bally Astrocade (USA)"). They become machine rows (`astrocade`, `astrocade-hlc`, `astrocade-white`), each naming its BIOS by SHA-1. The BIOS is run, never read: its source listing in the "Nutting manual" and the disassemblies on BallyAlley are firmware transcriptions, excluded ([sources.md](sources.md)). The UPI system-call interface that cartridges use is described in the Nutting manual's first part (set aside, decision 6 in the brief); the board does not need it, because the BIOS itself implements it. A free replacement BIOS exists in 8bitworkshop (GPL-3.0; `presets/astrocade-bios`, whether clean-room is unverified): not usable in an MIT board, and not needed. ## BASIC The BASIC cartridges are **not in the No-Intro set**. MAME's software list names ten BASIC entries, none held here: `bbasic` (Bally BASIC, 4 KB), `astrobas` (Astrovision Bally BASIC, 4 KB, `rom_cass`), `bbasdemo`, `colorbas` (Color BASIC prototype), `brb10`/`brb10p`/`brb11` (Blue RAM BASIC), `viperb`/`viperbp` (VIPERSoft BASIC), `checkbac` (a BASIC game). Bally BASIC programs were saved to audio tape; the No-Intro "Tapes" folders hold one `.bin` (Super Slope) and one `.wav` (3D Tic-Tac-Toe). How the original Bally BASIC (not the Astrovision one) stores programs and reaches the tape (the "BASIC audio interface" accessory) is not described by any source pinned here (**U14**). The BASIC milestone (M6 in the brief) therefore needs the user to supply the cartridge and a short source search first; it is the open decision 5. ## Controllers and accessories Four hand controls (joystick with trigger and a knob: the knob is the pot) on ports 10-13 and 1C-1F; the 24-key keypad is in the console (SYS 101). MAME also models a light pen (`astrocade_lightpen`) on the accessory port; the light-pen interrupt and feedback ports are documented (SYS 93), so it is a cheap later socket.