Armemu is a very tiny open source emulator for arm32 I rewrote it totally just for better modularity and I can easily understand its principle. Please open the source file with Eclipse CDT and compile and run it.