ef9340: add keyboard cursor

This commit is contained in:
hap 2020-08-13 20:52:25 +02:00
parent e56c517e3b
commit e098721575
2 changed files with 7 additions and 1 deletions

View File

@ -343,7 +343,7 @@ void ef9340_1_device::ef9340_scanline(int vpos)
}
else
{
// Alphannumeric
// Alphanumeric
if ( b & 0x80 )
{
if ( b & 0x60 )
@ -372,6 +372,10 @@ void ef9340_1_device::ef9340_scanline(int vpos)
}
}
// Cursor is enabled
if ( m_ef9340.R & 0x10 && x == m_ef9340.X && y_row == m_ef9340.Y )
char_data ^= 0xff;
for ( int i = 0; i < 8; i++ )
{
m_tmp_bitmap.pix16(vpos, 0 + x*8 + i ) = (char_data & 0x80) ? fg : bg;

View File

@ -62,6 +62,7 @@ protected:
uint8_t TB;
uint8_t busy;
} m_ef9341;
struct
{
uint8_t X;
@ -71,6 +72,7 @@ protected:
uint8_t M;
int max_vpos;
} m_ef9340;
uint8_t m_ef934x_ram_a[1024];
uint8_t m_ef934x_ram_b[1024];
uint8_t m_ef934x_ext_char_ram[2048]; /* The G7400 has 2KB of external ram hooked up. The datasheet only describes how to hookup 1KB. */