How to do a own code in the PRU of the Beagle?

the examples of the PRU are working without any problem, I did topic in this link PRU program - #12 by rony_vargas but now I want to change a examples and start to work from there to do my own code in the PRU, Is it possible to do?

Best Regards,
Rony Vargas