Skip to content

Commit

Permalink
Fix BIOS switches field. Even though switch bits are inverted, the me…
Browse files Browse the repository at this point in the history
…aning of the bits read still carry the defined values. Fixes "RISK"
  • Loading branch information
joncampbell123 committed Jan 16, 2025
1 parent c6c6461 commit ee24e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ints/int10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ static void INT10_Seg40Init(void) {
// [http://hackipedia.org/browse.cgi/Computer/Platform/PC%2c%20IBM%20compatible/Video/EGA/IBM/IBM%20Enhanced%20Graphics%20Adapter%20%281984%2d08%2d02%29%2epdf]
//
// Anything else is not valid.
real_writeb(BIOSMEM_SEG,BIOSMEM_SWITCHES,0xFF^((!IS_VGA_ARCH && ega200)?0x7:0x9));
real_writeb(BIOSMEM_SEG,BIOSMEM_SWITCHES,0xF0 | ((!IS_VGA_ARCH && ega200)?0x7:0x9));
// Set the pointer to video save pointer table
real_writed(BIOSMEM_SEG, BIOSMEM_VS_POINTER, int10.rom.video_save_pointers);
}
Expand Down

0 comments on commit ee24e6f

Please sign in to comment.