C Template code for callasm in Fire Red and Emerald