Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/27/04 07:13
Read: times


 
#69283 - RE: Hack!?
Responding to: ???'s previous message
hi,
#define DPTR_ADDR 0x82
// ...
	unsigned int a;
	a = *((unsigned int *)DPTR_ADDR);

Have you actually compiled & tested this, or is it just an educated guess?

Andy, yes I did. Keil compiler produces next assembly code:
MOV      R0,#DPL(0x82)
MOV      A,@R0
MOV      0x08,A
INC      R0
MOV      A,@R0
MOV      0x09,A

That seems exactly what original poster asked for.

Regards,
Oleg

List of 22 messages in thread
TopicAuthorDate
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      

Back to Subject List