From 21865541054ef11c3b5c6ee0bfdb955f1384a96c Mon Sep 17 00:00:00 2001 From: Wengier Date: Sun, 21 Nov 2021 02:53:16 -0500 Subject: [PATCH] update J3_GetMachineCode() --- include/jfont.h | 1 + src/ints/bios_keyboard.cpp | 4 ++-- src/ints/int10_modes.cpp | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/jfont.h b/include/jfont.h index f99eb5829..51406fc46 100644 --- a/include/jfont.h +++ b/include/jfont.h @@ -81,6 +81,7 @@ void INT8_J3(); void INT60_J3_Setup(); uint8_t GetKanjiAttr(); uint16_t GetGaijiSeg(); +uint16_t J3_GetMachineCode(); void J3_SetBiosArea(uint16_t mode); enum DOSV_VTEXT_MODE { diff --git a/src/ints/bios_keyboard.cpp b/src/ints/bios_keyboard.cpp index 3f8ef5a9e..b81a31510 100644 --- a/src/ints/bios_keyboard.cpp +++ b/src/ints/bios_keyboard.cpp @@ -1407,8 +1407,8 @@ Bitu INT16_Handler(void) { if(reg_ax == size / 2) { reg_ax = 0xffff; } - // J-3100 machine code(dummy) - reg_bx = 0x6a74; + // J-3100 machine code + reg_bx = J3_GetMachineCode(); } break; default: diff --git a/src/ints/int10_modes.cpp b/src/ints/int10_modes.cpp index 80e8d489e..771361820 100644 --- a/src/ints/int10_modes.cpp +++ b/src/ints/int10_modes.cpp @@ -39,7 +39,6 @@ #define GFX_REGS 0x09 #define ATT_REGS 0x15 -uint16_t J3_GetMachineCode(); void J3_GetPalette(uint8_t no, uint8_t &r, uint8_t &g, uint8_t &b); extern bool window_was_maximized; extern bool enable_vga_8bit_dac;