please help me with assembly error A2049: Illegal use of register

Discussion in 'Assembly Language Programming (ALP) Forum' started by beginnermoj, May 29, 2010.

  1. beginnermoj

    beginnermoj New Member

    Joined:
    May 29, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice