CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

making a menu structure

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
hmmpic



Joined: 09 Mar 2010
Posts: 314
Location: Denmark

View user's profile Send private message

making a menu structure
PostPosted: Thu Nov 18, 2010 1:30 pm     Reply with quote

EDIT removed, look down

Last edited by hmmpic on Fri Nov 19, 2010 7:27 am; edited 1 time in total
hmmpic



Joined: 09 Mar 2010
Posts: 314
Location: Denmark

View user's profile Send private message

PostPosted: Thu Nov 18, 2010 2:15 pm     Reply with quote

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}
 }
};
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group