1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-19 23:32:28 +00:00

Add stubs for joystick/mouse querying.

This commit is contained in:
Thomas Harte 2021-07-26 16:21:51 -04:00
parent 5da89b88a6
commit e671cc6056

View File

@ -58,7 +58,7 @@ void Chipset::perform(const CPU::MC68000::Microcycle &cycle) {
assert(false);
break;
// Position polling.
// Raster position.
case Read(0x004): {
const uint16_t position = uint16_t(y_ >> 8);
LOG("Read vertical position high " << PADHEX(4) << position);
@ -77,6 +77,13 @@ void Chipset::perform(const CPU::MC68000::Microcycle &cycle) {
LOG("TODO: write vertical position low " << PADHEX(4) << cycle.value16());
break;
// Joystick/mouse input.
case Read(0x00a):
case Read(0x00c):
LOG("TODO: Joystick/mouse position " << PADHEX(4) << *cycle.address);
cycle.set_value16(0x8080);
break;
// Disk DMA.
case Write(0x020): case Write(0x022): case Write(0x024):
case Write(0x026):