MOS Technology 6508
The MOS Technology 6508 is an 8-bit microprocessor designed by MOS Technology. Based on the popular MOS [Technology 6502|6502], the 6508 is augmented with two additional features: an internal 8-bit digital I/O port and 256 bytes of internal Static [random access memory|static RAM].
Memory layout
The internal RAM is mapped into the CPU address space both at - and at -, so it can serve as both zero page and stack space. The I/O port is available at location, with a data-direction register at, which is the same layout of the 6510.
Variants
There may be different strapping/bonding variants of this chip; the datasheet below lists pin 40 as clock phase two, but in the CBM900 computer, the 6508 controlling floppydisk has pin 40 as "Set Overflow". SO is a pin that is also offered on the 40-pin 6502, but omitted on all the 28-pin 650x variants. The SO pin, on 6500 family CPUs that have it, sets the Overflow flag in the P register, which can be tested using BVC/BVS instructions. Using SO, a tight polling loop of 3 machine cycles can be constructed, tighter than the minimum two instructions of any test and branch loop not using the SO pin functionality.