News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Opcodes in Hex

Started by n00b!, June 16, 2008, 12:20:39 PM

Previous topic - Next topic

n00b!

Hi, how can I look up what Opcode stands for what number?
And how the reverse?

e.g. what is 0xDB as instruction, and what instruction stands for 0x43031488?

Thanks in Advance!

hutch--

noob,

You need the Intel manuals for hex opcodes. Just to make things complicated many mnemonics have multiple opcodes depending on the data size and if its a load or store.


mov eax, mem
is a different opcode to
mov mem, eax
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

n00b!

Hmm :-/
Where do I get these?

cman

I was reading a section in a assembly book about instruction encoding and wondered how most assembly language programmers know to calculate by hand instruction lengths when using instructions like "loop" ( where the jmp destination must be within -128 to 127 bytes from the current location of the "loop" instruction. Do most programmers use manuals to look up hex codes and calculate jump length this way or is an estimation used. Something I've wondered! Thanks for any input!

hutch--

cman,

Most people make a good guess and if it falls over they change it.

noob, go to the Intel site and download the manuals there. There is a link at the top of the forum.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php