Jump to content
  • Advertisement
Sign in to follow this  
space warp

Assembly in Dev-C++

This topic is 4411 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!