|Just like that! |
It would take the best part of a year to write an operating system from scratch and for the first three months of that year. you would be doing nothing but reading to find out how to do it.
If it is programming that you want to learn I would start with something just a teeny little bit simpler, like a control programme for neuclear power station.