hmmpic
Joined: 09 Mar 2010 Posts: 314 Location: Denmark
|
|
Posted: Thu Nov 18, 2010 2:15 pm |
|
|
Cant find a way out here. Need some help on this.
I want to "pack" the data in a struct in ROM!
Please look in the "list" file
For me the "Test1" & "Test2" look ok, but the rest look wrong.
Code: | ROM data:
007FDC: FA 7F 03 00 34 00 99 00 98 00 00 00 F4 7F 02 00
007FEC: 01 00 10 00 00 00 00 00
007FF4: 54 65 73 74 32 00
007FFA: 54 65 73 74 31 00
|
Code: |
/* typedefs */
typedef struct {
rom char *val1;
rom char *val2[5];
} KEY_COMMAND;
rom KEY_COMMAND KEYS[] = {
{/*T1*/
/*val1*/ "Test1",
/*val2*/ {3,0x34,0x99,0x98}
},
{/*T2*/
/*val1*/ "Test2",
/*val2*/ {2,0x01,0x10}
}
}; |
|
|