This file is indexed.

/usr/share/sdcc/include/pic16/pic16devices.txt is in sdcc-libraries 2.9.0-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
#
# Specification of devices supported by the PIC16 target of the
# Small Devices C Compiler (SDCC).
#
# Lines starting with a hash '#' are ignored.
# A new device specification must begin with a 'name' command.
# Numbers can be given in any way acceptable for scanf's %d,
# i.e., octal (0[0-7]*), decimal ([1-9][0-9]*), or hexadecimal
# (0[xX][0-9a-fA-F]+).
# Strings must not be quoted and may not contain whitespace!
#
# Valid commands are:
# name <name>
#       Begin specification of device type <name>, e.g. 18f6720.
#       Aliases 'p<name>' and 'pic<name>' will be recognized as well.
# using <name>
#       Import specification from the named entry, which must be defined
#       earlier. Later commands overrule imported ones.
# ramsize <size>
#       This device has <size> bytes of RAM.
# split <offset>
#       Addresses below <offset> refer to bank 0, addresses above <offset>
#       refer to SFRs in bank 15 for references via the access bank.
# configrange <first> <last>
#       Configuration registers occupy addresses <first> to <last> (both
#       included).
# configword <address> <mask> <value> [<and-mask>]
#       The config word at address <address> only implements the bits
#       indicated via <mask> (all others will be forced to 0 by the
#       compiler).
#       Unless overridden in C code, use the given default <value>.
#       The optional <and-mask> will be applied to the value just before
#       emitting it into the .asm file (used to disable XINST by default).
# idlocrange <first> <last>
#       ID locations occupy addresses <first> to <last> (both included).
# idword <address> <value>
#       Unless overridden in C code, use the given default <value>.
#

name        18f1220
ramsize     256
split       0x80
configrange 0x300001 0x30000d
configword  0x300001 0xcf 0xff
configword  0x300002 0x0f 0xff
configword  0x300003 0x1f 0xff
configword  0x300005 0x80 0xff
configword  0x300006 0x85 0xff
configword  0x300008 0x03 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x03 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x03 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f1320
using       18f1220


name        18f2220
ramsize     512
split       0x80
configrange 0x300001 0x30000d
configword  0x300001 0xcf 0xff
configword  0x300002 0x0f 0xff
configword  0x300003 0x1f 0xff
configword  0x300005 0x83 0xff
configword  0x300006 0x85 0xff
configword  0x300008 0x0f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f2221
ramsize     512
split       0x80
configrange 0x300001 0x30000d
configword  0x300001 0xcf 0x37
configword  0x300002 0x1f 0xff
configword  0x300003 0x1f 0xff
configword  0x300005 0x87 0xfb
configword  0x300006 0xf5 0x8f 0xbf
configword  0x300008 0x03 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x03 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x03 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f2320
using       18f2220


name        18f2321
using       18f2221


name        18f2331
ramsize     768
split       0x60
configrange 0x300001 0x30000d
configword  0x300001 0xcf 0xff
configword  0x300002 0x0f 0xff
configword  0x300003 0x3f 0xff
configword  0x300004 0x3c 0xff
configword  0x300005 0x9d 0xff
configword  0x300006 0x85 0xff
configword  0x300008 0x0f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f23k20
ramsize     512
split       0x60
configrange 0x300001 0x30000d
configword  0x300001 0xcf 0x37
configword  0x300002 0x1f 0xff
configword  0x300003 0x1f 0xff
configword  0x300005 0x8f 0xfb
configword  0x300006 0xc5 0xbf 0xbf
configword  0x300008 0x0f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f2410
ramsize     768
split       0x80
configrange 0x300001 0x30000d
configword  0x300001 0xcf 0x37
configword  0x300002 0x1f 0xff
configword  0x300003 0x1f 0xfb
configword  0x300005 0x87 0xfb
configword  0x300006 0xc5 0xbf 0xbf
configword  0x300008 0x0f 0xff
configword  0x300009 0x40 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0x60 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f242
ramsize     768
split       0x80
configrange 0x300001 0x30000d
configword  0x300001 0x27 0xff
configword  0x300002 0x0f 0xff
configword  0x300003 0x0f 0xff
configword  0x300005 0x01 0xff
configword  0x300006 0x85 0xff
configword  0x300008 0x0f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f2420
ramsize     768
split       0x80
configrange 0x300001 0x30000d
configword  0x300001 0xcf 0x07
configword  0x300002 0x1f 0xff
configword  0x300003 0x1f 0xff
configword  0x300005 0x87 0xfb
configword  0x300006 0xc5 0xbf 0xbf
configword  0x300008 0x0f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f2423
ramsize     768
split       0x80
configrange 0x300001 0x30000d
configword  0x300001 0xcf 0x07
configword  0x300002 0x1f 0xff
configword  0x300003 0x1f 0xff
configword  0x300005 0x87 0xfb
configword  0x300006 0xc5 0xbf 0xbf
configword  0x300008 0x0f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f2431
using       18f2331


name        18f2450
# 0x200..0x3FF is not implemented, but we leave that to the linker ;-)
ramsize     0x500
split       0x60
configrange 0x300000 0x30000d
configword  0x300000 0x3f 0xc7
configword  0x300001 0xcf 0x37
configword  0x300002 0x3f 0xdf
configword  0x300003 0x1f 0xff
configword  0x300005 0x86 0xfb
configword  0x300006 0xed 0x97 0xbf
configword  0x300008 0x03 0xff
configword  0x300009 0x40 0xff
configword  0x30000a 0x03 0xff
configword  0x30000b 0x60 0xff
configword  0x30000c 0x03 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007

name        18f2455
ramsize     2048
split       0x60
configrange 0x300000 0x30000d
configword  0x300000 0x3f 0xc0
configword  0x300001 0xcf 0x35
configword  0x300002 0x3f 0xdf
configword  0x300003 0x1f 0xff
configword  0x300005 0x87 0xfb
configword  0x300006 0xe5 0x9f 0xbf
configword  0x300008 0x0f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f248
ramsize     768
split       0x60
configrange 0x300001 0x30000d
configword  0x300001 0x27 0xff
configword  0x300002 0x0f 0xff
configword  0x300003 0x0f 0xff
configword  0x300006 0x85 0xff
configword  0x300008 0x0f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f2480
ramsize     768
split       0x60
configrange 0x300001 0x30000d
configword  0x300001 0xcf 0x37
configword  0x300002 0x1f 0xff
configword  0x300003 0x1f 0xff
configword  0x300005 0x86 0xfb
configword  0x300006 0xd5 0xaf 0xbf
configword  0x300008 0x0f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f24j10
ramsize     1024
split       0x80
configrange 0x300000 0x300005
configword  0x300000 0xe1 0xff
configword  0x300001 0x04 0xf7
configword  0x300002 0xc7 0xff
configword  0x300003 0x0f 0xff
configword  0x300005 0x01 0xff
idlocrange  0x200000 0x200007


name        18f24k20
using       18f23k20
ramsize     768


name        18f2510
using       18f2410
ramsize     1536


name        18f2515
using       18f2410
ramsize     4096


name        18f252
using       18f242
ramsize     1536


name        18f2520
using       18f2420
ramsize     1536


name        18f2523
using       18f2423
ramsize     1536


name        18f2525
ramsize     4096
split       0x80
configrange 0x300001 0x30000d
configword  0x300001 0xcf 0x37
configword  0x300002 0x1f 0xff
configword  0x300003 0x1f 0xff
configword  0x300005 0x87 0xfb
configword  0x300006 0xc5 0xbf 0xbf
configword  0x300008 0x0f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f2550
using       18f2455


name        18f258
using       18f248
ramsize     1536


name        18f2580
using       18f2480
ramsize     1536


name        18f2585
ramsize     4096
split       0x60
configrange 0x300001 0x30000d
configword  0x300001 0xcf 0x37
configword  0x300002 0x1f 0xff
configword  0x300003 0x1f 0xff
configword  0x300005 0x86 0xfb
configword  0x300006 0xf5 0x8f 0xbf
configword  0x300008 0x0f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f25j10
using       18f24j10


name        18f25k20
using       18f23k20
ramsize     1536


name        18f2610
using       18f2410
ramsize     4096


name        18f2620
using       18f2525


name        18f2680
using       18f2585


name        18f2682
ramsize     4096
split       0x60
configrange 0x300001 0x30000d
configword  0x300001 0xcf 0x37
configword  0x300002 0x1f 0xff
configword  0x300003 0x1f 0xff
configword  0x300005 0x86 0xfb
configword  0x300006 0xf5 0x8f 0xbf
configword  0x300008 0x3f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x3f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x3f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f2685
using       18f2682


name        18f26k20
using       18f23k20
ramsize     3936


name        18f4220
using       18f2220


name        18f4221
using       18f2221


name        18f4320
using       18f2220


name        18f4321
using       18f2221


name        18f4331
using       18f2331


name        18f43k20
using       18f23k20


name        18f4410
using       18f2410
ramsize     768


name        18f442
using       18f242


name        18f4420
using       18f2420


name        18f4423
using       18f2423


name        18f4431
using       18f2331


name        18f4450
using       18f2450

name        18f4455
using       18f2455


name        18f448
using       18f248


name        18f4480
using       18f2480


name        18f44j10
using       18f24j10


name        18f44k20
using       18f23k20
ramsize     768


name        18f4510
using       18f2410
ramsize     1536


name        18f4515
using       18f2410
ramsize     4096


name        18f452
using       18f242
ramsize     1536


name        18f4520
using       18f2420
ramsize     1536


name        18f4523
using       18f2423
ramsize     1536

name        18f4525
using       18f2525


name        18f4550
using       18f2455


name        18f458
using       18f248
ramsize     1536


name        18f4580
using       18f2480
ramsize     1536


name        18f4585
using       18f2585


name        18f45j10
using       18f24j10


name        18f45k20
using       18f23k20
ramsize     1536


name        18f4610
using       18f2410
ramsize     4096


name        18f4620
using       18f2525


name        18f4680
using       18f2585


name        18f4682
using       18f2682


name        18f4685
using       18f2682


name        18f46k20
using       18f23k20
ramsize     3936


name        18f6520
ramsize     2048
split       0x60
configrange 0x300001 0x30000d
configword  0x300001 0x27 0xff
configword  0x300002 0x0f 0xff
configword  0x300003 0x0f 0xff
configword  0x300004 0x83 0xff
configword  0x300005 0x03 0xff
configword  0x300006 0x85 0xff
configword  0x300008 0xff 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0xff 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0xff 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f6585
ramsize     3328
split       0x60
configrange 0x300001 0x30000d
configword  0x300001 0x2f 0xff
configword  0x300002 0x0f 0xff
configword  0x300003 0x1f 0xff
configword  0x300004 0x83 0xff
configword  0x300005 0x83 0xff
configword  0x300006 0x85 0xff
configword  0x300008 0x0f 0xff
configword  0x300009 0xc0 0xff
configword  0x30000a 0x0f 0xff
configword  0x30000b 0xe0 0xff
configword  0x30000c 0x0f 0xff
configword  0x30000d 0x40 0xff
idlocrange  0x200000 0x200007


name        18f65j50
ramsize     3904
split       0x60
configrange 0x7ff8 0x7ffd
configword  0x7ff8 0xef 0xff 0xbf
configword  0x7ff9 0x07 0xff
configword  0x7ffa 0xc7 0xff
configword  0x7ffb 0x0f 0xff
configword  0x7ffc 0xf8 0xff
configword  0x7ffd 0x0f 0xff


name        18f6620
using       18f6520
ramsize     3840


name        18f6680
using       18f6585

name        18f66j50
ramsize     3904
split       0x60
configrange 0xfff8 0xfffd
configword  0xfff8 0xef 0xff 0xbf
configword  0xfff9 0x07 0xff
configword  0xfffa 0xc7 0xff
configword  0xfffb 0x0f 0xff
configword  0xfffc 0xf8 0xff
configword  0xfffd 0x0f 0xff


name        18f66j55
ramsize     3904
split       0x60
configrange 0x17ff8 0x17ffd
configword  0x17ff8 0xef 0xff 0xbf
configword  0x17ff9 0x07 0xff
configword  0x17ffa 0xc7 0xff
configword  0x17ffb 0x0f 0xff
configword  0x17ffc 0xf8 0xff
configword  0x17ffd 0x0f 0xff


name        18f6720
using       18f6520
ramsize     3840


name        18f67j50
ramsize     3904
split       0x60
configrange 0x1fff8 0x1fffd
configword  0x1fff8 0xef 0xff 0xbf
configword  0x1fff9 0x07 0xff
configword  0x1fffa 0xc7 0xff
configword  0x1fffb 0x0f 0xff
configword  0x1fffc 0xf8 0xff
configword  0x1fffd 0x0f 0xff


name        18f8520
using       18f6520


name        18f8585
using       18f6585


name        18f8620
using       18f6520
ramsize     3840


name        18f8680
using       18f6585


name        18f8720
using       18f6520
ramsize     3840


name        18f66j60
ramsize     4096
split       0x60
configrange 0xfff8 0xfffd
configword  0xfff8 0xc1 0xff
configword  0xfff9 0x04 0xf7
configword  0xfffa 0xc7 0xff
configword  0xfffb 0x0f 0xff
configword  0xfffc 0xf8 0xff
configword  0xfffd 0x07 0xff


name        18f66j65
ramsize     4096
split       0x60
configrange 0x17ff8 0x17ffd
configword  0x17ff8 0xc1 0xff
configword  0x17ff9 0x04 0xf7
configword  0x17ffa 0xc7 0xff
configword  0x17ffb 0x0f 0xff
configword  0x17ffc 0xf8 0xff
configword  0x17ffd 0x07 0xff


name        18f67j60
ramsize     4096
split       0x60
configrange 0x1fff8 0x1fffd
configword  0x1fff8 0xc1 0xff
configword  0x1fff9 0x04 0xf7
configword  0x1fffa 0xc7 0xff
configword  0x1fffb 0x0f 0xff
configword  0x1fffc 0xf8 0xff
configword  0x1fffd 0x07 0xff


name        18f85j50
using       18f65j50


name        18f86j50
using       18f66j50


name        18f86j55
using       18f66j55


name        18f86j60
using       18f66j60


name        18f86j65
using       18f66j65


name        18f87j50
using       18f67j50


name        18f87j60
using       18f67j60


name        18f96j60
using       18f66j60


name        18f96j65
using       18f66j65


name        18f97j60
using       18f67j60