fixed compile

impr. illegal reads
fix s16 reads
asm thumb emulation