assembly mov command
Posted: 21 Aug 2015 18:25
Hello,
The compiler (3.6.0) generate invalid expression (34 348 Assembler instruction 'mov A, Temp1' was not found ) for "mov A, Temp1"
char fonksiyon(char Temp)
{
char temp1;
temp1=Temp;
asm {
push Acc (no error)
mov A,#0 (no error)
mov A, Temp1 (error)
..
..
pop Acc
}
any advise, there is a "mov" command in 8051 but why compiler generate error ?
The compiler (3.6.0) generate invalid expression (34 348 Assembler instruction 'mov A, Temp1' was not found ) for "mov A, Temp1"
char fonksiyon(char Temp)
{
char temp1;
temp1=Temp;
asm {
push Acc (no error)
mov A,#0 (no error)
mov A, Temp1 (error)
..
..
pop Acc
}
any advise, there is a "mov" command in 8051 but why compiler generate error ?