Need help getting in mode 13h

Hi, i looked in many dos C games programming tutorials and i have one
problem : i try the code in the tutorials to get in video mode 13h
but nothing work, i use borland C++ builder 6 and visual C++ 6.

I also looked in games sourcecode and try to figure what is setting up this video mode, but the only thing that i found is :

void main()
{

asm {
mov ax, 13h
int 10h
}

getch();

asm {
mov ax, 03h
int 10h
}

return;
}
//-----------------------------------------------------

and when i did that, i got a windows blue screen :(

Anyone can tell me how to get in this damn mode or give me some
good tutorials url plz?

thx.


Comments

  • [b][red]This message was edited by Warlockzzz at 2003-4-30 22:4:45[/red][/b][hr]
    : Hi, i looked in many dos C games programming tutorials and i have one
    : problem : i try the code in the tutorials to get in video mode 13h
    : but nothing work, i use borland C++ builder 6 and visual C++ 6.
    :
    : I also looked in games sourcecode and try to figure what is setting up this video mode, but the only thing that i found is :
    :
    : void main()
    : {
    :
    : asm {
    : mov ax, 13h
    : int 10h
    : }
    :
    : getch();
    :
    : asm {
    : mov ax, 03h
    : int 10h
    : }
    :
    : return;
    : }
    : //-----------------------------------------------------
    :
    : and when i did that, i got a windows blue screen :(
    :
    : Anyone can tell me how to get in this damn mode or give me some
    : good tutorials url plz?
    :
    : thx.
    :
    [blue]
    That's the right way to set up video mode on dos.

    I think, that's either the compiler or the OS the probem, but i am not sure. I can compile your code on Turbo C++ on Win98, what's your?
    You should, maybe, try dos compiler?!

    Search for this file, it might help you : helppc (zip file).
    Contain a lot of stuff about assembler, some on setting graphic mode in dos.
    [/blue]


  • : [b][red]This message was edited by Warlockzzz at 2003-4-30 22:4:45[/red][/b][hr]
    : : Hi, i looked in many dos C games programming tutorials and i have one
    : : problem : i try the code in the tutorials to get in video mode 13h
    : : but nothing work, i use borland C++ builder 6 and visual C++ 6.
    : :
    : : I also looked in games sourcecode and try to figure what is setting up this video mode, but the only thing that i found is :
    : :
    : : void main()
    : : {
    : :
    : : asm {
    : : mov ax, 13h
    : : int 10h
    : : }
    : :
    : : getch();
    : :
    : : asm {
    : : mov ax, 03h
    : : int 10h
    : : }
    : :
    : : return;
    : : }
    : : //-----------------------------------------------------
    : :
    : : and when i did that, i got a windows blue screen :(
    : :
    : : Anyone can tell me how to get in this damn mode or give me some
    : : good tutorials url plz?
    : :
    : : thx.
    : :
    : [blue]
    : That's the right way to set up video mode on dos.
    :
    : I think, that's either the compiler or the OS the probem, but i am not sure. I can compile your code on Turbo C++ on Win98, what's your?
    : You should, maybe, try dos compiler?!
    :
    : Search for this file, it might help you : helppc (zip file).
    : Contain a lot of stuff about assembler, some on setting graphic mode in dos.
    : [/blue]
    :
    :
    :
    [red]You need the DOS compiler. The code you produce with BCB or VC++ 6.0 is a 32-bit and you can't do these ASM operations here. Only DOS compiler will do it.[/red]
  • : : [b][red]This message was edited by Warlockzzz at 2003-4-30 22:4:45[/red][/b][hr]
    : : : Hi, i looked in many dos C games programming tutorials and i have one
    : : : problem : i try the code in the tutorials to get in video mode 13h
    : : : but nothing work, i use borland C++ builder 6 and visual C++ 6.
    : : :
    : : : I also looked in games sourcecode and try to figure what is setting up this video mode, but the only thing that i found is :
    : : :
    : : : void main()
    : : : {
    : : :
    : : : asm {
    : : : mov ax, 13h
    : : : int 10h
    : : : }
    : : :
    : : : getch();
    : : :
    : : : asm {
    : : : mov ax, 03h
    : : : int 10h
    : : : }
    : : :
    : : : return;
    : : : }
    : : : //-----------------------------------------------------
    : : :
    : : : and when i did that, i got a windows blue screen :(
    : : :
    : : : Anyone can tell me how to get in this damn mode or give me some
    : : : good tutorials url plz?
    : : :
    : : : thx.
    : : :
    : : [blue]
    : : That's the right way to set up video mode on dos.
    : :
    : : I think, that's either the compiler or the OS the probem, but i am not sure. I can compile your code on Turbo C++ on Win98, what's your?
    : : You should, maybe, try dos compiler?!
    : :
    : : Search for this file, it might help you : helppc (zip file).
    : : Contain a lot of stuff about assembler, some on setting graphic mode in dos.
    : : [/blue]
    : :
    : :
    : :
    : [red]You need the DOS compiler. The code you produce with BCB or VC++ 6.0 is a 32-bit and you can't do these ASM operations here. Only DOS compiler will do it.[/red]
    :


    Thx, so ill try turbo C++

  • : : : [b][red]This message was edited by Warlockzzz at 2003-4-30 22:4:45[/red][/b][hr]
    : : : : Hi, i looked in many dos C games programming tutorials and i have one
    : : : : problem : i try the code in the tutorials to get in video mode 13h
    : : : : but nothing work, i use borland C++ builder 6 and visual C++ 6.
    : : : :
    : : : : I also looked in games sourcecode and try to figure what is setting up this video mode, but the only thing that i found is :
    : : : :
    : : : : void main()
    : : : : {
    : : : :
    : : : : asm {
    : : : : mov ax, 13h
    : : : : int 10h
    : : : : }
    : : : :
    : : : : getch();
    : : : :
    : : : : asm {
    : : : : mov ax, 03h
    : : : : int 10h
    : : : : }
    : : : :
    : : : : return;
    : : : : }
    : : : : //-----------------------------------------------------
    : : : :
    : : : : and when i did that, i got a windows blue screen :(
    : : : :
    : : : : Anyone can tell me how to get in this damn mode or give me some
    : : : : good tutorials url plz?
    : : : :
    : : : : thx.
    : : : :
    : : : [blue]
    : : : That's the right way to set up video mode on dos.
    : : :
    : : : I think, that's either the compiler or the OS the probem, but i am not sure. I can compile your code on Turbo C++ on Win98, what's your?
    : : : You should, maybe, try dos compiler?!
    : : :
    : : : Search for this file, it might help you : helppc (zip file).
    : : : Contain a lot of stuff about assembler, some on setting graphic mode in dos.
    : : : [/blue]
    : : :
    : : :
    : : :
    : : [red]You need the DOS compiler. The code you produce with BCB or VC++ 6.0 is a 32-bit and you can't do these ASM operations here. Only DOS compiler will do it.[/red]
    : :
    :
    :
    : Thx, so ill try turbo C++
    :
    :

    I downloaded turbo C++ and put the code in it, but when i compile, it start compiling, then it stop and say : could not find tasm executable.
    There is no tasm.exe in my folder, only a tasm2msg.exe.
    Anyone can help me or send me tasm.exe?

  • [blue]That's very old TC you have there - here is the code without ASM:[/blue][code]
    #include

    void SetMode13H ()
    {
    _AX = 0x0013;
    geninterrupt (0x10);
    }

    void SetModeText ()
    {
    _AX = 0x0003;
    geninterrupt (0x10);
    }
    [/code]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories