Menu

.for .endfor feature for JWasm

habran
2012-07-03
2013-04-20
  • habran

    habran - 2012-07-03

    Hi Japheth
    I am glad you are back
    while you were absent I implemented some features I wanted to have in JWasm
    I don't know if you are aware of that from masm32 forum because you did not say anything about it
    I have just finished .for, .endfor  feature and implemented it in v2.06e version
    I am satisfied how it works and if you are interested to implement it in v2.07 I would appreciate it
    It looks like that :
    .for ( hWnd=lParam,edx=88,ecx=4:eax != 24 && hWnd > lParam || ebx <= 20 || ebx >= 3:eax=23,edx=24,ebx++)
      nop
    .endfor
    ;forever loop
        .for (::)
    .break .if eax
       .endfor
    I am not interested to have any credits for that, I just wish to have them in JWasm because I think that it is a greatest assembler yet
    If you are interested I will send you a code for it

    best regards

     
  • japheth

    japheth - 2012-07-04

    Hello habran,

    > … if you are interested to implement it in v2.07

    v2.07 is in the "release candidate" state - that means, only regressions and SEVERE bugs will make me change the source.

    > .for ( hWnd=lParam,edx=88,ecx=4:eax != 24 && hWnd > lParam || ebx <= 20 || ebx >= 3:eax=23,edx=24,ebx++)

    the colon (':') is already an operator - I don't think that it should be "overloaded". If a segment override is needed:

      .for ( ss:var1=1 : ss:var1 < 24  : ss:var1++ )
    

    then you are in trouble.

    I also don't like additional C operators ( =, ++,  -, … ) in assembly - the ones already included in the hll directives (&&, ||, …) are rather "hackish". And what if you want to increment by 10 instead of 1?

     
  • habran

    habran - 2012-07-04

    hello Japheth

    1. IMO assembly programming is not for imbeciles, if we say that ':' is a delimiter than they should not use it differently

    2. if you looked at the source code here http://masm32.com/board/index.php?topic=402.0 you would be able to see
    that '++' and '-' are two out of 10 operators (+= -= &= |= *= /= << >>) E.G. eax+=10

    however, this is your baby and you can do what ever you decide it is right to do

    I wouldn't bother you with it if Vortex did not ask me to contact you

    sorry to bother you I know that you are busy

    best regards

     

Log in to post a comment.