News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Syntax

Started by Pebble, July 23, 2012, 11:01:22 AM

Previous topic - Next topic

Pebble

 I want to learn Assmbly language on Windows 7, But every assembler i try i am unable to locate any information on what mnemonics are available and the syntax for them.
Is there any assembler available that comes with this information??

raymond

QuoteBut every assembler i try ....

If you download and install the MASM32 package, and use the QEditor, look under the Help tab and go to the Opcodes Help. That will give you a listing of the mnemonics. Then click on any mnemonic of your choice and it will give you a full description of its usage.
Whenever you assume something, you risk being wrong half the time.
https://masm32.com/masmcode/rayfil/index.html

NoCforMe

#2
No assembler "comes with" any documentation. First of all, they (for the most part, and certainly MASM, the one we all use here) are command-line programs, not Windows GUI programs. They're just .exe (executable) programs that do their thing (assemble/link your code), then exit back to the command processor.

What you need is a copy of the MASM Programmer's Guide. It's available online (for example, at this site); unfortunately, all I could find in a quick search was this copy, where each chapter is a separate PDF file, which is kind of a pain in the ass. But the entire manual is there if you download it (I printed out my copy years ago, as it's a lot easier looking things up in a paper copy, believe it or not).

Oh, I guess when you say "mnemonic", you mean the processor opcodes. It's true that they're in the MASM editor's help file (I sometimes use that myself). But you might want to look at the MASM Reference Guide (specifically, Chapter 4, Processor). That explains all the microprocessor instructions (opcodes).

hutch--

Pebble,

By far the best reference for Intel mnemonics is the Intel manuals, they range from architecture to an exhaustive mnemonic list and some reasonably sophisticated optimisation data. The old MASM manual will get you the very basic stuff but its far out of date where the Intel manuals are current.

The help file from the MASM32 editor will give you the basic Intel mnemonics but you will need to Intel manuals for the later and more complicated ones.

Pebble

I currently have Microsoft Visual Studio 2010, And my system is an i7. I've read a bit about assembly and 64-bit look's like the way to go. Have you got a link to where i can download or buy the Intel manual/s Hutch?
I had a look on the Intel site, But to get a complete list with syntax seem's impossible :(

qWord

MREAL macros - when you need floating point arithmetic while assembling!

mywan

I am on windows 7 64 bit and just learning assembly with MASM. Writing in 32 bit also. Admittedly the the help files are are more beastly than the language, but they are there in the package. Some other resources you may find useful listed below.
http://msdn.microsoft.com/en-us/library/afzk3475(v=vs.71)
http://en.wikibooks.org/wiki/X86_Assembly/Control_Flow
http://web.sau.edu/LillisKevinM/csci240/masmdocs/index.htm#MASM%20Reference%20Guide
A first read:
http://www.webalice.it/jj2006/Masm32_Tips_Tricks_and_Traps.htm

There are more if you haven't got much experience with the windows API. However, dealing with API calls in MASM has proved, at least for me, far easier than most other higher level languages.

Gunther

Hi Pebble,

above are a lot of reasonable sources to read and study. If you're a bit more familiar with the entire stuff and you want to squeeze out the last timer tick, you could also check Mark Larson's excellent site: http://www.mark.masmcode.com/

Gunther
You have to know the facts before you can distort them.