News:

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

MASM hex equivalents of the opcodes?

Started by Wally88, August 04, 2011, 09:45:26 AM

Previous topic - Next topic

Wally88

How can I find hex equivalents of opcodes like PUSH, MOV, etc?

qWord

hi,
there are different possibilities:
- take Intel's and AMD's documentation
- create an listing while assembling (/Fl)
- use a debugger or disassembler of you choice
FPU in a trice: SmplMath
It's that simple!

dedndave

there are numerous lists of opcodes
Hutch will be the second person to tell you to refer to the intel and/or amd manuals   :bg

for a quick reference....
\masm32\help\opcodes.chm

Wally88

Quote from: qWord on August 04, 2011, 09:51:54 AM
- create an listing while assembling (/Fl)

Can you explain this a bit more?  :o

dedndave

/FL is a command line switch for MASM (ML.EXE)
ml /c /Fl /coff MyProg.asm

the listing file will be extremely large, however
it lists all the included files (like windows.inc)
so, in the program, i turn off the listing, then turn it bak on after the includes
also, the default listing includes a cross-reference at the end - also large
you can turn that off, too

start your program like this....
        .XCREF
        .NOLIST
        INCLUDE    \masm32\include\masm32rt.inc
        .LIST


now that you have reduced the size, you can also add another switch for a more detailed listing...
ml /c /Fl /Sa /coff MyProg.asm

hutch--

Wally,

Tell us why you want opcode recognition, unless you are writing a compiler or a disassembler the capacity is almost no use to you unless you are manually modifying compiled binary code.

Important, don't try and feed us bullsh*t or the topic will be closed like a rocket.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

ToutEnMasm


A good start will be to read the source code of various assembler who are on the web.
I have see several of them,jwasm,....

dedndave

i dunno - i think we all wanted to see bits and bytes when we started out   :P

RuiLoureiro

Hutch--:
        >> Tell us why you want opcode recognition

           Who wants opcode recognition ? Is this a case ? Hummmm!
           If we want that we can follow qWord:- take Intel's and AMD's documentation


        >> ... closed like a rocket

            Please, dont close this forum, Hutch  :wink

RuiLoureiro

dedndave

first....
QuoteHow can I find hex equivalents of opcodes like PUSH, MOV, etc?

that is a pretty harmless question
we all want to see code in raw form at one time or another
debugging our own code is a good example
hell, i learned a lot by using DEBUG under DOS when i started out   :P

second....
QuoteWally88

correct me if i'm wrong, but that is not your typical "hacker-wanna-be" moniker   :lol
if he was "DarkWally", i'd be more suspicious   :8)