Jump to content

Escape Sequence


Recommended Posts

the "\xFF" escape sequence does not work, instead it produces 4 ascii chars

 

rom unsigned char *table = 
"\x4b\x48\x45\x41\x3e\x3b\x39\x36\x34\x31";

 

i am simulating:

 

rom unsigned short table[] = 
{
 123,
 456,
 789
}

 

by using a high byte table, and a low byte table. The only way i have found to place the table in ROM is to put it in a string.

Link to post
Share on other sites

frippe,

the "\xFF" escape sequence does not work, instead it produces 4 ascii chars
Correct.

 

Only decimal values can currently be used in this form, ie

rom unsigned char *table = "\123\10\5";

 

Regards

Dave

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...
×
×
  • Create New...