Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   please help me with assembly error A2049: Illegal use of register (http://www.go4expert.com/forums/help-assembly-error-a2049-illegal-t22250/)

beginnermoj 30May2010 01:47

please help me with assembly error A2049: Illegal use of register
 
when I use the instruction "lea dx,bp+variable" in my assembly program, when compiling I get the following error:
error A2049: Illegal use of register

this is a section of my program:
pop bp
sub bp,107h
mov ah,4eh
lea dx,bp+file_inf ;this is the line that I have error
mov cx,0000h
int 21h

what can I do to solve this error? please some one help me!


All times are GMT +5.5. The time now is 21:16.