Conversion code( addr -> index)