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?
http://www.keil.com/support/docs/601.htm
Why go through all the effort to do it in C, when you could do it in assembly so much faster.
Just inline the code in your C file, and treat it like a C function
"tammy, ..."
Ashley/qili/millwood/fdan00 ("f-dan", cute), you're not being transparent enough.
Bzzzzzt. Step up your game, change names, and try again.
Thanks for playing though.
"I'm not "zueisti"."
tammy, no one accused you of being zueisti.
and there are tons of things that you aren't and you don't need to enumerate them for us.
thank you.
<QUOTE>I'm not "zueisti".</QUOTE>
of course meant zeusti
Always yo're freind
Zeusti.
Stop it right now!
Ashely,
I'm not "zueisti". Really. You made your point about Erik, me and others. Well done.
Erik,
You are usually so much more helpful. Let's stop this discussion before it derails any further...
"I should have said "more likely more likely suffering from a mental handicap""
have you considered taking a class in curing your uncontrollable and habitual stuttering?
more likely schizophrenic I should have said "more likely more likely suffering from a mental handicap"
Erik
so you think we should have asked
1) re "we": I did not know you were royalty, ah... more likely schizophrenic 2) re the reply: I did not comment on what you "should" have asked, I commented on you not applying what you constantly pester this forum with to yourself.
"that zeusti is really tamir?
you get your knickers into a gordian knot when somebody uses "is" instead of "most likely" so, what you criticise for miles of posts when somebody does it does not apply to yourself."
'that zeusti most likely really tamir?' instead?
have you considered participating in a show called "are you smarter than a 5th grader?"
on a lucky day, you may win it.
"Ironic"
that zeusti is really tamir?
you get your knickers into a gordian knot when somebody uses "is" instead of "most likely" so, what you criticise for miles of posts when somebody does it does not apply to yourself.
PRACTICE WHAT YOU PREACH
PS you are absolutotally wrong
<QUOTE>that zeusti is really tamir?</QUOTE>
sir, you insult me.
please refrain or i will insist on retribution.
<QUOTE>zeusti can adaptively change his skill level to match the occasion</QUOTE>
zeusti writes at a level which he thinks matches that of the recipient.
watch out hands-broken bonkers!
Adieu to you.
My sincerest apologies - "sniff" it is !
Our friend zeusti writes excellent english with perfect spelling sometimes. Sometimes not. So we either have zeusti plus zeusti two, or zeusti can adaptively change his skill level to match the occasion.
View all questions in Keil forum