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

store data in C lang..

Hi everyone,

I've some problem storing the data in register on C lang. My SBUF was stored with some data and i want to view what data was inside. I want to store my SBUF value into R0 but i not sure how to write the code in C lang.

I know that in asembly lang, it was MOV R0, #01H<<<<<example

Can anyone help me on this? Thanks alot

Parents
  • I want to store my SBUF value into R0 but i not sure how to write the code in C lang.

    Why would you want to do this? Whatever you are trying to do, I am certain there are better ways of doing it.
    To answer the actual question: in general its impossible.

Reply
  • I want to store my SBUF value into R0 but i not sure how to write the code in C lang.

    Why would you want to do this? Whatever you are trying to do, I am certain there are better ways of doing it.
    To answer the actual question: in general its impossible.

Children
No data