Answer the question
In order to leave comments, you need to log in
`
What causes the "error: non-constant value given to `%assign'" error?
Why in this case does it swear at the macro call of the first % assign in the code?
segment .bss
array resw 128
segment .text
global main
main:
%assign a array
%rep 128
inc word [a]
%assign a a+2
%endrep
mov eax, 1
int 0x80
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question