Look at my thread & watch the video. That will teach you how to port.
Learn MIPS and other stuff I don't know. That will let you code.