Skip to content

Decode Trap code? #314

Answered by wtfsck
wolfoops asked this question in Q&A
Jul 18, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Have a look at Instruction:flow_control() and FlowControl enum variants UnconditionalBranch, IndirectBranch, Return, Exception and maybe Interrupt. If it's one of them, the next instruction isn't necessarily code, could be data, so you should either stop disassembling or continue from the target (if it's UnconditionalBranch, see Instruction:near_branch_target())

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wolfoops
Comment options

Answer selected by wtfsck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #313 on July 19, 2022 15:35.