Hi All, I have the following code for a AT89s8252. When I compile it it gives more than 10 errors...
#include <REG52.h> org 0000h mov a,#0ffh end
"When I compile it it gives more than 10 errors..." I'm not surprised - it isn't 'C'. Stefan
What should I do if I need to include files in asm
You compile 'C' source with a compiler; You assemble assembly source with an assembler. Anyway, the assembler probably already has built-in definitions for standard SRFs & registers - hence the "already deefined" errors with the include file. You must either disable the built-in definitions (see the Manual), or remove the include file.
Thanx... Problem Solved.
Hi, The the to overcome this problem is to using the following
$NOMOD51 #include <AT898252.H> . . . END