 <p>Try using <a href="https://www.hex-rays.com/products/ida/support/idapython_docs/idc-module.html#PatchByte" rel="nofollow"><code>PatchByte</code></a> (or <a href="https://www.hex-rays.com/products/ida/support/idapython_docs/idaapi-module.html#patch_byte" rel="nofollow"><code>idaapi.patch_byte</code></a>). Then you should see the correct value with <code>idaapi.get_byte</code>. There are equivalent patch functions for words, dwords, and even variable-length buffers.</p> <p>(Note that this requires you to know the exact byte encoding of the instruction you want to change)</p>