Skip to content

Commit

Permalink
Merge pull request #4671 from nanshiki/j3video75h
Browse files Browse the repository at this point in the history
Supports J-3100 video mode 75h
  • Loading branch information
joncampbell123 authored Dec 12, 2023
2 parents d1e4487 + bd28bc3 commit 8983d92
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ints/int10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1100,8 +1100,8 @@ CX 640x480 800x600 1024x768/1280x1024
break;
}
break;
case 0x82:// Set/Read the scroll mode when the video mode is JEGA graphic mode
if (J3_IsJapanese()) {
case 0x82:// Set/Read the scroll mode when the video mode is JEGA graphic mode
if (J3_IsJapanese() || (IS_J3100 && GetTrueVideoMode() == 0x75)) {
if(reg_al == 0x00) {
// scroll mode
reg_al = real_readb(BIOSMEM_J3_SEG, BIOSMEM_J3_SCROLL);
Expand Down
4 changes: 4 additions & 0 deletions src/ints/int10_modes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ VideoModeBlock ModeList_VGA[]={

/* Toshiba T3100, J-3100 */
{ 0x074 ,M_DCGA ,640 ,400 ,80 ,25 ,8 ,16 ,1 ,0xB8000 ,0x8000 ,100 ,449 ,80 ,400 ,0 },
{ 0x075 ,M_EGA ,640 ,400 ,80 ,25 ,8 ,16 ,1 ,0xA0000 ,0xA000 ,100 ,525 ,80 ,400 ,0 },

/* Follow vesa 1.2 for first 0x20 */
{ 0x100 ,M_LIN8 ,640 ,400 ,80 ,25 ,8 ,16 ,1 ,0xA0000 ,0x10000,100 ,449 ,80 ,400 ,0 },
Expand Down Expand Up @@ -399,6 +400,7 @@ VideoModeBlock ModeList_VGA_Tseng[]={

/* Toshiba T3100, J-3100 */
{ 0x074 ,M_DCGA ,640 ,400 ,80 ,25 ,8 ,16 ,1 ,0xB8000 ,0x8000 ,100 ,449 ,80 ,400 ,0 },
{ 0x075 ,M_EGA ,640 ,400 ,80 ,25 ,8 ,16 ,1 ,0xA0000 ,0xA000 ,100 ,525 ,80 ,400 ,0 },

// Sierra SC1148x Hi-Color DAC modes
{ 0x213 ,M_LIN15 ,320 ,200 ,40 ,25 ,8 ,8 ,1 ,0xA0000 ,0x10000,100 ,449 ,80 ,400 , _VGA_PIXEL_DOUBLE | _REPEAT1 },
Expand Down Expand Up @@ -1850,6 +1852,8 @@ bool INT10_SetVideoMode(uint16_t mode) {
case 0x10:
case 0x12:
goto att_text16;
case 0x75:
if(IS_J3100) goto att_text16;
default:
if ( CurMode->type == M_LIN4 )
goto att_text16;
Expand Down
3 changes: 3 additions & 0 deletions src/ints/int_dosv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,9 @@ bool DOSV_CheckCJKVideoMode()
if(IS_DOS_CJK && (TrueVideoMode == 0x03 || TrueVideoMode == 0x12 || (TrueVideoMode >= 0x70 && TrueVideoMode <= 0x73) || TrueVideoMode == 0x78)) {
return true;
}
if(IS_J3100 && TrueVideoMode == 0x75) {
return true;
}
return false;
}

Expand Down

0 comments on commit 8983d92

Please sign in to comment.