getting an Illegal Instruction error
Hi, I have a two dimensional array of characters that I am separating into a one dimensional array. That one dimensional array is broken down into 5 sets of character arrays. I'm trying to assign multiple one dimensional arrays to the same part of the two dimensional array, it complies but when i got to run it it throws me an "Illegal Instruction" error. An excerpt of the code can be seen below:
h is incremented each time through a loop
Code:
opcode[0]=str1[h][0];
opcode[1]=str1[h][1];
opcode[2]=str1[h][2];
opcode[3]=str1[h][3];
opcode[4]=str1[h][4];
opcode[5]=str1[h][5];
opcode[6] = '\0';
rs[0]=str1[h][6];
rs[1]=str1[h][7];
rs[2]=str1[h][8];
rs[3]=str1[h][9];
rs[4]=str1[h][10];
rs[5]= '\0';
rt[0]=str1[h][11];
rt[1]=str1[h][12];
rt[2]=str1[h][13];
rt[3]=str1[h][14];
rt[4]=str1[h][15];
rt[5]='\0';
//Second set of one dimensional arrays
opcodeD[0]=str1[h][0];
opcodeD[1]=str1[h][1];
opcodeD[2]=str1[h][2];
opcodeD[3]=str1[h][3];
opcodeD[4]=str1[h][4];
opcodeD[5]=str1[h][5];
opcodeD[6]='\0';
rsD[0]=str1[h][6];
rsD[1]=str1[h][7];
rsD[2]=str1[h][8];
rsD[3]=str1[h][9];
rsD[4]=str1[h][10];
rsD[5]='\0';
rtD[0]=str1[h][11];
rtD[1]=str1[h][12];
rtD[2]=str1[h][13];
rtD[3]=str1[h][14];
rtD[4]=str1[h][15];
rtD[5]='\0';
mind you that the size of the program is 1344 lines long, I'm not sure if this has anything to do with it.