??? 01/29/07 22:55 Read: times |
#131685 - Not this bit Responding to: ???'s previous message |
Asif Ali said:
ORG 0000H LJMP MAIN ORG 0030H RS EQU P3.7 RW EQU P3.5 EN EQU P3.4 MAIN: LCALL DELAY Mike Stegmaier said:
First, I don't know which compiler you are using It's not a Compiler at all; it's Assembler - which makes it all the more important to state which one you're using! Secondly, I would remove LJMP MAIN, or else the equates might not apply. No - not at all. LJMP MAIN is an instruction for the processor to execute; equates are purely for the information of the Assembler itself. The LJMP will not cause the Assembler to skip the equates and, because they do not generate any executable code, the processor has nothing to "skip". Also, just removing the LJMP MAIN would leave the code to go running through the interrupt vectors... |