I loaded some integers via an array into registers and assembled using arc. What does the following error message mean: "Attempting to access non word aligned memory location: 31 at program location 2084. Simulation Ended." I am seeking to find the average and median of the integers. I performed the average. How would I do a sort to find the midpoint.
Do you understand what "word-aligned" means?
ARMs are picky about word alignment. 16-bit quantities have to start on even addresses; 32-bit quantities on multiples of 4. Sounds like you've made a non-aligned access, and the simulator is politely pointing that out. (The real hardware will just give you back garbage that's only somewhat reminiscent of the right data...)