flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > macro macro

Author
Thread Post new topic Reply to topic
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 09 Aug 2020, 02:10
Code:
macro redesign_macro [param] {
        common
        macro param
}
macro fix redesign_macro     

What is wrong? I know there is no comma after first argument, how to avoid it?
Post 09 Aug 2020, 02:10
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20414
Location: In your JS exploiting you and your system
revolution 09 Aug 2020, 04:02
Works for me.
Code:
1 passes, 0 bytes.    
Post 09 Aug 2020, 04:02
View user's profile Send private message Visit poster's website Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 09 Aug 2020, 05:09
This macro inside another macro
Code:
macro ....
        macro redesign_macro [param] \{
                \common
                macro param
        \}
}    

It argues with another macro we previously talked about
Code:
macro hb hash {
        local   ..hash,..length
        virtual at 0
            ..hash:: db `hash
            ..length = $/2
        end virtual
        while % <= ..length
                load b_1 byte from ..hash: (%-1)*2
                load b_2 byte from ..hash: (%-1)*2+1
                if b_1 > '9'
                        b_1 = b_1 - 'A' + 10
                else
                        b_1 = b_1 - '0'
                end if
                if b_2 > '9'
                        b_2 = b_2 - 'A' + 10
                else
                        b_2 = b_2 - '0'
                end if
                db b_1 shl 4 + b_2
        end while
}    

Says value is out of range
Code:
    hb 204850204663206042616E6431602048    
Post 09 Aug 2020, 05:09
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20414
Location: In your JS exploiting you and your system
revolution 09 Aug 2020, 05:14
We don't know what you are doing. Please post something we can compile without having to guess how it all goes together.
Post 09 Aug 2020, 05:14
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.