Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,

I am implementing a custom made rule in FXCop as a part of an assignment. Now, I know that we can compare opcodes to know the basic functioning of the code behind covers.

But, how do I figure out the target instruction for a particular opcode (in case of if statements and loops)

I would explain my question using an example. For the opcode
C#
Bge
we have the functioning as Transfers control to a target instruction if the first value is greater than or equal to the second value.

How do I check this target instruction, if I have to run another check against it... Is there a command I don't know, or can I do it manually. Please help.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900