The 6510 and variants were based on the same core as the 6502, and are
opcode compatible, including
undocumented opcodes. The parallel port was provided by using several formerly unused pins, eliminating some, and re-arranging others. In the original 6502, pins 5, 35 and 36 were not connected. Pin 3, formerly the phase-1 clock out, was eliminated, as most roles did not require it. The 6502 also had two ground pins, on pin 1 and pin 21 on the opposite side of the chip. CLKIN, formerly on pin 37, was moved to pin 1, replacing the redundant ground. SO on pin 38, which was connected to the overflow flag in the processor status register, was eliminated as few applications made use of it and the new parallel port could provide similar functionality. This provided a total of six pins that could be used for the port. To make the layout more practical, the remaining pins were moved. On the left side, two pins were now free, 3 and 5, so all of the pins on that side moved up to fill the gap. This left two pins at the bottom left, so
address bus lines 12 and 13, formerly on pins 22 and 23, moved into these positions. Address lines 14 and 15 moved down two spots to fill the gap. CLKIN had moved, SO was removed, and the two unconnected pins on 35 and 26 were free, so the data bus on 33 through 26 moved up four pins. With those pins moving up, and the address lines moving down, there were six free pins in a row, 24 through 29, to be used as the parallel port pins, named P0 through P5. ==Use==