some sample codes of ARM