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

Setting an address to be zero

Which of these set the address 0x0FFE000 to be equal to zero.

1) const int far zero _at_ 0x0FFE000 = 0;

2) const int far zero _at_ 0x0FFE000 = "0";

3) const int far zero _at_ 0x0FFE000 = '0';

If none of the above is the correct way, can anyone tell me how can i go about setting the address 0x0FFE000 to be at low(meaning zero) at all time..

Thanks...

Parents
  • None of the above - they are all invalid.
    See the syntax for _at_ in your C251 manual - it can't be used with initialisation!

    You will either need to use the Linker to put it at the required location, or do it in assembler.

    Search beack through this forum - it's been discussed a number of times in the not-too-distant past.

Reply
  • None of the above - they are all invalid.
    See the syntax for _at_ in your C251 manual - it can't be used with initialisation!

    You will either need to use the Linker to put it at the required location, or do it in assembler.

    Search beack through this forum - it's been discussed a number of times in the not-too-distant past.

Children