Sign in to follow this  
Nebu

short asm question

Recommended Posts

Nebu    142
Whats wrong with the following? data segment A1 dw BC56h ends I'm not sure I understand why this causes an overflow,explanation is welcome. Thanks in advance

Share this post


Link to post
Share on other sites
implicit    504
I don't know about overflows (a complete example of the problem, or at least the full error message, would be helpful here) but you need a leading zero for any hexadecimal constant where the first character is a alphabetical character (e.g. A-F). Without it the parser doesn't know how to separate the integer literal 0BC56h from a label which just happens to start with a 'B' and end with an 'h.'

Share this post


Link to post
Share on other sites

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