/// Increments program counter by 2, which is the size of an instruction.
Increments program counter by 2, which is the size of an instruction.
Increments program counter by 2 which is the size of an instruction .
pub fn increment_pc(&mut self, memory_bank: &MemoryBank) {
        self.program_counter += INSTRUCTION_SIZE;
        // If next instruction is `LDS` or `STS`, should skip 
        let next_instruction = memory_bank.get_program_word(self.program_counter);
        if next_instruction & LDS_STS_MASK == 0x9000 {
            self.program_counter += INSTRUCTION_SIZE;
        }
    }
pub fn increment_pc ( & mut self , memory_bank : & MemoryBank ) { self . program_counter += INSTRUCTION_SIZE ; // If next instruction is `LDS` or `STS`, should skip  let next_instruction = memory_bank . get_program_word ( self . program_counter ) ; if next_instruction & LDS_STS_MASK == 0x9000 { self . program_counter += INSTRUCTION_SIZE ; } }
Increments program counter by 2, which is the size of an instruction.
Increments program counter by 2 which is the size of an instruction .
&mut self
memory_bank
&MemoryBank