Ticket #26 (new defect)

Opened 4 years ago

Last modified 1 year ago

macros too limited

Reported by: vclaudepierre@tiscali.fr Assigned to: peter@tortall.net
Priority: P2 Milestone: 1.0.0
Component: Preprocessor: 'real' NASM Version: 0.3.0
Severity: normal Keywords:
Cc:

Description (Last modified by peter@tortall.net)

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

03/08/04 08:54:03 changed by vclaudepierre@tiscali.fr

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

10/15/04 17:27:22 changed by peter@tortall.net

  • description changed.
  • milestone changed from 0.4.0 to 1.0.0.

10/15/04 17:30:26 changed by peter@tortall.net

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

Add/Change #26 (macros too limited)