Newer gcc seems to use __ARM_ARCH_ISA_THUMB to tell use we have thumbinstructions available
Update the ARM asm support code from version 1.0.2 with some localmodifications to make it compile and work on armv4.