I got rid of the data abort message, it was due to a while(1) being cleared. It is valid in the actual code, but not for my testing.
My original example was simplified. My actual program statements are more complex, and I am having a difficult time with Braces in:
Code:
int x;
int y;
const int p[4][2] = {(1,2), (3,4), (5,6), (7,8)};
if (x >= p[0][0]) (y=p[0][1]);
else {if (x>=p[1][0]) (y=(p[1][1] * (1+(x/(p[1][0]-p[0][0])))));
else {if (x>=p[2][0]) (y=(p[2][1] * (1+(x/(p[2][0]-p[1][0])))));
else {if (x>=p[3][0]) (y=(p[3][1] * (1+(x/(p[3][0]-p[2][0])))));
else {if (x>=p[4][0]) (y=(p[4][1] * (1+(x/(p[4][0]-p[3][0])))));
else (x = 154)}}}};