This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

inline assembly with C51 v3.20

On the manual of C51 v3.2, writing and using assembly functions are described and is working successfully.

However, there is no clue about the inline assembly on the manual. Does anybody know anything about inline assembly for v3.20?

I tried below but compiler issued error messages for these lines:

#pragma asm
CLR C
#pragma endasm

Errors:
*** WARNING 245 IN LINE 309 OF LCD.C: unknown #pragma, line ignored
*** ERROR 202 IN LINE 310 OF LCD.C: 'CLR': undefined identifier
*** ERROR 141 IN LINE 310 OF LCD.C: syntax error near 'C'
*** WARNING 245 IN LINE 311 OF LCD.C: unknown #pragma, line ignored