diff --git a/src/ints/int10_char.cpp b/src/ints/int10_char.cpp index af0e7d76..f77894e4 100644 --- a/src/ints/int10_char.cpp +++ b/src/ints/int10_char.cpp @@ -42,7 +42,7 @@ void INT10_ScrollDownWindow(Bit8u rul,Bit8u cul,Bit8u rlr,Bit8u clr,Bit8u nlines /* Get this from active video mode */ Bit16u textseg=0xb800; - PhysPt start=real_phys(textseg,ncols*nrows*2*page); + PhysPt start=PhysMake(textseg,ncols*nrows*2*page); Bit32u dcol=clr-cul+1; Bit32u drow=rlr-rul+1; @@ -98,7 +98,7 @@ void INT10_ScrollUpWindow(Bit8u rul,Bit8u cul,Bit8u rlr,Bit8u clr,Bit8u nlines,B { if (nlines==0) { /* Clear Screen that we can */ - PhysPt dest=real_phys(0xb800,0); + PhysPt dest=PhysMake(0xb800,0); for (Bit32u tel=0;tel<0x4000;tel++) { mem_writew(dest,0x0000); dest+=2; @@ -119,7 +119,7 @@ void INT10_ScrollUpWindow(Bit8u rul,Bit8u cul,Bit8u rlr,Bit8u clr,Bit8u nlines,B /* Get this from active video mode */ Bit16u textseg=0xb800; - PhysPt start=real_phys(textseg,ncols*nrows*2*page); + PhysPt start=PhysMake(textseg,ncols*nrows*2*page); Bit32u dcol=clr-cul+1; Bit32u drow=rlr-rul+1; @@ -265,7 +265,6 @@ INLINE static void WriteChar(Bit16u col,Bit16u row,Bit8u page,Bit8u chr,Bit8u at break; case GRAPH: { - /* Split this up for certain graphics modes, since in PLANAR4 especially this is sooo slow */ /* Amount of lines */ Bit8u * fontdata; Bit16u x,y; diff --git a/src/ints/int10_misc.cpp b/src/ints/int10_misc.cpp index 98e62848..953b16bb 100644 --- a/src/ints/int10_misc.cpp +++ b/src/ints/int10_misc.cpp @@ -80,9 +80,9 @@ __attribute__ ((packed)); -void INT10_GetFuncStateInformation(Bit16u seg,Bit16u off) { +void INT10_GetFuncStateInformation(PhysPt save) { - PhysPt save=Real2Phys(RealMake(seg,off)); + /* set static state pointer */ mem_writed(save,int10_romarea.static_state); /* Copy BIOS Segment areas */ diff --git a/src/ints/int10_modes.cpp b/src/ints/int10_modes.cpp index 100344b2..bd0afb59 100644 --- a/src/ints/int10_modes.cpp +++ b/src/ints/int10_modes.cpp @@ -348,18 +348,18 @@ void INT10_SetVideoMode(Bit8u mode) { Bit32u tel; if(clearmem) { if(vga_modes[line].type==TEXT) { - PhysPt dest=real_phys(vga_modes[line].sstart,0); + PhysPt dest=PhysMake(vga_modes[line].sstart,0); for (tel=0;tel<0x4000;tel++) { mem_writew(dest,0x0720); dest+=2; } } else { - PhysPt dest=real_phys(0xb800,0); + PhysPt dest=PhysMake(0xb800,0); for (tel=0;tel<0x4000;tel++) { mem_writew(dest,0x0000); dest+=2; } - dest=real_phys(0xa000,0); + dest=PhysMake(0xa000,0); for (tel=0;tel<0x8000;tel++) { mem_writew(dest,0x0000); dest+=2;