Port A has an 8 bit wide Data Direction Register (DDR) that is written to at SWACNT (HEX 281) to set each individual pin of Port A to either input or output. The Port A pins are labeled PA0 thru PA7, and writing a "0" to a pins' DDR bit sets that pin as input, and a "1" sets it as an output. For example, writing all 0's to SWACNT (the DDR for Port A) sets PA0 thru PA7 (all 8 pins of Port A) as inputs. If F0 (11110000) were written to SWACNT then PA7, PA6, PA5 & PA4 would be outputs, and PA3, PA2, PA1 & PA0 would be inputs.
I'm wondering if anyone has ever used Port A as an output port and communicated with another computer or device from the VCS. If so, what did you do (write a serial communication protocol, for example)? Such a task would also require rigging the two 9-pin joystick ports to act as a DCE device. It's not clear to me how the SWCHA register relates to the 9-pin input device itself, and what sort of hack I'd have to concoct to succeed at transmitting data from the VCS to the foreign computer.














