hp9845: handle 2nd character generator as non existing

This commit is contained in:
fulivi 2016-05-20 10:52:45 +02:00
parent 3671c971fd
commit 4277ad02e0

View File

@ -512,7 +512,6 @@ void hp9845b_state::video_render_buff(unsigned video_scanline , unsigned line_in
UINT8 chargen_byte = m_chargen[ line_in_row | ((unsigned)charcode << 4) ];
UINT16 pixels;
// TODO: Handle selection of 2nd chargen
// TODO: Check if order of bits in "pixels" is ok
if ((ul_line && BIT(attrs , 3)) ||
@ -520,8 +519,11 @@ void hp9845b_state::video_render_buff(unsigned video_scanline , unsigned line_in
pixels = ~0;
} else if (char_blink && BIT(attrs , 2)) {
pixels = 0;
} else if (BIT(attrs , 4)) {
// Optional character generator ROM not installed, it reads as 1 everywhere
pixels = 0x7f << 1;
} else {
pixels = (UINT16)(chargen_byte & 0x7f) << 2;
pixels = (UINT16)(chargen_byte & 0x7f) << 1;
}
if (BIT(attrs , 1)) {
@ -1256,3 +1258,10 @@ COMP( 1979, hp9835b, hp9835a, 0, hp9835a, hp9845, driver_device, 0,
COMP( 1980, hp9845b, 0, 0, hp9845b, hp9845b,driver_device, 0, "Hewlett-Packard", "9845B", MACHINE_NO_SOUND )
COMP( 1980, hp9845t, hp9845b, 0, hp9845b, hp9845b,driver_device, 0, "Hewlett-Packard", "9845T", MACHINE_IS_SKELETON | MACHINE_NOT_WORKING | MACHINE_NO_SOUND )
COMP( 1981, hp9845c, hp9845b, 0, hp9845b, hp9845b,driver_device, 0, "Hewlett-Packard", "9845C", MACHINE_IS_SKELETON | MACHINE_NOT_WORKING | MACHINE_NO_SOUND )
/* Local Variables: */
/* tab-width: 4 */
/* indent-tabs-mode: t */
/* c-file-style: "gnu" */
/* c-basic-offset: 4 */
/* End: */