inline asm implementation of base8 and base16 atoi