From: Gregory 'G. C. <ga...@cl...> - 2007-02-23 17:32:14
|
Well, that's perfect !!!! Thank you VERY much. I don't care the way it's done, only the result matters :) It's great to have people answering that fast, thanks again. Greg On Fri, 23 Feb 2007 12:15:48 -0500 Frank Kotler <fbk...@ve...> wrote: > Gregory 'GaLi' Cavelier wrote: > > Hello, > > > > I've got the following code : > [snip] > > Since Nasm's local labels don't work quite the same as Gas', I had to > break it into two parts - a macro, so I could use a "macro-local label", > and the "%rep" loop calling the macro. I think this does what you want, > although it may not be the way you want to do it... > > Best, > Frank > > %macro irq_entry 1 > align 4 > > %%lbl: > mov eax , esp > mov edx , %1 > SECTION .data > dd %%lbl > SECTION .text > %endm > > > SECTION .data > interrupt: > > SECTION .text > > irq_entries_start: > > %assign irq_nb 0 > %rep 4 > > irq_entry irq_nb > > %assign irq_nb irq_nb+1 > %endrep -- _ ASCII ribbon campaign ( ) - against HTML email X & vCards / \ |