??? 04/26/04 07:45 Read: times |
#69188 - DO NOT access DPTR using C ! Responding to: ???'s previous message |
Michael is right: in choosing to use 'C', you have given the compiler a free rein to use the processor registers however and whenever it chooses.
While it is undoubtedly possible to access the DPTR directly in Raisonance 'C', it is certainly a Bad Thing: either it will not contain the value you are hoping for, so your code won't work, or you will entirely mess up what the compiler was doing with it - or both! As Michael also said, If you really do have some application in which it really is essential that you have direct control of the DPTR (I can't think of one), then you will have to write an assembler routine for it. See also: http://www.8052.com/forum/read.phtml?id=68927 |
Topic | Author | Date |
how to access DPTR using Ride c | 01/01/70 00:00 | |
RE: how to access DPTR using Ride c | 01/01/70 00:00 | |
DO NOT access DPTR using C ! | 01/01/70 00:00 | |
RE: how to access DPTR using Ride c | 01/01/70 00:00 | |
RTFM! | 01/01/70 00:00 | |
RE: how to access DPTR using Ride c | 01/01/70 00:00 | |
RE: Hack!? | 01/01/70 00:00 | |
RE: Hack!? | 01/01/70 00:00 | |
RE: Hack!? | 01/01/70 00:00 | |
Just ignore me - Im talking rubbish! | 01/01/70 00:00 | |
Hello ALL THANK YOU | 01/01/70 00:00 | |
RE: Hack!? | 01/01/70 00:00 | |
RE: Oops, many people - many suggestions | 01/01/70 00:00 | |
RE: Hack!?Oleg | 01/01/70 00:00 | |
RE: Hack!?Oleg | 01/01/70 00:00 | |
RE: THE LESSON OF IT ALL!!!!!!!! | 01/01/70 00:00 | |
RE: THE LESSON OF IT ALL!!!!!!!! | 01/01/70 00:00 | |
RE: THE LESSON OF IT ALL!!!!!!!! | 01/01/70 00:00 | |
RE: Atmel - Why??!! | 01/01/70 00:00 | |
THANK YOU ALL | 01/01/70 00:00 | |
RE: THANK YOU ALL | 01/01/70 00:00 | |
RE: THANK YOU ALL![]() | 01/01/70 00:00 |