By using this site, you agree to our Privacy Policy and our Terms of Use. Close

Forums - General Discussion - Anyone know Intel assembly, I need help

So, what I have to do is take an arbitrary 2 byte signed integer (standard C int really) and determine it's decimal ASCII. That is, if I had $FFFFFFFF I'd need to to create the string "-1" or $0000000F and create the string "16". Needs to be Intel assembly (not exactly a challenge in a high level language). Does anyone know how to manage it? Thanks



3DS - 2277 - 6636 - 6675 WiiU - Vectorferret
(Write on wall or PM if adding)
Around the Network
Vectorferret said:

So, what I have to do is take an arbitrary 2 byte signed integer (standard C int really) and determine it's decimal ASCII. That is, if I had $FFFFFFFF I'd need to to create the string "-1" or $0000000F and create the string "16". Needs to be Intel assembly (not exactly a challenge in a high level language). Does anyone know how to manage it? Thanks

Marking this to look at tomorrow (too tired to dig out my books at the moment) since I use to be good at assembly language.  I forget how to do sign crap but after converting that it isn't that hard.