diff options
author | 2020-08-13 20:52:25 +0200 | |
---|---|---|
committer | 2020-08-13 20:52:25 +0200 | |
commit | e098721575b963c8beaef6f43e6293ca94b9e1f5 (patch) | |
tree | f798831ac031e381eac07fcf23d0d89eaf95f39b /src/devices/video/ef9340_1.cpp | |
parent | e56c517e3b861ef624045c3007549660381c99be (diff) |
ef9340: add keyboard cursor
Diffstat (limited to 'src/devices/video/ef9340_1.cpp')
-rw-r--r-- | src/devices/video/ef9340_1.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/devices/video/ef9340_1.cpp b/src/devices/video/ef9340_1.cpp index 1083b160f68..d36ae8a7cc1 100644 --- a/src/devices/video/ef9340_1.cpp +++ b/src/devices/video/ef9340_1.cpp @@ -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; |