Build an 8-bit computer from scratch: https://eater.net/8bit
The RC2014 is a good cheap beginners' kit, I hear.
1. Start with a ROM BASIC.
2. Upgrade it to run CP/M and learn some CP/M apps.
3. Get TurboPascal or something and write & compile some Pascal code on CP/M.