Kod: Markera allt
list p=16f767 ; list directive to define processor
#include <p16f767.inc> ; processor specific variable definitions
org h'0000'
nop
nop
goto Main
org h'00FB'
Main
nop ;FB
nop ;FC
nop ;FD
nop ;FE
nop ;FF
nop ;00
nop ;01
nop
nop
inf goto inf
END
Kod: Markera allt
list p=16f767 ; list directive to define processor
#include <p16f767.inc> ; processor specific variable definitions
org h'0000'
nop
nop
goto Main
org h'00FB'
Main
MOVLW d'4' ;FB
; INCF PCLATH ;FC
ADDWF PCL,F ;FD
nop ;FE
nop ;FF
nop ;00
nop ;01
nop ;...
nop
nop
nop
inf goto inf
END
Hur funkar det i det första fallet då PCLen går från 00FF till 0100 utan att ändra PCLATCH? En bugg i MPLAB?