I need to convert this code to be compatible for the arduino however I am very new to the Arduino and am not sure how to start. I read up on some forums and online sites that the arduino doesnt require a "main". Secondly i was having problem with my interrupts, using sei(); instead of #asm("sei") didnt really help me.
Please tell me how and where i should start. I would really be grateful!!!