Attached in the zip file is the latest macros64.inc file that has added a number of loop code macros. There is a HTM file that explains what they do and how they work (Documentation !!!!) and a working example of the 3 high level styles of loop code. This is the basic code in the demo.
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
include \masm32\include64\masm64rt.inc
.code
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
entry_point proc
LOCAL var1 :QWORD
LOCAL var2 :QWORD
LOCAL var3 :QWORD
LOCAL var4 :QWORD
waitkey "Press any key to see the new .do .loop technique"
mov var1, 10
mov var2, 50
; ---------------------------------
.do
conout str$(var1),lf
add var1, 1
.loop WHILE var1 LT var2
; ---------------------------------
waitkey "Press any key to see the new .rept .endr technique"
mov var1, 10
mov var2, 50
; ---------------------------------
.rept IF var1 LT var2
conout str$(var1),lf
add var1, 1
.endr
; ---------------------------------
waitkey "Press any key to see the new jump technique"
mov var1, 10
mov var2, 50
; ---------------------------------
lbl0:
conout str$(var1),lf
add var1, 1
jump lbl0 WHILE var1 LT var2
; ---------------------------------
waitkey
invoke ExitProcess,0
ret
entry_point endp
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
end