Made armtest code runnable on OS X.
Fixed argument order error.
Added optional Thumb and ARM/Thumb2 assembly code for addition, subtraction, multiplication, and squaring.