Author Topic: Latest macro and help files update August 8.  (Read 1909 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8727
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Latest macro and help files update August 8.
« on: August 08, 2018, 12:12:38 PM »
Recent additions are two extra "if" notation techniques, both able to handle memory operands and designed for higher level code. A new technique for preserving and restoring registers has also been added to make preserving 64 bit registers easy and reliable. The files included in the attached ZIP file are,

    macros64.inc
    MasmHelp.exe
    vasily.inc


New .If block.

    .If var1 eq var2
      conout "Variables are equal",lf
    .ElseIf var1 gt var2
      conout "Variable 1 is greater than variable 2",lf
    .Else
      conout "Nothing to do here",lf
    .EndIf


New single line .IF

.IF var1 eq var2 GOTO label


New register preservation technique

USING r12, r13, r14, r15
......
SaveRegs
; your code
RestoreRegs
ret
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: