News:

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

Main Menu

MASM64 grammar reference

Started by Player1UK, May 30, 2021, 12:11:27 AM

Previous topic - Next topic

Player1UK

I've created a complete grammar reference document for MASM64:
https://onedrive.live.com/view.aspx?ithint=file,pdf&resid=2C18DFD7C47CC9A7%21622&authkey=%21AAPQgLTI4FlEL04

Any corrections would be greatly appreciated.
Creating the first visual programming environment to develop software.

hutch--

Looks like you have done a lot of work there.  :thup:

Player1UK

Thank you (and thank you for all your hard work, I started out learning assembly language using masm32 way back in 2000).

I posted a link because the document itself is continuously being updated, whilst I'm using it to create a visual development environment.

The next big change will be the gradual inclusion of all the 64-bit mnemonics.
Creating the first visual programming environment to develop software.

hutch--

The mnemonic list will be appreciated by many people. One suggestion, try and bundle them as families as scouring through the Intel manuals is hard work for folks who are not used to them.

Player1UK

x86-64 Instruction Set reference:
https://onedrive.live.com/view.aspx?ithint=file,pdf&resid=2C18DFD7C47CC9A7%21624&authkey=%21ANTJqFkX5v3hdno

This contains all the general-purpose 64-bit instructions, excluding Cache, FPU, SIMD (MMX, SSE, AVX), FMA, and BMI instructions.
I have a separate document for Cache instructions, and a much larger (471 pages) document for all the 64-bit FPU MMX SSE AVX FMA BMI instructions.
Creating the first visual programming environment to develop software.

ahsat


jj2007

Try this one (open with WordPad, MS Word or RichMasm)

ahsat

Quote from: jj2007 on April 08, 2024, 11:05:28 AMTry this one (open with WordPad, MS Word or RichMasm)

I will, thank you.

ahsat

Quote from: jj2007 on April 08, 2024, 11:05:28 AMTry this one (open with WordPad, MS Word or RichMasm)

When I try to unzip the file I get "need PK compat. v6.3 (can do v2.1)" from command line unzip. I can't remember when or where I got my zip/unzip from. I get the below if I just execute unzip. I will try to find a newer version later this morning. This is the first time I have had a problem with this one.

UnZip 5.51 of 22 May 2004, by Info-ZIP.  Maintained by C. Spieler.  Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
  Default action is to extract files in list, except those in xlist, to exdir;
  file[.zip] may be a wildcard.  -Z => ZipInfo mode ("unzip -Z" for usage).

  -p  extract files to pipe, no messages     -l  list files (short format)
  -f  freshen existing files, create none    -t  test compressed archive data
  -u  update files, create if necessary      -z  display archive comment
  -x  exclude files that follow (in xlist)   -d  extract files into exdir

modifiers:                                   -q  quiet mode (-qq => quieter)
  -n  never overwrite existing files         -a  auto-convert any text files
  -o  overwrite files WITHOUT prompting      -aa treat ALL files as text
  -j  junk paths (do not make directories)   -v  be verbose/print version info
  -C  match filenames case-insensitively     -L  make (some) names lowercase
  -$  label removables (-$$ => fixed disks)  -V  retain VMS version numbers
  -X  restore ACLs (-XX => use privileges)   -s  spaces in filenames => '_'
                                             -M  pipe through "more" pager
Examples (see unzip.txt for more info):
  unzip data1 -x joe   => extract all files except joe from zipfile data1.zip
  unzip -fo foo ReadMe => quietly replace existing ReadMe if archive file newer

ahsat

Quote from: jj2007 on April 08, 2024, 11:05:28 AMTry this one (open with WordPad, MS Word or RichMasm)
Sorry about that. Until just now, I didn't know that 7z would also unzip.

None of the links in the document seem to be valid anymore.

jj2007

Quote from: ahsat on April 08, 2024, 11:48:06 PMNone of the links in the document seem to be valid anymore.

Strange. For me, they work:

These are all SSE2 - for other versions, see Streaming SIMD Extensions (SSE2), SSE3 and SSE4, x86 complete 2014
SOF: What are the best instruction sequences to generate vector constants on the fly? (packuswb pabsb psubb packsswb pmovzx...)
About Instruction Sets

ahsat

Quote from: jj2007 on April 09, 2024, 12:09:34 AMFor me, they work:
Thank you. The links in your post work fine. In the document, when I click on a line, or copy and past the url, I have problem. The very first link is:

http://developer.intel.com/products/processor/manuals/index.htm

You can try it, and you may see what I am seeing.

zedd151

Try this https://www.intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html

Googling the link in your post, led me there, ahsat
Going to that link from your post, --> Page not found error

ahsat

Quote from: sudoku on April 09, 2024, 05:24:23 AMTry this
Thank you. That is a large amount of documentation, more than I am use to. Hide a book in a library, type of documentation, it seems at a glance.

zedd151

Quote from: ahsat on April 09, 2024, 07:42:14 AM... Hide a book in a library, type of documentation, it seems at a glance.
Definitely.