x86 - assembly determine input logic -
x86 - assembly determine input logic -
can help me how can start programme in assembly language? task write programme inquire user input (just single letter, number, or special character) , programme determine whether user's input letter, number, or special character. thoughts? please help! not asking exact code here want larn how it. im planning figure out step step help appreciated. give thanks much!
assuming user input in al
...
cmp al, 'a' jb not_upper cmp al, 'z' ja not_upper ; arrange print "uppercase" or "alpha" or "letter" not_upper: cmp al, 'a' jb not_lower cmp al, 'z' ja not_lower ; arrange print "lowercase" or whatever not_lower: cmp al, '0' ; etc...
faster way create lookup table , utilize input index - eliminates conditional jumps. improve naive way first program...
assembly x86 tasm
Comments
Post a Comment