* arch-utils.c (generic_register_byte): Fix to use the loop index