Author Topic: Latest version of the 64 bit MASM help file and latest macro file.  (Read 1778 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6765
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
The help file is coming close to finished, I have almost all of the library modules and macros documented including a few new ones. The attached ZIP file has the latest help file and the most current macro file which the help file documents. A task of this type will never end as more stuff will always need to be added but this version should be useful to most.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6765
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Latest version of the 64 bit MASM help file and latest macro file.
« Reply #1 on: July 20, 2018, 01:35:30 PM »
I forgot to mangle a name in one of the new macros and it jumped up and bit me.  :P

Fixed version attached, replace the one above.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6765
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Latest version of the 64 bit MASM help file and latest macro file.
« Reply #2 on: July 20, 2018, 02:33:42 PM »
Here is a simple demo with a message loop.

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

msgloop proc

    USING r14, r15                              ; allocate local space for reg list
    LOCAL msg :MSG

    SaveRegs                                    ; save listed registers

    xor r15, r15                                ; zero r15
    mov r14, ptr$(msg)                          ; load msg structure address into r14
    jmp gmsg                                    ; jump directly to GetMessage()

  mloop:
    invoke TranslateMessage,r14
    invoke DispatchMessage,r14
  gmsg:
    test rax, rv(GetMessage,r14,r15,r15,r15)    ; loop until GetMessage returns zero
    jnz mloop

    RestoreRegs                                 ; restore listed registers

    ret

msgloop endp

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: