Sign in to follow this  

Assembly in Dev-C++

This topic is 4109 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
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

This topic is 4109 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this