lpcware

Add pointer

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by blasiis on Wed Jul 21 00:42:14 MST 2010
LPCXpresso with LPC1758

I have this sample code (0x00078000  + 0x00007F00 = 0x0007FF00):

  uint32_t *pnt, *a;
  pnt = (uint32_t *)SECTOR_29_START;
  a = (uint32_t *) (pnt + 0x00007F00);

At the end of this two line in debug the variable have this inccorect value
uint32_t * "pnt" = 0x00078000   
uint32_t * "a" = 0x00097c00   

What do  the calculation? ?

Thanks

Original Attachment has been moved to: 1100554_New%20Text%20Document.txt.zip

Original Attachment has been moved to: 1100554_New%20Text%20Document.txt.zip

Original Attachment has been moved to: 1100554_New%20Text%20Document.txt.zip

Original Attachment has been moved to: 1100554_New%20Text%20Document.txt.zip

Original Attachment has been moved to: 1100554_New%20Text%20Document.txt.zip

Original Attachment has been moved to: 1100554_New%20Text%20Document.txt.zip

Outcomes