forgie
- 5th September 2005, 17:09
Hi all, more macro questions for those who have (and are willing to exercise) the knowledge in the macro/asm department.
I want to be able to pass an array as an argument to a macro - in other words I want to pass the address of said macro.
@ MyMacro MyArray MyIndex
@MyMacro macro array index
?
What code would I need to copy MyArray[MyIndex] into a local variable?
When you call a macro like above, what gets passed to the macro itself, the address of MyArray, the first element of MyArray, or what?
I want to be able to pass an array as an argument to a macro - in other words I want to pass the address of said macro.
@ MyMacro MyArray MyIndex
@MyMacro macro array index
?
What code would I need to copy MyArray[MyIndex] into a local variable?
When you call a macro like above, what gets passed to the macro itself, the address of MyArray, the first element of MyArray, or what?