Hi all!
A very simple transformation of
@if/@else, etc apparently is working well.
mov rax, 5
mov value1, rax
@while rax gt 0
conout str$(rax),lf
mov rax, value1
sub rax, 1
mov value1, rax
@endw
conout "--------------",lf
mov rax, 0
mov value1, rax
@while rax le 7
conout str$(rax),lf
mov rax, value1
add rax, 1
mov value1, rax
@endw
To work with floating point numbers, macros requiere SmplMath. The examples attached are very simple and don't need that.
Most tests are needed, could be interesting to know failures.
Thanks in advance, HSE.
updates:
October 13, 2022, 10:49:27 AM -- flow.zip (7.62 kB - downloaded 3 times.)
-- missing a critical piece
October 14, 2022, 04:07:08 AM -- flow1.zip (7.85 kB - downloaded 19 times.)
-- added @break and nesting capacity