debugging problem
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2004-07-22 8:12 PM
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2004-07-21 12:07 AM
Posted on July 21, 2004 at 09:07I wrote a program as this : void main(void) { int i; int array[10]; for (i=0; i array[i] = i+1; while (1); } when I watch the variable 'array' in the while loop, the displayed data in the watch window is shift, like this: array [0x2000FA74] [0] 0x00000002 [1] 0x00000003 [2] 0x00000004 [3] 0x00000005 [4] 0x00000006 [5] 0x00000007 [6] 0x00000008 [7] 0x00000009 [8] 0x0000000A [9] 0xE59FF018 the value at [0x2000FA70] is 0x00000001 if I look at the dsm code, the start address of 'array' is [0x2000FA70], not [0x2000FA74]. any one know what's going on with this ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2004-07-21 1:51 AM
Posted on July 21, 2004 at 10:51
Attached is all the project.
thanks !! ________________ Attachments : signal.rar : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtCh&d=%2Fa%2F0X0000000aKG%2FyJVgqS7zTqts2p4L6pPvcWSl1R7JyVcNLY0m09KqWCg&asPdf=false