1		ifndef	__regs12zinc	; avoid multiple inclusion
2__regs12zinc	equ	1
3
4		save
5		listing	off		; no listing over this file
6
7;****************************************************************************
8;*                                                                          *
9;*   AS 1.42 - File REGS12Z.INC                                             *
10;*                                                                          *
11;*   Contains SFR and Bit Definitions for AVR Processors                    *
12;*                                                                          *
13;****************************************************************************
14
15;----------------------------------------------------------------------------
16; Bits with the name as given in the datasheets contain the plain bit
17; position within the register; with the prefix _bit_..., they hold
18; register and bit position
19
20s12zbit		macro   {intlabel},reg,pos
21__LABEL__	defbit.ATTRIBUTE	reg,pos
22		endm
23
24s12zfld		macro	{intlabel},reg,widthandstart
25__LABEL__	defbitfield.ATTRIBUTE	reg,widthandstart
26		endm
27
28;----------------------------------------------------------------------------
29; include proper CPU-specific register definitions
30
31		if	MOMPASS=1
32		  message "NXP S12Z SFR Definitions (C) 2018 Alfred Arnold"
33		endif
34
35		switch	MOMCPUNAME
36
37		case "S912ZVC19F0MKH"
38		  include "s12z/vc/19f0mkh.inc"
39		case "S912ZVC19F0MLF"
40		  include "s12z/vc/19f0mlf.inc"
41		case "S912ZVCA19F0MKH"
42		  include "s12z/vca/19f0mkh.inc"
43		case "S912ZVCA19F0MLF"
44		  include "s12z/vca/19f0mlf.inc"
45		case "S912ZVCA19F0WKH"
46		  include "s12z/vca/19f0wkh.inc"
47		case "S912ZVH128F2CLQ"
48		  include "s12z/vh/128f2clq.inc"
49		case "S912ZVH128F2CLL"
50		  include "s12z/vh/128f2cll.inc"
51		case "S912ZVH64F2CLQ"
52		  include "s12z/vh/64f2clq.inc"
53		case "S912ZVHY64F1CLQ"
54		  include "s12z/vhy/64f1clq.inc"
55		case "S912ZVHY32F1CLQ"
56		  include "s12z/vhy/32f1clq.inc"
57		case "S912ZVHY64F1CLL"
58		  include "s12z/vhy/64f1cll.inc"
59		case "S912ZVHY32F1CLL"
60		  include "s12z/vhy/32f1cll.inc"
61		case "S912ZVHL64F1CLQ"
62		  include "s12z/vhl/64f1clq.inc"
63		case "S912ZVHL32F1CLQ"
64		  include "s12z/vhl/32f1clq.inc"
65		case "S912ZVHL64F1CLL"
66		  include "s12z/vhl/64f1cll.inc"
67		case "S912ZVHL32F1CLL"
68		  include "s12z/vhl/32f1cll.inc"
69		case "S912ZVFP64F1CLQ"
70		  include "s12z/vfp/64f1clq.inc"
71		case "S912ZVFP64F1CLL"
72		  include "s12z/vfp/64f1cll.inc"
73		case "S912ZVH128F2VLQ"
74		  include "s12z/vh/128f2vlq.inc"
75		case "S912ZVH128F2VLL"
76		  include "s12z/vh/128f2vll.inc"
77		case "S912ZVH64F2VLQ"
78		  include "s12z/vh/64f2vlq.inc"
79		case "S912ZVHY64F1VLQ"
80		  include "s12z/vhy/64f1vlq.inc"
81		case "S912ZVHY32F1VLQ"
82		  include "s12z/vhy/32f1vlq.inc"
83		case "S912ZVHY64F1VL"
84		  include "s12z/vhy/64f1vl.inc"
85		case "S912ZVHY32F1VLL"
86		  include "s12z/vhy/32f1vll.inc"
87		case "S912ZVHL64F1VLQ"
88		  include "s12z/vhl/64f1vlq.inc"
89
90		elsecase
91		  error	"wrong processor type set: only S912ZVH128F2CLQ, S912ZVH128F2CLL, S912ZVH64F2CLQ, S912ZVHY64F1CLQ, S912ZVHY32F1CLQ, S912ZVHY64F1CLL, S912ZVHY32F1CLL, S912ZVHL64F1CLQ, S912ZVHL32F1CLQ, S912ZVHL64F1CLL, S912ZVHL32F1CLL, S912ZVFP64F1CLQ,"
92		  fatal	"S912ZVFP64F1CLL, S912ZVH128F2VLQ, S912ZVH128F2VLL, S912ZVH64F2VLQ, S912ZVHY64F1VLQ, S912ZVHY32F1VLQ, S912ZVHY64F1VL, S912ZVHY32F1VLL, S912ZVHL64F1VLQ allowed!"
93		endcase
94
95;----------------------------------------------------------------------------
96
97                restore                 ; wieder erlauben
98
99                endif			; __regs12zinc
100