pub fn new() -> CPU {
        CPU {
            registers: Registers::new(),
            flags: Flags::new(),
            pc: 0,
            sp: 0,
            bus: AddressBus::new(),
            halt: false,
            int: (false, 0),
            inte: false,
            out_callback: None,
            in_callback: None,
            debug: Debug::new(),
            slice_duration: 16,
            slice_max_cycles: 35000,
            slice_current_cycles: 0,
            slice_start_time: SystemTime::now(),
        }
    }
/// Creates a new CPU instance and its 16 bits address bus.
Creates a new CPU instance and its 16 bits address bus.
Creates a new CPU instance and its 16 bits address bus .
pub fn new() -> CPU {
        CPU {
            registers: Registers::new(),
            flags: Flags::new(),
            pc: 0,
            sp: 0,
            bus: AddressBus::new(),
            halt: false,
            int: (false, 0),
            inte: false,
            out_callback: None,
            in_callback: None,
            debug: Debug::new(),
            slice_duration: 16,
            slice_max_cycles: 35000,
            slice_current_cycles: 0,
            slice_start_time: SystemTime::now(),
        }
    }
pub fn new ( ) -> CPU { CPU { registers : Registers :: new ( ) , flags : Flags :: new ( ) , pc : 0 , sp : 0 , bus : AddressBus :: new ( ) , halt : false , int : ( false , 0 ) , inte : false , out_callback : None , in_callback : None , debug : Debug :: new ( ) , slice_duration : 16 , slice_max_cycles : 35000 , slice_current_cycles : 0 , slice_start_time : SystemTime :: now ( ) , } }
Creates a new CPU instance and its 16 bits address bus.
Creates a new CPU instance and its 16 bits address bus .