Skip to main content
gamedev.net
🔒 Locked

Assembly in Dev-C++

Started by space warp Sep 17, 2006 at 8:26 AM 2 replies 1.3k views
Original Post
space warp
space warp
I'm currently trying to make a program that should run in VGA-mode. To do this I'm trying to use assembly. My basic assembly code looks like this: mov ax, 0013h int 10h But since Dev-C++ uses the AT&T syntax I think it should look like this: mov H0013, %ax int H10 But when I try to compile this I get an error from the assembler telling me that: "suffix or operands invalid for 'int' I have found no reason to why this is happening. Does anyone have a solution?
.sehkteeah erthyahr gahro
space warp
space warp
Thank you!
.sehkteeah erthyahr gahro
mikeman
mikeman
What you're trying to do won't work anyway. You can generate interrupts like that in programs that run in a 16-bit OS like DOS, not in 32-bit OS like Windows and in protected mode. You're probable going to get a fault when you'll try to execute the 'int' instruction. And no, console programs made in Dev-C++ are not DOS programs, they're still 32-bit Windows programs that just use a console.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.