The MASM Forum

Microsoft 64 bit MASM => MASM64 SDK => Topic started by: hutch-- on August 08, 2018, 12:12:38 PM

Title: Latest macro and help files update August 8.
Post by: hutch-- 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