...inc edx ; increment string pointer
test bl, bl ; check if zero
jne mainloop ; if not zero, continue loop
pop edx
pop ebx
ret
end
**********
Basically, the algorithm brings down the values of 'A' to 'F' down by 7, so that all values are contiguous from 48 to 63. Then you can just...