• Pointer conversion / arithmetic
    Hello, I am trying to create an address (memory model huge) by adding an offset to a base address: void test (unsigned short offset) { unsigned char *adr; adr = 0x120000 + (long) adr; } ...
  • Advice on Pointer arithmetic please?
    Could anyone enlighten me on pointer arithmetic please? Assigning a constant is fine, but a warning is generated when using a variable. (The code does do what I expect though.) The warning is :...
  • warning: integer operation result is out of range
    Hi, I get a lot of warnings when I try to compile my project. warning: integer operation result is out of range All these warnings are produced by the atmel register-header file provided...
  • Hexadecimal Arithmetic
    I want to carry out following Hexadecimal Arithmetic operation using C code Multiplication...................................... char A[2] = { 0x01, 0x02}; char B[2] = { 0x03, 0x04}; I want...
  • unexpected code
    There is simple code usRDelay(17); Comm_LineOut_Port=SendData.B.Bit02; usRDelay(17); Comm_LineOut_Port=SendData.B.Bit01; usRDelay(17); Comm_LineOut_Port=SendData.B.Bit00; usRDelay(17); Comm_LineOut_Port...