flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > match for addition 3 or more components |
Author |
|
revolution 09 Jun 2017, 08:39
You can use irp and irps to iterate through arguments. Although with your syntax it might be tricky to separate the correct terms. You might want to consider changing the syntax, maybe like:
sum S,C,D That would be easier to parse with a combination match and irp Code: macro sum result,[values] { common irp v,values \{ mov eax,[v] ;... \} mov [result],eax } Code: macro sum result,[value] { forward mov eax,[value] ;... common mov [result],eax } |
|||
09 Jun 2017, 08:39 |
|
adele 09 Jun 2017, 09:11
Yeah, I've thought about irps but I need to keep syntax
But thank you for help |
|||
09 Jun 2017, 09:11 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.