#26 (macros too limited) – The Yasm Modular Assembler Project

Ticket #26 (new defect)

Opened 5 years ago

Last modified 22 months ago

macros too limited

Reported by: vclaudepierre@… Owned by: peter@…
Priority: P2 Milestone: 1.0.0
Component: Preprocessor: 'real' NASM Version: 0.3.0
Severity: normal Keywords:
Cc:

Description (last modified by peter@…) (diff)

You cannot concatenate macro arguments like this :

%assign x 0
%rep 8
movd eax,mm(value of x)
push eax
%assign x x+1
%rep

I tried with {, %, %%, labels... I cannot succeed.

Bill's asm can do it and so it is *very* powerful.
I wrote lots of macros with that feature.
Why not invent a %# (or a %< or an extension of %%...) to give yasm real macro 
power...

Attachments

Change History

comment:1 Changed 5 years ago by vclaudepierre@…

It's all right : I found a way to write it, with alternate macros.
Not the easier, but acceptable.

comment:2 Changed 4 years ago by peter@…

  • description modified (diff)
  • milestone changed from 0.4.0 to 1.0.0

comment:3 Changed 4 years ago by peter@…

  • component changed from Parser: NASM-compatible to Preprocessor: 'real' NASM

Add/Change #26 (macros too limited)

Author



Action
as new
 
Note: See TracTickets for help on using tickets.