The MASM Forum

Miscellaneous => Miscellaneous Projects => Topic started by: HSE on July 08, 2023, 06:52:12 AM

Title: @repeat/@until macros
Post by: HSE on July 08, 2023, 06:52:12 AM
Hi all!

Some new macro for flow control that work with ML64 and the others.

What is new is the @until macro, because @repeat is just @dothis (https://masm32.com/board/index.php?topic=10601.0).


    mov rax, 5
    mov value1, rax
    @repeat
        conout str$(rax),lf
       
        mov rax, value1
        sub rax, 1
        mov value1, rax
    @until rax le 0


Also there is a new modification of original conditions evaluations: now is only a set for all flow controls (@if/@endi (https://masm32.com/board/index.php?topic=8790.0)f, @while/@endw (https://masm32.com/board/index.php?topic=10431.0), @dothis/@whilethis (https://masm32.com/board/index.php?topic=10601.0) and @repeat/@until).

All flow controls are in the .zip. SmplMath is needed only for floating point comparisons.

Regards, HSE.
Title: Re: @repeat/@until macros
Post by: Biterider on July 08, 2023, 02:28:48 PM
Hi HSE
Thanks for the mew macros  :thumbsup:
I tested the binaries and they work well.


Biterider
Title: Re: @repeat/@until macros
Post by: HSE on July 10, 2023, 12:14:33 AM
Hi Biterider

Thanks  :thumbsup:

HSE