MGBA debugging must be enabled using debug::open and disabled using debug::close. This commit adds logging through debug::puts. TODO: add logging using debug::printf and debug::write.