Click here to Skip to main content
14,448,978 members
Rate this:
Please Sign up or sign in to vote.
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
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.

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100