Newer
Older
use boytacean::gb::GameBoy;
fn main() {
let mut game_boy = GameBoy::new();
// runs the CPU clock and determines the number of
// cycles that have advanced for that clock tick
let cycles = game_boy.clock();
// calls the clock in the PPU to update its own
// execution lifecycle by one set of ticks
game_boy.ppu_clock(cycles);