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

accessing registers

how can i obtain the current values of registers like accumulator,B,stack pointer,PSW,DPTR,etc in C??
i am currently working on a trainer/development kit for 8051..One of the commands to be executed is R<CR> Once this command is executed,the values of all the registers like A,B,SP,PSW,DPH,DPL,R0,R1,R7 should be displayed on screen...how do i retrieve these register values in C?

Parents
  • this appear out of synch in the thread
    it is a reoply to
    RE: pedantrt failure
    Ashley Madison
    "Do you really think that's a sensible use of anyone's time?"

    hi, smartie, rather than wasting everyone's time on how this will not work, why don't you put down on a piece of paper an approach that will work?

    be constructive and show us how smart you really are.

    hi, smartie, rather than commenting on peoples replies
    be constructive and show us how smart you really are

    sorry Andy, if you thought it directed at you

    Erik

Reply
  • this appear out of synch in the thread
    it is a reoply to
    RE: pedantrt failure
    Ashley Madison
    "Do you really think that's a sensible use of anyone's time?"

    hi, smartie, rather than wasting everyone's time on how this will not work, why don't you put down on a piece of paper an approach that will work?

    be constructive and show us how smart you really are.

    hi, smartie, rather than commenting on peoples replies
    be constructive and show us how smart you really are

    sorry Andy, if you thought it directed at you

    Erik

Children
No data