Jump to content
Sign in to follow this  
zdenek

Trouble array

Recommended Posts

char x[5];

long a,b;

 

void main (void)

{

a = b - x[0];

nop ();

}

 

compiler message:failed

 

char x[5];

long a,b;

 

void main (void)

{

a = b + x[0];

nop ();

}

 

compiler message : OK

 

What is trouble ?  

PicAnt v.4.6

 

Thanks      Zdenek

Share this post


Link to post
Share on other sites
Guest Pavel

This topic is most appropriate in the "Bug Reports" forum. I will leave this one here but in the future similar messages will be moved to more appropriate places.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites
Guest Pavel
How does one know if a problem is a bug, or a characteristic, or a mis-understanding of how to use the tool?

There are no formal rules (at least I don't know any) just common sence. Subjective rules may sound something like: if a feature is implemented but doesn't work as it should this is a bug, if a feature is not implemented but good to have this is an enhancement request.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

I think the rules for posting maybe unclear.

 

At first a questioned is asked as particular behaviour may be a bug or just a users miss-understanding.

 

I would be confused by this. :)

 

Regards

 

Dave Hobknob

Share this post


Link to post
Share on other sites

I tried it out in 4.6.3e and got the following error:

 

One of the 16-bit expressions is too complicated

 

The only way I could find to work around it was:

 

char x[5],c;
long a,b;

void main (void)
{
  c = x[0];
  a = b - c;
  nop ();
}

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