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

Asscess Code address

I am using the P89c51rd2's IAP function the store the data to the code space at
0xff00 ~ 0xffd0

for example, i want to call the data at oxff00

how can i do it in C51?

can i use pointer?

please help and many thx!

Parents Reply Children
  • looking at the other reference cited earlier, it seems to me like the 0xFF00 is a sort of API call, requiring certain data to be set up in certain locations as "parameters" to the call - a bit like the old MS-DOS INT 21 "calls".
    I'm not sure that you could guarantee this by just casting C:0xFF00 as a function pointer? (the API may well not correspond to the C51 calling convention?)

  • The way the original post is worded is confusing. ...to "call" "data'. My reference is to call "code" - perhaps some self-modifying code that never gets old.

    The Keil macros in ABSACC.h (CBYTE,CWORD) provide easy access to "read" "data" in "code" space.