Its a mix of C and assembly (but mostly C), written from "scratch". I wrote about it in detail here if you are interested:http://www.matthughson.com/2020/12/07/from-completely-in-the-dark-to-complete-in...
thank you!