Jump to content

Indexing Arrays With Constant Pic18


Recommended Posts

Boostc18

 

This didnt work

	isr_ScanPatterns[0] = IO_SCAN_PATTERN_0;
isr_ScanPatterns[1] = IO_SCAN_PATTERN_1;
isr_ScanPatterns[2] = IO_SCAN_PATTERN_2;
isr_ScanPatterns[3] = IO_SCAN_PATTERN_3;

this did

	char index;
index = 0;

isr_ScanPatterns[index++] = IO_SCAN_PATTERN_0;
isr_ScanPatterns[index++] = IO_SCAN_PATTERN_1;
isr_ScanPatterns[index++] = IO_SCAN_PATTERN_2;
isr_ScanPatterns[index] = IO_SCAN_PATTERN_3;

 

The problem is fixed by turning off extended instructions in the config.

 

Is there a way to make the compilor aware of extended instructions or are they currently not implemented.?

Link to post
Share on other sites

Picxie,

 

Is there a way to make the compilor aware of extended instructions or are they currently not implemented.?
Extended instructions are currently not supported by the linker or compiler.

 

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...