There is nothing more I can tell you that wouldn't amount to writing the code for you. If you can't take it from here then you have been set a task that you are not currently equipped to handle. The rest of the problem is really just applying the mask and shift I've already demonstrated to get at the individual op code fields, and then process the data.
I suggest you play for a while and generate some code of your own. If you are still struggling show us what you have written along with your input data (the sample data you showed already is very unlikely to be real) and the expected output, then describe how it doesn't work for you.
True laziness is hard work
|