i need to make an assembly programmer to calculate pascal triangle . so that every line of pascal triangle stored in memory place separate from other line i want to make one but i have no idea how to do it in assembly using macro .
macro take an number and allocate that number of dword in memory
i did a try but i don't know if it is the correct way to do it
%macro Malloc 2
%2 : resd %1
%endmacro
i want to know 2 thing :
first i want the second arg ( %2 ) to have a string name automatically for example
first line name :"line1" and next line to be "line2" "line3" ... and so on so i don't need to put my self ?
second thing is this is a good idea to use macro in this case ?