Recently I made C multipass compiler (and asembler) in typescript for such old x86 CPUs
The one in the book is for the Z80, which is a bit older and does not even have multiply or divide instructions. The compiler can also output code for the 8086, though. And the 386.
EDIT: should have taken a look on the rest of your website first. Clearly you do, hahaha