pub fn build(mem: GBMemory) -> CPU {
        CPU {
            regs: CPU::get_default_registers(),
            mem,
            interrupts_enabled: true,
            interrupts_countdown: -1,
            stopped: false,
            halted: false,
            timer_counter: 0,
            timer_enabled: false,
            timer_armed: false,
            cycle_counter: 0,
            timer_invoke_counter: 0,
        }
    }
/// Builds a CPU from the specified memory module.
Builds a CPU from the specified memory module.
Builds a CPU from the specified memory module .
pub fn build(mem: GBMemory) -> CPU {
        CPU {
            regs: CPU::get_default_registers(),
            mem,
            interrupts_enabled: true,
            interrupts_countdown: -1,
            stopped: false,
            halted: false,
            timer_counter: 0,
            timer_enabled: false,
            timer_armed: false,
            cycle_counter: 0,
            timer_invoke_counter: 0,
        }
    }
pub fn build ( mem : GBMemory ) -> CPU { CPU { regs : CPU :: get_default_registers ( ) , mem , interrupts_enabled : true , interrupts_countdown : - 1 , stopped : false , halted : false , timer_counter : 0 , timer_enabled : false , timer_armed : false , cycle_counter : 0 , timer_invoke_counter : 0 , } }
Builds a CPU from the specified memory module.
Builds a CPU from the specified memory module .
mem
GBMemory
mem
GBMemory