1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Change 9938 identification number.

This commit is contained in:
Thomas Harte 2023-02-21 19:35:11 -05:00
parent 091c1b0f45
commit 62d381065e

View File

@ -1059,11 +1059,11 @@ uint8_t Base<personality>::read_register() {
// b7 = light pen; set when light is detected, reset on read;
// or: mouse button 2 currently down.
// b6 = light pen button or mouse button 1.
// b5b1 = VDP identification (1 = 9938; 2 = 9958)
// b5b1 = VDP identification (0 = 9938; 2 = 9958)
// b0 = set when the VDP reaches the line provided in the line interrupt register.
// Reset upon read.
const uint8_t result =
(personality == Personality::V9938 ? 0x2 : 0x4) |
(personality == Personality::V9938 ? 0x0 : 0x4) |
(line_interrupt_pending_ ? 0x01 : 0x00);
line_interrupt_pending_ = false;