• A simple problem with atomic instructions
    Hi I am using this code in my program: _inline void Local_Clear( U8 StackerID ) { U8 idata idx; idx = StackerID-3; _atomic_(0); TxSpiBuff[idx] &= 0x0fff; TxSpiBuff[idx] |= 0x3000; _endatomic_...
  • Accessing and manipulating external variable
    hai all, i am doing small programs for how do we accessing and manipulating external variable data from assembler file(A51 file). i have declared one external variable in another file like extern...
  • Manipulating Standard Libraries (C51S.LIB)
    So I want to replace a standard function in the C51S library. Shouldn't be too hard, right? I rewrote the function (?C?LMUL to be specific) in assembly and compiled it using the A51 assembler. (processes...
  • Array and Long manipulations
    Hi everyone, I have an array eg: command[9] = {0x3C , 0x4A , 0x33 , 0x25 , 0xB1 , 0xD3 , 0x59 , 0x34 , 0x2E } the last 4 byte is the value (in hex) that I need to manipulate, let say increment...
  • how to manipulate values at the ports
    can i manipulate the values at the port pins individually,, i.e., if i want the 6th pin of port0 to be high, can i assign 1 to that particular pin, without disturbing the other port pin values??...