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

Unfamaliar Syntax used with DPTR register

I have encountered an unfamiliar command
syntax from an old assembly listing:

MOV DPTR,#SFE (X_UDATA)
.
.
.
MOV DPTR,#SFB (X_UDATA)
.
.
.
RSEG X_UDATA

What is SFE and SFB trying to do and how
might I do the same with Keil syntax?

Parents
  • As likely as anything else, those are macros defined elsewhere in the source code.

    If I had to guess, I'd say they generate the names of labels positioned at the "E"nd and "Beginning" of the segment named in the argument to the macro.
    Might also be special functions predefined by the toolchain this code was originally written for that have the same effect.

Reply
  • As likely as anything else, those are macros defined elsewhere in the source code.

    If I had to guess, I'd say they generate the names of labels positioned at the "E"nd and "Beginning" of the segment named in the argument to the macro.
    Might also be special functions predefined by the toolchain this code was originally written for that have the same effect.

Children
No data