/// Initializes Register bank with zeros, program counter and flags
Initializes Register bank with zeros, program counter and flags
Initializes Register bank with zeros program counter and flags
pub fn new() -> RegisterBank {
        let registers = [0; 32];
        let program_counter = 0;
        let flags = Flags{carry: false, zero: false, neg: false, over: false,
                         sign: false, half: false, trans: false, int: false};
        let stack_pointer = 0;
        RegisterBank {registers, program_counter, stack_pointer, flags}
    }
pub fn new ( ) -> RegisterBank { let registers = [ 0 ; 32 ] ; let program_counter = 0 ; let flags = Flags { carry : false , zero : false , neg : false , over : false , sign : false , half : false , trans : false , int : false } ; let stack_pointer = 0 ; RegisterBank { registers , program_counter , stack_pointer , flags } }
Initializes Register bank with zeros, program counter and flags
Initializes Register bank with zeros program counter and flags