3 ms·
I didn't program the ARM1, but I programmed the ARM2 extensively in assembler. The ARM2 was very similar to the ARM1 (it had a multiply instruction and a co-pr
by nickcw 11y ago
I didn't program the ARM1, but I programmed the ARM2 extensively in assembler. The ARM2 was very similar to the ARM1 (it had a multiply instruction and a co-processor interface).
The conditional instructions were one of the things that made the ARM really fun to program in assembler. The others being that lovely array of 15 general purpose registers, and knowing that each instruction took 1 cycle (4 for memory accesses) meant that you could optimize the code by looking at it instead of having to run it!
Unfortunately conditional instructions and superscalar / out of order execution don't mix, so they can actually slow your code down now-a-days if you are running on a modern ARM processor.
- Narishma 11y agoIIRC, that's why they were removed in ARMv8.