Skip to content

Processor execution of current pcode instruction should return Option due to noop instructions #181

@mnemonikr

Description

@mnemonikr

pub fn current_instruction(&self) -> &PcodeInstruction {
&self.pcode.instructions[self.index]
}

This can fail for noop instructions. Should make this return an Option so it's more clear that this edge case needs to be handled by the caller.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions