Hi !:)
If somebody one has the macro HLL for Fasm .while.endw, I would be happy to use them..
Thank you.
Friendly.......Gges
Posted on 2002-07-23 00:44:00 by Asmgges
Uhh... for what?
You can write this with a compare, a label and a jump:

Head controlled while:


@@:
cmp eax, myvar
jne @F
; code here
jmp @B
@@:



Foot controlled while (is it called "head"/"foot"-controlled? ;) )


@@:
;code here
cmp eax, myvar
jne @B
Posted on 2002-07-23 01:15:48 by bazik
is it called "head"/"foot"-controlled?
do-while :grin:
Posted on 2002-07-23 01:18:14 by stryker
Yes well on but my code source is also fast and more clear with the HLL especially por a program of game with many interweavings.
Privalov coded me macro .if .else .endif and it is very practical.
If it is possible to make also for .while and .endw it would be good.
Gges
Posted on 2002-07-23 02:04:15 by Asmgges
Asmgges, with if/then/else you can create while/do.
.while [i]condition[/i]


.wend
same as:
Label:

.if [i]condition[/i]

jmp Label
.endif
In the old days we didn't have .while/.wend :tongue:
The 'foot' method is left as an exercise for the reader...
Posted on 2002-07-23 07:13:45 by bitRAKE
Yes it is good like that
Many beginners are frightened with the pure coding asm
They come from the other languages and return somewhere else, they abandon the assembler, too much pressed to understand and to learn.
To find familiar instructions continue them in interesser
Thank you bitrake :)
Posted on 2002-07-23 07:30:53 by Asmgges
This is the latest version of hll_if.inc file. It allows the .while - .endw and .repeat - .until (what you called "foot-controlled") in addition to .if - .elseif - .else - .endif
Posted on 2002-08-19 05:01:53 by Tomasz Grysztar
Hi !:)
Thank Tomasz.
I am going to make a good use of it...
Friendly......Gges
Posted on 2002-08-19 07:26:01 by Asmgges