assembly - NASM check if input is a double digit number without a specific Ascii value like "00" -
I am trying to figure out that the user is input I check each byte like 00 but I do not know How to check that I can check numbers or letters that have a specific ESI value such as:
cmp byte [buff], 39h jbe aMethod < / Pre>
buff is where the user input is stored.
00 such as
CMP byte [buff], 30h jne not_00 cmp byte [buff + 1], 30h jne not_00 is_00: ... not_00: ...
Comments
Post a Comment