asm number parsing (thanks to Dave Long)