I'm tired of having to find those again and again, and stickying all of them would not make sense, so I am stickying a "table of contents" thread.
This is M0skit0's series of tutorials on the basics of writing a PSP Homebrew loader. These are the base of his development on HBL: