Werner's home on the Web

My CHIP-8 Interpreter

CHIP-8 is an ancient1 virtual machine specification2 to write very simple cross platform games.

Writing a CHIP-8 interpreter is a bit of a rite of passage for hackers, so naturally I had to write my own.

Documenting Code with AWK

In this article I present an AWK script I’ve been using for quite some time to create HTML documentation from the headers in my source code.

The script fulfills a similar role as tools like Javadoc and Doxygen, but is not as powerful.

The simplicity comes with some advantages though: AWK is widely available, so I can include the script with my source code and be sure that it will just work. Also, the input (and the output) tends to be simpler, which is ideal for the smaller hobby projects I’ve been spending my time on.

Fiz: A Tcl-like interpreter

Over the years I’ve found myself looking at Tcl, and wondering what the fuss was about. Then I came across one of John Ousterhout’s articles in the Dr Dobb’s Journal and as I read through it, I was suddenly enlightened. Tcl is actually a very smart little language.

My Unstructured Scripting Language

Over the past few weeks, I’ve spent some time updating my little BASIC dialect, which I called Musl (or MUSL, depending on my mood).

The name can mean either My Unstructured Scripting Language or Marginally Useful Scripting Language, also depending on my mood. Musl’s home official page is on this site and I have now set up a repository on Github at http://github.com/wernsey/musl.