[Dev-C++] Simple inline assembly. What am I doing wrong?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Leon B. <bo...@ho...> - 2001-09-03 20:52:49
|
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
|