[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: off topic - Assembler using GCC




Many thanks - this is exactly what I wanted to know.

Ivan.

At 01:21 AM 2/8/99 +0200, you wrote:
>
>> INT 10h is the video BIOS - I want to set the video mode directly.
>
>> By using INT 10h I don't have to learn and programme the card registers -
>> the BIOS takes care of this.
>
>Doing that with svgalib is very simple:
>
>int main()
>{
>
>vga_init(); /* The only addition to doing it with the BIOS int 10h
>               interface */
>vga_setmode(mode);
> .
> . /* your code here */
> .
>vga_setmode(TEXT);
>}
>
>The other code can be the same DOS code, other than accesses to segment
>a000 is replaced with a pointer given by svgalib.
>svgalib does nothing after setting mode, so the speed will be the same
>as the DOS code (other than Protected Mode isssues).
>Off course svgalib does a lot more, but you don't have to use the other 
>features.
>
>
>--
>Matan Ziv-Av.        zivav@cs.bgu.ac.il
>
>        ù"ãç äæ ìàîù íòôä íâ
>Vote MAKI - The Israeli Communist Party
>
>


Reply to: