File: _pic17c42.i

package info (click to toggle)
picasm 1.14-3
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 528 kB
  • ctags: 378
  • sloc: ansic: 4,481; asm: 150; makefile: 72
file content (47 lines) | stat: -rw-r--r-- 875 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
		opt nolist
;
; Device type definition for PIC17C42
;

__progmem_size		equ	2048
__data_eeprom_size	equ	0

__config		set	0xffff

		set_pic_type "PIC17C42", "16-bit-no-mul"

__do_config	macro	; keyword, value

		if streqcase("\1", "cp")
			if streqcase("\2", "no") | streqcase("\2", "off")
__config			set	__config | 0x0100
				exitm
			endif
			if streqcase("\2", "yes") | streqcase("\2", "on")
__config			set	__config & 0xfeff
				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