??? 02/24/05 14:49 Modified: 02/24/05 15:06 Read: times |
#88341 - more on Keil asm Responding to: ???'s previous message |
Erik Malund said:
So, I would, almost, state that the fact that Keil include the "standard" '51 SFR defs is an error. Perhaps that's why all their derivative.inc files include all the original SFRs, so simply including them produces exactly 63 errors: 1 ;$nomod51 2 $include (reg52.inc) =1 3 ;---------------------------------------------------------------- =1 4 ; Copyright 1995-1996 KEIL Software, Inc. =1 5 ; 8052 Processor Declarations =1 6 ;---------------------------------------------------------------- =1 7 +1 $SAVE =1 11 P0 DATA 80H *** _________________________^ *** ERROR #11, LINE #11, ATTEMPT TO DEFINE AN ALREADY DEFINED SYMBOL =1 12 P1 DATA 90H *** _________________________^ *** ERROR #11, LINE #12, ATTEMPT TO DEFINE AN ALREADY DEFINED SYMBOL =1 13 P2 DATA 0A0H *** _________________________^ *** ERROR #11, LINE #13, ATTEMPT TO DEFINE AN ALREADY DEFINED SYMBOL =1 14 P3 DATA 0B0H *** _________________________^ *** ERROR #11, LINE #14, ATTEMPT TO DEFINE AN ALREADY DEFINED SYMBOL =1 15 PSW DATA 0D0H *** _________________________^ *** ERROR #11, LINE #15, ATTEMPT TO DEFINE AN ALREADY DEFINED SYMBOL =1 16 ACC DATA 0E0H *** _________________________^ *** ERROR #11, LINE #16, ATTEMPT TO DEFINE AN ALREADY DEFINED SYMBOL etc.You need to use first the $NOMOD51 directive (commented out in the above example), which basically makes a51 absolutely SFR-less. Jan Waclawek |
Topic | Author | Date |
Which Compiler supports Timer 2 | 01/01/70 00:00 | |
do by hands | 01/01/70 00:00 | |
Keil? | 01/01/70 00:00 | |
Alternative | 01/01/70 00:00 | |
indeed | 01/01/70 00:00 | |
Nothhing to do with Modern! | 01/01/70 00:00 | |
then maybe "user's friendly"? | 01/01/70 00:00 | |
(in)Convenience | 01/01/70 00:00 | |
right | 01/01/70 00:00 | |
Ah yes... | 01/01/70 00:00 | |
workaround? | 01/01/70 00:00 | |
Hands | 01/01/70 00:00 | |
*ALL* Compilers! | 01/01/70 00:00 | |
Re:Which Compiler | 01/01/70 00:00 | |
sure, but why - and it is risky | 01/01/70 00:00 | |
SFR | 01/01/70 00:00 | |
agreed | 01/01/70 00:00 | |
a plethora of derivatives | 01/01/70 00:00 | |
more on Keil asm | 01/01/70 00:00 | |
Keil - NOMOD51![]() | 01/01/70 00:00 | |
define it | 01/01/70 00:00 |