Expand description
The I/O port ($1000-$13FF, one register) and what answers on the pad pins
(cpu_io/io_port.py).
[hw: pcetech 4] Reads: D7 CD-unit sense (1 = not attached; C6 records sgxtech’s opposite sentence), D6 country (1 = PC Engine, 0 = TurboGrafx-16), D5-D4 always 1, D3-D0 the pad pins. Writes: D1 = CLR, D0 = SEL. The port never returns buffer bits, but a read does load the buffer.
[mfr: HuC6280 hardware manual 2.5, 2.6] The CPU’s output port (port O, O0-O7) is a latch that reads back nothing and is driven high by a system reset, so SEL and CLR both power up high; the eight bits are kept because the SuperGrafx’s S-EXP port uses O2-O7. Port K (K0-K7) is the input the pad pins and the CD sense reach.