Re: [Dev-C++] Simple inline assembly. What am I doing wrong?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Johannes P. <joh...@pr...> - 2001-09-04 05:21:52
|
Lo there
========
I Believe this is something small can you give more specific error message
or screen shot on the error
provided also your OS. As this is not suppose to give a error even if it
is a Windows project.
Futher after that maybe we can help you out :)..
C Ya
Johannes
At 22:52 03/09/2001 +0200, you wrote:
>I've been trying to get assembly to work in Dev-C++, but I'm desperate!
>Here's what I tried: (replace periods at start of line with spaces)
>
>void SetMode13h()
>{
>..asm("movw %ax,0x0013");
>..asm("int $10");
>}
>
>It compiles alright, but when I call this function, I get a Windows error!
>It seems that the first asm line is wrong, and, I'm not sure whether the
>second line will work either! This was the idea I was trying to do (In
>ordinary assembler)
>
>Void SetMode13h()
>{
>..asm
>..{
>....mov ax, 0x0013h
>....int 10h
>..}
>}
>
>
>Can anybody explain what's wrong with the code I wrote? And how can I fix it?
>Thanks, Leon Buikstra
>
>(If I sent this mail twice, blame chello!)
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|