Jump to content
Sign in to follow this  
wally

Enhanched Rom Data Declaration

Recommended Posts

Hallo,

do you think that will be difficult to have a different rom data declaration format?

 

This data could be threated like a string, but a more user friendly declaration is really needed.

 

I mean something like:

 

rom char* mystring = {
asm data 0x55, 0x21, 0x00, 0x45  //comment
asm data 0x15, 0x11, 0x10, 0x55  //comment
asm data 0x50, 0x21, 0x01, 0x45  //comment
asm data 0x33, 0x11
}

 

i know that is not a standard way of data declaration, it will be really usefull to add comments to tables rows.

 

Another way will be to find a way to link code.

 

I mean, if i work in c and i write:

 

char varA;
char varB;

char* str;
str=varA;
str[1] = 'c';

 

the 'c' value will be written in varB.

I know that this is not a really 'clean' programming method, but often it helps in saving time and code.

 

Boostc moves rom data to a different place to write his own table parser so doing something like i suggested is impossible.

What about a special tag to tell the compiler that the data must be keep together in a unique table?

 

I mean:

 

uniqueBlockTag{
rom char* string1="First string";  //comment
rom char* string2="Second string";  //comment
asm data 0x55, 0x21, 0x00, 0x45  //comment
asm data 0x15, 0x11, 0x10, 0x55  //comment
asm data 0x50, 0x21, 0x01, 0x45  //comment
asm data 0x33, 0x11
rom char* string1="Third string";  //comment
}

 

all this data should be placed in one unique table so we can access it using

 

char mychar = string1[n];

 

of coarse no code instructions must be inserted inside the table definition region since it is really a table.

 

Thank you for the attention,

 

Walter

Share this post


Link to post
Share on other sites

In the next release it will be possible to initialize a rom object with a list of numbers like:

 

rom char *data = { 10, 0x22, 33 };

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

That's fantastic!!!! :D:D

Have you got an idea about the release date?

 

Thank you for your hard work!

 

Walter

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...