I need to write instruction of addition modulo 255 to or1ksim, which is an openRISC simulator. At the first I learnt something about this processor/simulator, then I wrote program HelloWorld in C, compile it using gcc and debbuging according to section 'Using GDB with Or1ksim' from http://opencores.org/or1k/OpenRISC_GNU_tool_chain
Now i have a problem. I don't know how to write a instruction of addition. Which file, from which path should i edit? This function must be written in asembly or C?