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
  • "hi, smartie ..."

    "be constructive and show us ..."

    New clues, thank you!

    If it walks like a duck and quacks like a duck, it could be a "qili" / "millwood" manifesting itself by a different name. It has been the case that if you totally ignore it, it will go away (well, on most occasions it's forced to leave by cognizant forum admin folk banning it into obscurity), but in one case I know of, ignoring the malfeasant was equally successful, although it did take some time for legitimate posters (and the malfeasant) to catch on.

Reply
  • "hi, smartie ..."

    "be constructive and show us ..."

    New clues, thank you!

    If it walks like a duck and quacks like a duck, it could be a "qili" / "millwood" manifesting itself by a different name. It has been the case that if you totally ignore it, it will go away (well, on most occasions it's forced to leave by cognizant forum admin folk banning it into obscurity), but in one case I know of, ignoring the malfeasant was equally successful, although it did take some time for legitimate posters (and the malfeasant) to catch on.

Children
No data