Permalink
Browse files

PC-98: Reflect in BIOS as well

  • Loading branch information...
joncampbell123 committed Mar 17, 2018
1 parent 5f85738 commit 581d310cf2841a6e48bbb19b308bb121ef774e69
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/ints/bios.cpp
@@ -4762,6 +4762,8 @@ void write_FFFF_PC98_signature() {
extern bool gdc_5mhz_mode;
extern bool enable_pc98_egc;
extern bool enable_pc98_grcg;
extern bool enable_pc98_16color;
void gdc_egc_enable_update_vars(void) {
unsigned char b;
@@ -4873,7 +4875,7 @@ class BIOS:public Module_base{
/* various BIOS flags */
mem_writeb(0x53B,0x0F); // CRT_RASTER, 640x400 24.83KHz-hsync 56.42Hz-vsync
mem_writeb(0x54C,0x06); // PRXCRT, 16-color G-VRAM, GRCG
mem_writeb(0x54C,(enable_pc98_grcg ? 0x02 : 0x00) | (enable_pc98_16color ? 0x04 : 0x00)); // PRXCRT, 16-color G-VRAM, GRCG
mem_writeb(0x54D,(enable_pc98_egc ? 0x40 : 0x00) | (gdc_5mhz_mode ? 0x20 : 0x00) | (gdc_5mhz_mode ? 0x04 : 0x00)); // EGC
mem_writeb(0x597,(enable_pc98_egc ? 0x04 : 0x00/*FIXME*/)); // EGC
}

0 comments on commit 581d310

Please sign in to comment.