Right now, PPU.tick() returns a Boolean value denoting if we need to redraw the screen. This makes things a little awkward on the callers side; there ought to be a way to instead set some sort of state to denote whether or not to do so, and then have the caller interrogate that.
Also, we currently pass in a screen buffer from the Console instance and have to explicitly call a function to swap it with the PPU's internal buffer after we've executed enough instructions to merit a redraw. This too is awkward; the PPU should be responsible to swapping the buffer at the correct time.
Right now,
PPU.tick()returns a Boolean value denoting if we need to redraw the screen. This makes things a little awkward on the callers side; there ought to be a way to instead set some sort of state to denote whether or not to do so, and then have the caller interrogate that.Also, we currently pass in a screen buffer from the Console instance and have to explicitly call a function to swap it with the PPU's internal buffer after we've executed enough instructions to merit a redraw. This too is awkward; the PPU should be responsible to swapping the buffer at the correct time.