Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VC++ __ASM question

Status
Not open for further replies.

CubeE101

Programmer
Nov 19, 2002
1,492
US
why does the example on the VC++ MSDN disk show...

Code:
// Example of the __asm keyword
__asm                  // __asm block
{
   mov eax, 01h
   int 10h
}

(in the index under __asm)

But it gets an error when you run it???

Is it because of WinXP???

Is there a way to switch to Screen mode 13 with VC++ ???
Such as...
Code:
__asm
{
   mov eax, 13h
   int 10h
}

Or is that not considered to be a 32bit Application???????

I am trying this with VC++ 6.0, Win32 Console App, empty project...
Source File included is asmtest.cpp (under Source Files in project tree)
File includes the following...
Code:
#include <stdio.h>
void main()
{
__asm                  // __asm block
{
   mov eax, 13h
   int 10h
}
}

it compiles fine, but then crashes... &quot;ASMtest.exe has encountered a problem and needs to close...&quot;

Thanks in Advance for ANY info on this subject...

Have Fun, Be Young... Code BASIC
-Josh Stribling
cubee101.gif

 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top