Hi
For some reason I am unable to write to PCL when simulating the most basic code in MPLAB.
Has this happened to anyone?
Anyone know what the problem is?
Example of code below, org @ 0x100 because I am using a bootloader.
;******Configuration*****************************
list p = 16f877a
include <p16f877a.inc>
;******Vectors***********************************
org 0x0100 ;reset vector address
goto Main
org 0x0110 ; start writing program from this address
;******Main Program******************************
Main
movlw 010h
addwf PCL,f
goto Main
end
Bookmarks