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 Reply Children
  • Just cos something's "working" doesn't mean to say that it's correct!

    It could be a pure fluke - maybe B just happens to only ever be set to 1 at that point in the code, so clearing bit 0 of B has the same effect as clearing B?

    Maybe the original programmer realised that only bit 0 was cleared, and was careful only ever to set set B to 0 or 1? Or maybe he was just plain lucky!?