From: Frank K. <fbk...@ve...> - 2007-02-23 17:16:45
|
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 |