# The shift register The 8080 has no multi-bit shift, so drawing a byte-wide shape at any pixel position needs help. The board has a 16-bit shift register on the I/O bus: - **Port 4 write (data):** the register moves its high byte to its low byte and takes the written byte as its new high byte. Writing AA then FF leaves FFAA (CA's example). - **Port 2 write, bits 0-2 (amount):** chooses which eight bits a read returns. - **Port 3 read (result):** the eight bits starting `7 - amount` bits below the top: with amount 0 the high byte, with amount 7 the low bit of the high byte and the top seven of the low byte (CA). As a formula (register `r`, 16 bits; `n` the amount): result = `(r << n) >> 8 & 0xFF`. ## Which part does it | Source | Says | Tier | | --- | --- | --- | | MAME 0.285 | 40 of the 51 parent machines in `8080bw.cpp` and `mw8080bw.cpp` have an `MB14241 Data Shifter` device (`-listdevices`); the 11 without: checkmat, cosmo, galactic, maze, mraker, ozmawars, rollingc, shuttlei, skylove, spcenctr, yosakdon | 5, OBSERVED | | Taito SVN00002A and SVN00003 parts lists | no MB14241 (or any Fujitsu part) on either list: the logic is TTL (74LS153 multiplexers and 74LS174/175 latches appear on both boards) | 2, DOC (parts lists read; the circuit itself not yet traced) | So the behaviour is agreed and the implementation is not (C1 in the brief). It matters only if a corner differs: what port 3 returns before any write (power-on contents), and whether a write to port 2's upper bits does anything. The specification models the documented behaviour above with power-on contents as an option (zero by default, FITTED), and the board builder reads the TTL implementation off TSCH pp. 12-14 before milestone 2 to settle C1 and those two corners. ## Users Most Taito and Midway 8080 boards in [siblings.md](siblings.md) use it the same way (40 of 51 parents in MAME; OBSERVED); the shifter is a per-machine option. No other family board has such a shifter; it stays in this board (chip rule).