Page 1 of 1

How to change screen mode in VC++

Posted: Mon May 06, 2002 11:00 pm
by keyboard_ninja
I'm trying to change to mode 12h in VC++
this code doesn't work:

__asm
{
mov ax, 12
int 10h
}
How can i fix this ?
I know this isn't a vc++ forum but help me if you can

RE:How to change screen mode in VC++

Posted: Mon May 06, 2002 11:00 pm
by Guest
>On 2002-05-07 01:19:39, keyboard_ninja wrote:
>I'm trying to change to mode 12h in VC++

It's impossible to do this from VC++. Visual C++ outputs 32-bit
code for Windows.

>this code doesn't work:
>
>__asm
>{
>mov ax, 12
>int 10h
>}
>How can i fix this ?
>I know this isn't a vc++ forum but help me if you can

Read any text on protected mode and you will understand why you
cannot call BIOS interrupts from a protected-mode OS such as
Windows.

RE:How to change screen mode in VC++

Posted: Mon May 06, 2002 11:00 pm
by The Legend
>On 2002-05-07 08:20:15, Anonymous wrote:
>>On 2002-05-07 01:19:39, keyboard_ninja wrote:
>>I'm trying to change to mode 12h in VC++
>
>It's impossible to do this from VC++. Visual C++ outputs 32-bit
>code for Windows.
Take a look at DirectX then. http://www.gamedev.net has a lot
of info about that.

>
>>this code doesn't work:
>>
>>__asm
>>{
>>mov ax, 12
>>int 10h
>>}
>>How can i fix this ?
>>I know this isn't a vc++ forum but help me if you can
>
>Read any text on protected mode and you will understand why you
>cannot call BIOS interrupts from a protected-mode OS such as
>Windows.
Well, why not write it directly here? BIOS code is
real mode code. :-)