This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

array pb

 a Assembly file
dis_buffer:  DS  (%END_ACQ_CHAP+1)*1024+(3*1024)   ;[1][1024]

 a C file
extern unsigned char xdata dis_buffer[8][1024];
.
.
.
dis_buffer[15][(5 * 15) + k] = (dis_buffer[15][k] & mask[(k % 15) % 3]);

I've such an array defined in a assemler module and I try to acces to the same array with the following assignment and compiler dont mention any error. Program built with succes.

I think there must be a problem but nothing happens not any error nor warning...

any help

Parents Reply Children
  • ""Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
    --Brian Kernighan

    That's why I say, "You need to break this down into steps so that you can actually see & check what's going on!"

    You may also need to turn the optimisation down - otherwise the compiler might just optimise it back to where you started!