vmt / udis86

Disassembler Library for x86 and x86-64
http://udis86.sourceforge.net
BSD 2-Clause "Simplified" License
1.01k stars 295 forks source link

Primary opcode #112

Open Maktm opened 8 years ago

Maktm commented 8 years ago

Is there a way to access the primary code in the latest available version? I know that the field has been deprecated (though not removed) and that I can use ud_insn_mnemonic (returns an enum) but I'd like to access the primary opcode as a value. Is there a workaround for this?

n1tehawk commented 8 years ago

See also: #103. The workaround you're looking for is to simply revert part of the commit that is linked there, i.e. restore the assignment in decode_opcode().

Regards, NiteHawk