Simple armv2 emulator in C