34
edits
No edit summary |
m (→Ports) |
||
Line 15: | Line 15: | ||
A5=A/!B select. | A5=A/!B select. | ||
A6=D/!C select. | A6=D/!C select. | ||
A7=Chip Enable. | A7=Chip Enable. | ||
This results in four useable ports for the z80 PIO - | This results in four useable ports for the z80 PIO - | ||
Port 31 ( 0x1F ) | Port 31 ( 0x1F ) - Left/Right motion ( 1 bit ) - Bit 0 | ||
Port 63 ( 0x3F ) | |||
Port 63 ( 0x3F ) - Up/Down motion ( 1 bit ) - Bit 0 | |||
Port 91 ( 0x5F ) | Port 91 ( 0x5F ) | ||
Port 127 ( 0x7F ) | Port 127 ( 0x7F ) | ||
Also, the button decode is performed through direct I/O and pulling the relevant data line low. The button port is | Also, the button decode is performed through direct I/O and pulling the relevant data line low. The button port is | ||
Port 223 ( 0xDF ) | Port 223 ( 0xDF ) - Buttons, Bit 5,6 and 7 | ||
Reading from this port will result in reading the mouse buttons. | Reading from this port will result in reading the mouse buttons. | ||
Line 33: | Line 38: | ||
LMB - Bit 7 low when pressed. | LMB - Bit 7 low when pressed. | ||
MMB - Bit 6 low when pressed. | MMB - Bit 6 low when pressed. | ||
RMB - Bit 5 low when pressed. | RMB - Bit 5 low when pressed. | ||
== Circuit Layout == | == Circuit Layout == |
edits