title: How do you compare numbers greater than 9 or negative in NASM/MASM assembly?
body: <p>I'm allowed to use the C functions printf, scanf, and puts. I get a number from the user (which is easy), but I need to check to see if it's less than 0 or greater than 255? I know how to compare single digit numbers but am stuck on how to compare negative or numbers >9. would cmp eax, 0 and cmp eax,255 work?</p>