Dear all;
I tried to convert C code of an encryption algorithm called TEA to 8051 assembly code using Keil assembler.
I found some string code line like the one bellow .
the assembler called external function form C language.
Is this instruction correct or should I look what is this function do then convert the C function idea to 8051 assembly?
here is another example
the C code is
the assembly is
I tried to convert C code of an encryption algorithm called TEA to 8051 assembly code using Keil assembler.
I found some string code line like the one bellow .
Rich (BB code):
LCALL ?C?LLDOPTR
Is this instruction correct or should I look what is this function do then convert the C function idea to 8051 assembly?
here is another example
the C code is
Rich (BB code):
for (i=0; i < 32; i++)
Rich (BB code):
CLR A
MOV i?045+03H,A
MOV i?045+02H,A
MOV i?045+01H,A
MOV i?045,A
tea_encryption_32round:
CLR A
MOV R7,#020H ; 020h = 32 d
MOV R6,A
MOV R5,A
MOV R4,A
MOV R3,i?045+03H
MOV R2,i?045+02H
MOV R1,i?045+01H
MOV R0,i?045
CLR C
LCALL ?C?ULCMP
JC $ + 5H
LJMP ?C0002