Where to start in making abootloader??

I am an arduino/raspberry pi programmer..I am currently trying to make a bootloader so the soc I can accept Windows.Please answer my question and be nice because I am just a 14 year old programmer. I want to connect a bit of peripherals..to the soc so I can make a computer..