Author Topic: List of all the instructions made available by the MASM macro assembler  (Read 2293 times)

ToanBao122

  • Regular Member
  • *
  • Posts: 9
Hi everyone, do you know any references where I could find all the instructions/operators, directives, reserved words, that are made available by the MASM macro assembler? Specifically, it points out if an instruction is of type x86(or macro, or directive) and whether or not those instructions are signed or unsigned. Thank you!

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8491
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: List of all the instructions made available by the MASM macro assembler
« Reply #1 on: October 26, 2020, 12:53:34 AM »
Your best choice for Intel mnemonics is the Intel manuals, they are hard going until you get the swing of them but they are the real McCoy in terms of technical data. 32 bit MASM can do just about all of them as long as you are using a recent version of 32 bit MASM.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

TouEnMasm

  • Member
  • *****
  • Posts: 1805
    • EditMasm
Re: List of all the instructions made available by the MASM macro assembler
« Reply #2 on: October 26, 2020, 02:18:40 AM »

For MASM there is old but always usefull doc http://luce.yves.pagesperso-orange.fr/masmguide.zip
For instructions,see Intel manual or AMD Manual.
Fa is a musical note to play with CL

jj2007

  • Member
  • *****
  • Posts: 11550
  • Assembler is fun ;-)
    • MasmBasic

Vortex

  • Member
  • *****
  • Posts: 2583
Re: List of all the instructions made available by the MASM macro assembler
« Reply #4 on: October 26, 2020, 06:58:47 AM »
Hi ToanBao122,

Also, you can check the manuals coming with the Masm32 package, they are in the \masm32\help folder.


ToanBao122

  • Regular Member
  • *
  • Posts: 9
Re: List of all the instructions made available by the MASM macro assembler
« Reply #5 on: October 26, 2020, 07:27:40 AM »
Do you know when an instruction is signed or unsigned?

jj2007

  • Member
  • *****
  • Posts: 11550
  • Assembler is fun ;-)
    • MasmBasic
Re: List of all the instructions made available by the MASM macro assembler
« Reply #6 on: October 26, 2020, 08:20:41 AM »
Instructions are not signed or unsigned. Some instructions set flags (including the Sign? flag), and based on the flags the j?? instructions behave differently.

mineiro

  • Member
  • ****
  • Posts: 721
Re: List of all the instructions made available by the MASM macro assembler
« Reply #7 on: October 26, 2020, 08:55:51 AM »
hello sir ToanBao122;
first, you need check your own processor and deal with that, first is ego. After, try compatibility, others.
You can take all processor instructions from manuals of processor designers; so, intel, amd, others, ... . This does not means that your assembler supports all of that, ... .
When you change from the ground, this will make more sense.
If you're talking of pc computers, check intel board too, amd board too , ..., you can even see persons sugesting new instructions that after can be concrete, ... .
I'd rather be this ambulant metamorphosis than to have that old opinion about everything

mineiro

  • Member
  • ****
  • Posts: 721
Re: List of all the instructions made available by the MASM macro assembler
« Reply #8 on: October 26, 2020, 09:21:39 AM »
If you have a 1 bit processor, so that implies that's unsigned.
If you have a 2 bit processor, that implies thats can be unsigned or signed.
As you can perceive, we need 1 bit that tell us if thats signed or unsigned.
Your questions means about flags, this is whats instructions do when dealing in that context.
You can also forgot about signed and do things by hands, so you need deal with signals, range by hands.
Signed means reserve one bit to me in this range, so I can check left most bit in that range that and do some actions.
I prefer think in unsigned everytime.
Signed things use a logic thas was forgoteen(ignored) for a long time until come in scene, 2 complement, or if you prefer, reserve one bit in that range to sign. Not like this because involves boolean logic, but in easy words, "not that and add one". This "add one"(arithmetic) is logic too, so, only logic.
I'd rather be this ambulant metamorphosis than to have that old opinion about everything

LiaoMi

  • Member
  • ****
  • Posts: 922
Re: List of all the instructions made available by the MASM macro assembler
« Reply #9 on: October 26, 2020, 11:12:19 AM »
Hi everyone, do you know any references where I could find all the instructions/operators, directives, reserved words, that are made available by the MASM macro assembler? Specifically, it points out if an instruction is of type x86(or macro, or directive) and whether or not those instructions are signed or unsigned. Thank you!

Hi ToanBao122,

everything you need is here
https://docs.microsoft.com/en-us/cpp/assembler/masm/microsoft-macro-assembler-reference?view=vs-2019
https://software.intel.com/content/dam/develop/public/us/en/documents/325462-sdm-vol-1-2abcd-3abcd.pdf

DebugBSD

  • Regular Member
  • *
  • Posts: 40
Re: List of all the instructions made available by the MASM macro assembler
« Reply #10 on: November 01, 2020, 10:30:03 PM »
Hi everyone, do you know any references where I could find all the instructions/operators, directives, reserved words, that are made available by the MASM macro assembler? Specifically, it points out if an instruction is of type x86(or macro, or directive) and whether or not those instructions are signed or unsigned. Thank you!

In my case, I use this: https://www.felixcloutier.com/x86/
It's a webpage based on the PDF manuals from Intel.

The good thing about this is that, you could configure your favourite IDE so when you press F1 on one of the instructions,  the IDE goes to the web site with something like: https://www.felixcloutier.com/x86/<instruction>

Example: https://www.felixcloutier.com/x86/movaps

I use it a lot in my IDE and it's quite useful.

Have a nice day
Guille!
Happy Hacking!

jj2007

  • Member
  • *****
  • Posts: 11550
  • Assembler is fun ;-)
    • MasmBasic
Re: List of all the instructions made available by the MASM macro assembler
« Reply #11 on: November 01, 2020, 10:52:06 PM »
My F1 key is configured for Win32.hlp, but if I select e.g. movups and go to the help menu, I see some milliseconds later the help file posted here.

jj2007

  • Member
  • *****
  • Posts: 11550
  • Assembler is fun ;-)
    • MasmBasic
Re: List of all the instructions made available by the MASM macro assembler
« Reply #12 on: November 01, 2020, 10:56:09 PM »
And when I type e.g. sub*-- in the find box, I get this selection. Most people will never need such detail, though.

DebugBSD

  • Regular Member
  • *
  • Posts: 40
Re: List of all the instructions made available by the MASM macro assembler
« Reply #13 on: November 01, 2020, 10:58:19 PM »
My F1 key is configured for Win32.hlp, but if I select e.g. movups and go to the help menu, I see some milliseconds later the help file posted here.

That's amazing jj!
Happy Hacking!

jj2007

  • Member
  • *****
  • Posts: 11550
  • Assembler is fun ;-)
    • MasmBasic
Re: List of all the instructions made available by the MASM macro assembler
« Reply #14 on: November 01, 2020, 11:05:54 PM »
No, it's necessary :greensml: