mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Allow controlling K-CG via BIOS interrupt
This commit is contained in:
@@ -141,6 +141,9 @@ extern bool enable_fpu;
|
|||||||
extern bool finish_prepare;
|
extern bool finish_prepare;
|
||||||
extern bool is_ttfswitched_on;
|
extern bool is_ttfswitched_on;
|
||||||
|
|
||||||
|
/* vga_pc98_cg.cpp */
|
||||||
|
extern bool pc98_cg_kanji_dot_access_mode;
|
||||||
|
|
||||||
bool pc98_timestamp5c = true; // port 5ch and 5eh "time stamp/hardware wait"
|
bool pc98_timestamp5c = true; // port 5ch and 5eh "time stamp/hardware wait"
|
||||||
|
|
||||||
uint32_t Keyb_ig_status();
|
uint32_t Keyb_ig_status();
|
||||||
@@ -3997,7 +4000,7 @@ static Bitu INT18_PC98_Handler(void) {
|
|||||||
0 25lines 20lines
|
0 25lines 20lines
|
||||||
1 80cols 40cols
|
1 80cols 40cols
|
||||||
2 v.lines simp.graphics
|
2 v.lines simp.graphics
|
||||||
3 K-CG access mode(not used in PC-98) */
|
3 K-CG access mode(not available on original PC-9801) */
|
||||||
|
|
||||||
//TODO: set 25/20 lines mode and 80/40 columns mode.
|
//TODO: set 25/20 lines mode and 80/40 columns mode.
|
||||||
//Attribute bit (bit 2)
|
//Attribute bit (bit 2)
|
||||||
@@ -4009,8 +4012,7 @@ static Bitu INT18_PC98_Handler(void) {
|
|||||||
|
|
||||||
mem_writeb(0x53C,(mem_readb(0x53C) & 0xF0u) | (reg_al & 0x0Fu));
|
mem_writeb(0x53C,(mem_readb(0x53C) & 0xF0u) | (reg_al & 0x0Fu));
|
||||||
|
|
||||||
if (reg_al & 8)
|
pc98_cg_kanji_dot_access_mode = !!(reg_al & 8);
|
||||||
LOG_MSG("INT 18H AH=0Ah warning: K-CG dot access mode not supported");
|
|
||||||
|
|
||||||
pc98_update_text_lineheight_from_bda();
|
pc98_update_text_lineheight_from_bda();
|
||||||
pc98_update_text_layer_lineheight_from_bda();
|
pc98_update_text_layer_lineheight_from_bda();
|
||||||
@@ -4023,7 +4025,7 @@ static Bitu INT18_PC98_Handler(void) {
|
|||||||
0 25lines 20lines
|
0 25lines 20lines
|
||||||
1 80cols 40cols
|
1 80cols 40cols
|
||||||
2 v.lines simp.graphics
|
2 v.lines simp.graphics
|
||||||
3 K-CG access mode(not used in PC-98)
|
3 K-CG access mode(not available on original PC-9801)
|
||||||
7 std CRT hi-res CRT */
|
7 std CRT hi-res CRT */
|
||||||
/* NTS: I assume that real hardware doesn't offer a way to read back the state of these bits,
|
/* NTS: I assume that real hardware doesn't offer a way to read back the state of these bits,
|
||||||
* so the BIOS's only option is to read the mode byte back from the data area.
|
* so the BIOS's only option is to read the mode byte back from the data area.
|
||||||
|
Reference in New Issue
Block a user