flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Operator `

Author
Thread Post new topic Reply to topic
felsario



Joined: 30 Dec 2013
Posts: 4
felsario 10 Sep 2014, 20:27
Hi all ! =)

code:
Code:
format pe gui 

macro mov a, b {
    mov a, b
    display 'mov '#`a#', '#`b, 13
}

mov eax, 1488
mov eax, ecx
mov ebx, dword[$]      ; <- error
    


result:
Quote:

flat assembler version 1.71.21 (1048576 kilobytes memory)
mov eax, 1488
mov eax, ecx
mov ebx, dword

C:\Users\***\***\mov.asm [10]:
mov ebx, dword[$] ; <- error
C:\Users\***\***\mov.asm [5] mov [2]:
display 'mov '#`a#', '#`b, 13
error: extra characters on line.




Why is that?
Post 10 Sep 2014, 20:27
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20339
Location: In your JS exploiting you and your system
revolution 10 Sep 2014, 23:55
You can "fix" that with and irps:
Code:
macro x a {
        irps b,a \{
                display \`b
        \} 
}
x dword[$]    
Post 10 Sep 2014, 23:55
View user's profile Send private message Visit poster's website Reply with quote
felsario



Joined: 30 Dec 2013
Posts: 4
felsario 11 Sep 2014, 06:33
revolution wrote:
You can "fix" that with and irps:
Code:
macro x a {
        irps b,a \{
                display \`b
        \} 
}
x dword[$]    


Thank you very much!
Post 11 Sep 2014, 06:33
View user's profile Send private message 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.