opt nolist
;
; Device type definition for PIC17C756
;

__progmem_size		equ	16384
__data_eeprom_size	equ	0

__config		set	0xffff

		set_pic_type "PIC17C756", "16-bit"

__do_config	macro	; keyword, value

		if streqcase("\1", "boden")| streqcase("\1", "bod")
			if streqcase("\2", "no") | streqcase("\2", "off")
__config			set	__config & 0xbfff
				exitm
			endif
			if streqcase("\2", "yes") | streqcase("\2", "on")
__config			set	__config | 0x4000
				exitm
			endif
		endif

		if streqcase("\1", "osc")
			if streqcase("\2", "lf")
__config			set	(__config & 0xfffc) | 0x0000
				exitm
			endif
			if streqcase("\2", "rc")
__config			set	(__config & 0xfffc) | 0x0001
				exitm
			endif
			if streqcase("\2", "xt")
__config			set	(__config & 0xfffc) | 0x0002
				exitm
			endif
			if streqcase("\2", "ec")
__config			set	(__config & 0xfffc) | 0x0003
				exitm
			endif
		endif

		endm

		opt list


syntax highlighted by Code2HTML, v. 0.9.1