1964 refactoring WIP. Will eventually be used as the basis for another emu.