finished/fixed Ch.5 ARM code