Starting messing with the brogue c code.  This probably does not compile, but I need to go home.