hello,
I have to perform this calculation for huge number of data,
so I have to reduce number of assembly instruction as much as possible
here the code
MOV AR6,*XAR4++ ; AR6 = *array++
AND AR6,#0xFF ; AR6 = AR6 & 0xFF
XOR AL,AR6 ; crc ^= AR6
I have to XOR low byte of memory content at XAR4 address
so I move *XAR4 to AR6, mask high byte and subsequently XOR
because there is not this operand/code combination
XORB AL,*XAR4++
Has someone any Idea to reduce this code ?
thankyou