PC-98 INT 18h AH=10h set cursor blink, and side effect as well, to eliminate blinking cursor in PC-98 port of Lemmings

This commit is contained in:
Jonathan Campbell
2025-03-27 19:46:48 -07:00
parent b21934e91b
commit 6c944cfc82
2 changed files with 9 additions and 0 deletions

View File

@@ -1,4 +1,8 @@
Next
- PC-98 mode: Add INT 18h function AH=10h to control cursor blink.
Emulate documented side effect in that this call also hides the
cursor. The PC-98 port of Lemmings will no longer show a blinking
black box in the lower left corner. (joncampbell123)
- Fixed Host key (F11, F12) handling in Codepage 932 (Japanese Shift-JIS).
(maron2000)
- Fixed SSE PSADBW to match the Intel SDM. (fuel-pcbox)

View File

@@ -4020,6 +4020,11 @@ static Bitu INT18_PC98_Handler(void) {
pc98_gdc[GDC_MASTER].param_ram[2] = (400 << 4) & 0xFF;
pc98_gdc[GDC_MASTER].param_ram[3] = (400 << 4) >> 8;
break;
case 0x10: /* set cursor blink */
PC98_show_cursor(false); /* side effect: hides the cursor */
pc98_gdc[GDC_MASTER].force_fifo_complete();
pc98_gdc[GDC_MASTER].cursor_blink = !!(reg_al & 1);
break;
case 0x11: /* show cursor */
PC98_show_cursor(true);
break;