- 3


_asm {

mov ah,0Fh

int 10h

mov mode,al

}


// 0, 1, 2, 3,

// 4, 5, 6 B800h

if((mode >= 0) && (mode <= 6))

seg_address = 0xB800;


// 7,

// B000h

else if(mode == 7)

seg_address = 0xB000;


// 0Dh - 13h,

// A000h

else if((mode >= 0x0D) && (mode <= 0x13))

seg_address = 0xA000;


//

//

else seg_address = 0x0;


return(seg_address);

}

EGA VGA. :

- VGA