Download requires a table of opcodes.
The fundamental structure of the search data is trie, however the table will be good enough if you care about speed.
To get the basic type of opcode, start by matching the table.
There are several ways to store registrar arguments; however, there are enough special cases that require most of them to be completed individually.
Since this is educational, take a look at ndisasm.
Joshua May 29 '09 at 4:02 a.m. 2009-05-29 04:02
source share