Right, that's several hundreds of pages of documentation which all needs to be gone through, and more importantly, understood well enough to be able to generate semantically correct microcode. So again, considering the vast number of possible architectures, that just doesn't seem like a viable project. Maybe you could, say, target only the most popular ones? Then you'd be looking at maybe half a dozen or so to implement.The STM32 family use the ARM cpu,
https://ocw.aoc.ntua.gr/modules/document/file.php/ECE102/Σημειώσεις Μαθήματος/ARM_Programmer_s_Model.pdf
That's "just" a cpu, not trivial, but a cpu is a cpu.
compare with
https://www.amd.com/system/files/TechDocs/24592.pdf