1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 20:29:42 +00:00

Fix Apple II/II+ text/lores hbl read addresses

Closes #1181
This commit is contained in:
Ryan Schmidt 2023-10-25 01:44:48 -05:00
parent 98730f1f90
commit c206c7e2cb

View File

@ -178,6 +178,13 @@ template <class BusHandler, bool is_iie> class Video: public VideoBase {
if(mapped_row < 64) {
read_address += 128;
}
// On Apple II and II+ (not IIe or later) in text/lores mode (not hires), horizontal
// blanking bytes read from $1000 higher.
const GraphicsMode pixel_mode = graphics_mode(mapped_row);
if(!is_iie_ && ((pixel_mode == GraphicsMode::Text) || (pixel_mode == GraphicsMode::LowRes))) {
read_address += 0x1000;
}
}
// Read the address and return the value.