I'm completely confused about ORG "command", or "directive", or as you call it.
What is it for?
How many times it's needed in a source?
How does it differ among pic 16f84 and 16f628?
For example, what does such a program mean??
Code:
org 0x0000
goto INIT
NOP
NOP
NOP
NOP
org 0x0005
INIT MOVLW H'07'
MOVWF CMCON
CLRF PORTA
CLRF PORTB
BSF STATUS,RP0 ;Select Bank 1
CLRF TRISA ;Port A is output
CLRF TRISB ;Port B is output
BCF STATUS,RP0 ;Select Bank 0
If 0x0000 is address of first executed statement, why do I need a GOTO after it, and why is it used ORG 0x0005 after?!?