A chip-8 virtual machine in C