Rust code following along with http://imrannazar.com/GameBoy-Emulation-in-JavaScript