mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
ef9340: add keyboard cursor
This commit is contained in:
parent
e56c517e3b
commit
e098721575
@ -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;
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user