list p=12C508 ; list directive to define processor
#include <p12C508.inc> ; processor specific variable definitions
__CONFIG _MCLRE_ON & _CP_OFF & _WDT_OFF & _IntRC_OSC
;***** VARIABLE DEFINITIONS
temp EQU 0x07 ;example variable definition
;**********************************************************************
ORG 0x1FF ; processor reset vector
; Internal RC calibration value is placed at location 0x1FF by Microchip
; as a movlw k, where the k is a literal value.
ORG 0x000 ; coding begins here
movwf OSCCAL ; update register with factory cal value
start
nop ; example code
movlw 0x00
tris GPIO ;sets all pins to out put
movlw 0xFF ; makes them high
movwf GPIO ; leds on
END ; directive 'end of program'