-
Notifications
You must be signed in to change notification settings - Fork 0
/
FTMP16XX.INC
144 lines (119 loc) · 3.8 KB
/
FTMP16XX.INC
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
LIST
; FTMP16XX.INC Restriction definition file v4.1 Inform Software Corporation
NOLIST
;*-----------------------------------------------------------------------------*
;*------------------------- fuzzyTECH MCU-MP V4.1 -----------------------------*
;* (c) 1995 Inform Software Corporation, 2001 Midwest Road, Oak Brook, IL60521 *
;*------------ (c) 1995 Inform GmbH, Pascalstr. 23, 52076 Aachen --------------*
;*-----------------------------------------------------------------------------*
;*----------------------- Defines for known processors ------------------------*
;*-----------------------------------------------------------------------------*
;*------------------------------ Family 16Cxx ---------------------------------*
IFDEF __16C61
RAM_START EQU 0x00C
RAM_GAP_START EQU 0x000
RAM_END EQU 0x02F
ENDIF
IFDEF __16C620
RAM_START EQU 0x020
RAM_GAP_START EQU 0x000
RAM_END EQU 0x06F
ENDIF
IFDEF __16C621
RAM_START EQU 0x020
RAM_GAP_START EQU 0x000
RAM_END EQU 0x06F
ENDIF
IFDEF __16C622
RAM_START EQU 0x020
RAM_GAP_START EQU 0x080
RAM_GAP_END EQU 0x09F
RAM_GAP_SIZE EQU RAM_GAP_END - RAM_GAP_START + 1
RAM_END SET 0x0BF
ENDIF
IFDEF __16C64
RAM_START EQU 0x020
RAM_GAP_START EQU 0x080
RAM_GAP_END EQU 0x09F
RAM_GAP_SIZE EQU RAM_GAP_END - RAM_GAP_START + 1
RAM_END SET 0x0BF
ENDIF
IFDEF __16C65
RAM_START EQU 0x020
RAM_GAP_START EQU 0x080
RAM_GAP_END EQU 0x09F
RAM_GAP_SIZE EQU RAM_GAP_END - RAM_GAP_START + 1
RAM_END SET 0x0FF
ENDIF
IFDEF __16C65A
RAM_START EQU 0x020
RAM_GAP_START EQU 0x080
RAM_GAP_END EQU 0x09F
RAM_GAP_SIZE EQU RAM_GAP_END - RAM_GAP_START + 1
RAM_END SET 0x0FF
ENDIF
IFDEF __16C71
RAM_START EQU 0x00C
RAM_GAP_START EQU 0x000
RAM_END EQU 0x02F
ENDIF
IFDEF __16C73
RAM_START EQU 0x020
RAM_GAP_START EQU 0x080
RAM_GAP_END EQU 0x09F
RAM_GAP_SIZE EQU RAM_GAP_END - RAM_GAP_START + 1
RAM_END SET 0x0FF
ENDIF
IFDEF __16C73A
RAM_START EQU 0x020
RAM_GAP_START EQU 0x080
RAM_GAP_END EQU 0x09F
RAM_GAP_SIZE EQU RAM_GAP_END - RAM_GAP_START + 1
RAM_END SET 0x0FF
ENDIF
IFDEF __16C73B
RAM_START EQU 0x020
RAM_GAP_START EQU 0x080
;RAM_GAP_END EQU 0x09F
;RAM_GAP_SIZE EQU RAM_GAP_END - RAM_GAP_START + 1
RAM_END SET 0x0FF
ENDIF
IFDEF __16C74
RAM_START EQU 0x020
RAM_GAP_START EQU 0x080
RAM_GAP_END EQU 0x09F
RAM_GAP_SIZE EQU RAM_GAP_END - RAM_GAP_START + 1
RAM_END SET 0x0FF
ENDIF
IFDEF __16C74A
RAM_START EQU 0x020
RAM_GAP_START EQU 0x080
RAM_GAP_END EQU 0x09F
RAM_GAP_SIZE EQU RAM_GAP_END - RAM_GAP_START + 1
RAM_END SET 0x0FF
ENDIF
IFDEF __16C84
RAM_START EQU 0x00C
RAM_GAP_START EQU 0x000
RAM_END EQU 0x02F
ENDIF
IFDEF __16F871
RAM_START EQU 0x020
RAM_GAP_START EQU 0x080
;RAM_GAP_END EQU 0x09F
;RAM_GAP_SIZE EQU RAM_GAP_END - RAM_GAP_START + 1
RAM_END SET 0x0BF
ENDIF
;*-------------------------------- General ------------------------------------*
IFNDEF RAM_START
ERROR "ERROR: Restrictions of processortype unknown. Please specify your processor type."
ENDIF
IF (RAM_GAP_START == 0x000) && (BANKED == 0x001)
ERROR "ERROR: Processor type do not support precompiled BANKED code !!"
ENDIF
IF (RAM_GAP_START != 0x000) && (BANKED == 0x000)
MESSG "MESSAGE: UNBANKED code is precompiled for banked processor type."
RAM_END SET RAM_GAP_START
ENDIF
;*-----------------------------------------------------------------------------*
LIST