My "PC Emulation Book" is going to need to document a ton of registers. I needed a consistent way of doing so.
Markdown was not really ideal for this.
I decided the thing to do was to write definitions of the registers separately, and then make a python script that turns those definitions into SVG. The result of that process is seen here.
It's pretty flexible, supporting registers of arbitrary size, unused and reserved fields, registers with multiple addresses, and so on.
I should probably look at turning this into a proper #mdbook plugin.
QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.