COMS12600 CW - implement an ARM emulator