Show HN: Avremu – An 8-Bit Microcontroller in Pure LaTeX
11–19 of 19 posts
Re: Show HN: Avremu – An 8-Bit Microcontroller in Pure LaTeX
#12There was a very low hard limit on the number of jumps (32, if I recall correctly) that complicated things. I eventually had to resort to a two step process, first translating 6502 code to a simpler virtual machine (using and abusing the find-and-replace command), and then executing that simpler code.
Re: Show HN: Avremu – An 8-Bit Microcontroller in Pure LaTeX
#13why?
Re: Show HN: Avremu – An 8-Bit Microcontroller in Pure LaTeX
#14Re: Show HN: Avremu – An 8-Bit Microcontroller in Pure LaTeX
#15this is cool and you seem obviously intelligent, have you considered making something people want?
Re: Show HN: Avremu – An 8-Bit Microcontroller in Pure LaTeX
#16Imagine a LaTeX document that, when processed, reads a series of measurements from a sensor over the serial port, then renders nice graphs directly to a PDF! :)
Re: Show HN: Avremu – An 8-Bit Microcontroller in Pure LaTeX
#17Re: Show HN: Avremu – An 8-Bit Microcontroller in Pure LaTeX
#18Earlier quoted context omitted.
This is true, but largly in TeX and only Parts of it in LaTeX is still LaTeX. But you're right, I did use only a few rudimentary features.
I think this is the minority view of LaTeX: it's built on top of and is a subset of TeX, not a superset. No one would ever consider \def to be LaTeX for example. Not to denigrate what you produced of course.
Re: Show HN: Avremu – An 8-Bit Microcontroller in Pure LaTeX
#19I wonder if this could be modified to control actual hardware? It looks the `\write18` command can be used to execute shell commands if LaTeX is run with the `--shell-escape` option. So in theory you could intercept all writes to the GPIO control registers and use a shell command to send bytes over the serial port to a physical MCU (or something like the SparkFun SPI Shortcut.) Imagine a LaTeX document that, when pro…