flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > apply to EQU token f ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1878
Roman 01 Sep 2020, 06:51
I try this and work
Code:
a = 3
b = a+2
c = b*a +4
z1 EQU c
mov eax,z1  ;i get 19
    

I try this and this work too !
Code:
a = 3
b = a+2
c = b*a +4
z1 EQU c,a,b,24
zdt dd z1  ;i get 19,3,5,24
    


But how apply to z1 f ?
And get 19f its equal 19.0 float value
And get in MyDat dd z1f
Post 01 Sep 2020, 06:51
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20526
Location: In your JS exploiting you and your system
revolution 01 Sep 2020, 07:06
You can't mix preprocessor # with assembler =.

So this can't work:
Code:
a=1
z equ a,2
match vals,z {
        irp val,vals \{
                dd val\#f  ; error: undefined symbol 'af'
        \}
}    
Because the symbol 'a' is not defined when the '#' is processed.
Post 01 Sep 2020, 07:06
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.