# The expansion bus (XBUS) and the CD drive Sources: '382 = WO1994016382A1 "Expansion bus" (3DO Co., filed 1993-01-06; its tables read from the image scan); '641 V.C and table I; SDK `smmfldr/cdmfldr/07CDM001` (3DO drive specification), `pgsfldr/spg/11spg001`, `spr/02spr019`, `cdmfldr/03CDM001-004`; wiki opera_xbus, opera_cdrom (tier 3; the CD command set there comes from the FZ-1 technical guide and Portfolio's `cdrom.h`). ## The bus ('382, DOC) One master (the console), up to 16 slaves (devices 0-15), "up to 4 MB/second", no slave-to-slave transfers; at least one internal device (the drive). Signals: ADB7:0 multiplexed address/data, STB- (the only event), CMD-, SEL-, WR-, RDY- (device ready; also flags media access), INT- (shared, open collector), RESET-, IDIN/IDOUT (daisy chain), POWER. Transactions by SEL-/CMD-/WR-: 000 write poll register, 001 read poll, 010 selection, 100 write command byte, 101 read status, 110 write data, 111 read data; each moves one byte with one STB-. After reset the console strobes 17 selections; each device counts strobes while IDIN is low and takes its count as its address when IDIN rises (then raises IDOUT). Devices hold command, data-return and status-return FIFOs; every command returns at least one status byte (bit 4 = error). Poll register: interrupt disable, media access (write 1 to clear), reset, status valid, chunk valid. Mandatory commands: Read Identification 83h (10 bytes: manufacturer, device number, revision, flags incl. "has a downloadable driver", driver size) and Download Driver 87h. Bus timings are not given ("not important to an understanding of the invention"). ## In the console CLIO drives the bus (clio.md); in the FZ-1 a gate array ("OSA") is the CD interface and the expansion-port buffer, and the drive uses Panasonic/MKE signals that map nearly one to one onto the XBUS model (wiki, from the FZ-1 technical guide). DMA: two groups, 4-word bursts. ## The drive - 3DO's licensee specification (SDK 07CDM001): double speed, 300 KB/s sustained, 32 KB buffer, average access 500 ms, worst 800 ms, CLV. The FZ-1's drive (wiki): 150/300 KB/s Mode 1, CD-DA, Mode 2, XA, Photo CD; typical access 350/750 ms (C16: specification vs one drive). MAME names the drive "CR-560-B" (`machine/cr560b.cpp`, a BSD-3-Clause file; its name only). - Command set (wiki, tier 3): 7-byte commands, a command tag then data then a status byte: 01 seek, 02/03 spin up/down, 06/07 open/close drawer, 08 abort, 09 set mode (speed, volume), 0A reset, 0C lock, 0D pause/resume, 0E/0F play, 10 read data (MSF or LBA, block count), 80 data path check, 82 read error, 83 read ID, 84 mode sense, 85 read capacity, 86 read header, 87 read sub-Q, 88 UPC, 89 ISRC, 8A disc code, 8B disc info, 8C read TOC entry, 8D session info, 8E read driver; error codes 00-17h. '382 makes 87h "download driver" (C17); the wiki's seek rows are 8 bytes against its own "all commands 7 bytes" (C18). - Discs: Mode 1, 2,048-byte blocks (SDK 11spg001). The Redump set holds every disc as one Mode 1 track (census.md), so no game needs CD-DA tracks; audio CDs and Photo CDs are run by the firmware. ## The Opera file system (what is documented) Files have one or more identical "avatars" placed across the disc; directories are files; a volume label, a catapult file (seek optimisation), the boot executable `launchme`, `AppStartup`, `BannerScreen`; titles are signed by 3DO before manufacture (SDK CDM pages). The byte layout of the label and directories is not in the pinned documents (U36); identifying a disc by content needs it. ## Disc authentication '641 VII: at a media change the firmware checks "the authenticity of the data on the disk"; software "may be completely or partially encoded" by the methods of US 4,405,829, 4,200,770, 4,218,582 or 4,995,082 (by their numbers the RSA, Diffie-Hellman, Merkle-Hellman and Schnorr patents: our identification). MAME carries `-norsa` firmware variants with the check removed (bios.md). Unsigned homebrew needs either a signed boot or such a variant. The firmware's "dipir" (device-initiated program?) code path is U37. ## Unknowns and contradictions (this page) U36 Opera file-system layout; U37 the dipir path and device numbering; U38 XBUS timing and CLIO strobe rates; U39 the CD-DA path from the drive into the DSP. C16 access times; C17 opcode 87h; C18 seek command length.