x86 - assembly lea: invalid effective address -


i'm getting kind of error:

beroset-p-637-invalid effective address

here's sample code block contains error line:

mov eax, 3 mov ebx, 0 lea ecx, [record + count*patient + firstname]          ;this 1 int 80h 

here variables code block above:

patient equ 37 firstname equ 0  count resb 1 record resb patient*5 

can't count variable used in multiplying patient?


i'm using nasm in x86 ubuntu 13

you can't multiply variable when computing address. have multiply count * patient separately , add in later.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -