Skip to content

Commit

Permalink
video/pc_vga_tseng.cpp: add offset bit 8
Browse files Browse the repository at this point in the history
  • Loading branch information
angelosa committed Nov 16, 2024
1 parent 0292fb0 commit e6402c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/devices/video/pc_vga_tseng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,15 @@ void tseng_vga_device::crtc_map(address_map &map)
})
);
// Horizontal overflow
// NOTE: undocumented in ET4000AX
map(0x3f, 0x3f).lrw8(
NAME([this] (offs_t offset) {
return et4k.horz_overflow;
}),
NAME([this] (offs_t offset, u8 data) {
et4k.horz_overflow = data;
vga.crtc.horz_total = (vga.crtc.horz_total & 0xff) | ((data & 1) << 8);
vga.crtc.offset = (vga.crtc.offset & 0x00ff) | ((data & 0x80) << 1);
recompute_params();
})
);
Expand Down

0 comments on commit e6402c0

Please sign in to comment.