This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Syntax error using uvision2

Hi,


I have just started using your uvision2. I received your tool when I bought the phillips development system.

Here's my problem:

I am targeting a philips 764 controller, this is a 8051 compatible,
all code was written in assembly language.

When I go to build an existing file which used the 'b' register I get the following error

error A48: DATA-ADDRESS EXPECTED

the line of the code it is issuing this error for is below

clr b

Thanks,

John

Parents
  • WOW. I don't have a clue how I managed to do that. Here's what was in my reply message box when I clicked "Post".

    The CLR instruction only works for the accumulator, the carry flag, or any directly addressable bit. The accumulator is the only byte that can be cleared using this instruction. To clear register B you can use:

    MOV B,#0

    --Dan Henry

Reply
  • WOW. I don't have a clue how I managed to do that. Here's what was in my reply message box when I clicked "Post".

    The CLR instruction only works for the accumulator, the carry flag, or any directly addressable bit. The accumulator is the only byte that can be cleared using this instruction. To clear register B you can use:

    MOV B,#0

    --Dan Henry

Children