Subversion Repositories MB01 Project

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
;----------------------------------------------------------
2
; DIRP02.ASM
3
; PROGETTO: B1601
4
;
5
; Variabili in Direct Page $01
6
;----------------------------------------------------------
7
 
8
; sezione COMMON -- questo permette di includere il file in piu' file
9
 
10
 
11
.LIST on
12
 
13
KBDBUFLEN	.EQU	96		; dimensione buffer di tastiera
14
 
15
DIRP01:	.SECTION page0, ref_only, common	;Direct-Page 01
16
 
17
	.ABSOLUTE		;; inizia sempre da $00
18
	.ORG		0x00
19
 
20
 
21
KbdBuf		.DS	KBDBUFLEN	; buffer della tastiera
22
KbdITail	.DB			; coda buffer tastiera
23
KbdIHead	.DB			; testa buffer tastiera
24
KbdCnt		.DB			; numero bytes nel buffer
25
KbdShift	.DB
26
KbdFlag		.DB
27
KbdToggle	.DB
28
KbdSt		.DB			; status tastiera dopo reset
29
PS2Ctl		.DB			; flag controller PS2 keyboard
30
 
31
LCDFlag		.DB
32
LCDTmp		.DB
33
LCDVal		.DW
34
 
35
VBBFlag		.DB		; flag video board
36
VBBRam		.DB		; flag video RAM
37
 
38
ScnLinTmp	.DB
39
ScnChBase	.DB		; base video ram VDC
40
ScnAttBase	.DB		; base ram attributi VDC
41
ScnCursMode	.DB		; VDC cursore default
42
ScnSaveAttr	.DB
43
ScnInsert	.DB
44
ScnAutoIns	.DB		; bit 7 -> autoins - bit 6 -> modo input
45
ScnScroll	.DB
46
ScnMaxRow	.DB		; max. righe finestra (-1)
47
ScnMaxCols	.DB		; max. colonne finestra (-1)
48
 
49
ScnMapTabs1	.DS	10
50
ScnMapTabs2	.DS	4
51
 
52
ScnPtr		.DW		; puntatore video ram linea corrente
53
		.DB
54
 
55
ScnFiltLen	.DB		; lunghezza set caratteri filtro
56
 
57
ScnAtPtr	.DW		; puntatore attributi ram linea corrente
58
		.DB
59
 
60
ScnTmpx		.DB		; temporaneo: durante put char
61
 
62
ScnTop		.DB		; riga superiore finestra
63
ScnLeft		.DB		; colonna sinistra finestra
64
ScnBottom	.DB		; riga inferiore finestra
65
ScnRight	.DB		; colonna destra finestra
66
ScnAttr		.DB		; attributo default
67
ScnAttr2	.DB		; attributo alternativo
68
ScnRow		.DB		; riga cursore
69
ScnCol		.DB		; colonna cursore
70
ScnRowStart	.DB		; riga di start input
71
ScnInput	.DB		; riga di fine input
72
ScnColStart	.DB		; colonna di start input
73
ScnSaveX	.DB
74
ScnSaveY	.DB
75
ScnTmpL		.DB
76
ScnTmpH		.DB
77
ScnSaveRow	.DB
78
ScnSaveCol	.DB
79
ScnCurChr	.DB
80
ScnLstChr	.DB
81
ScnCR		.DB
82
ScnPrm		.DW		; puntatore long utilizzato da print imm
83
		.DB		; banco puntatore ScnPrm
84
ScnMode		.DB		; flag modo schermo
85
 
86
ScnPtr1		LP
87
 
88
ScnDefCol	.DB		; default foreground color
89
 
90
ScnPtr2		LP
91
 
92
ScnDefBkgCol	.DB		; default background color
93
ScnInpRow	.DB		; modo input line: riga start input
94
ScnInpCol	.DB		; modo input line: colonna start input
95
ScnLstRow	.DB		; modo input line: riga stop input
96
ScnLstCol	.DB		; modo input line: colonna stop input
97
ScnFlag		.DB		; Bit 7: input line - Bit 6: input riga unica
98
ScnMask		.DB		; flag tasti funzione editor di linea
99
ScnFilt		.DB		; filtro tasti editor di linea
100
ScnCntrl	.DB		; flag ASCII/CONTROL
101
;DflTxtIn	.DB		; device di default text input
102
;DflTxtOut	.DB		; device di default text output
103
 
104
SCNCLRLEN	.EQU	($ - ScnLinTmp - 1)
105
 
106
;SCNCLRLEN	.EQU	(DflTxtOut - ScnLinTmp)
107
 
108
; variabili monitor
109
SMAddrL		.DB	; address low/high
110
SMAddrH		.DB
111
SMAddrK		.DB	; address bank
112
SMFlag32	.DB	; flag parametro 32 bit
113
SMTmpL		.DB	; temp. low/high
114
SMTmpH		.DB
115
SMTmpK		.DB	; temp. bank
116
SMTmpKK		.DB	; high byte param. 32 bit
117
SMSizeL		.DB	; size low/high
118
SMSizeH		.DB
119
SMSizeK		.DB	; size bank
120
SMXAddrL	.DB	; address low/high XM
121
SMXAddrH	.DB
122
SMXAddrK	.DB	; address bank XM
123
SMbndx		.DB	; indice input buffer
124
SMnprm		.DB	; numero parametri riga di comando
125
SMdumb		.DB
126
SMkr		.DB
127
SMpc		.DW
128
SMsr		.DB
129
SMbr		.DB
130
SMdp		.DW
131
SMac		.DW
132
SMxr		.DW
133
SMyr		.DW
134
SMsp		.DW
135
 
136
SMAuxL		.DB
137
SMAuxH		.DB
138
 
139
asmlong		.DB	; flag for CPU in 16 mode
140
			; <7> -> A/M in 16 bit mode
141
			; <6> -> X/Y in 16 bit mode
142
asmcpu		.DB	; <7> -> 8 bit family
143
			; <6> -> 65C02 cmos version
144
 
145
SMctx		.DB	; context (if = $00 no quit command)
146
SMrsm		LP	; long pointer to resume caller context
147
 
148
rtcadr		.DB	; rtc internal ram address
149
rtcbnk		.DB	; RTC internal bank ram
150
cmdlin		.DB	;
151
SMesc		.DB
152
 
153
SMXTmp:		.DS	26	; 26 bytes tmp
154
 
155
SMTmp2		.EQU	SMXTmp
156
SMTmp3		.EQU	SMXTmp+2
157
SMdwTmp1	.EQU	SMXTmp+4
158
SMdwTmp2	.EQU	SMXTmp+8
159
SMFsrc		.EQU	SMXTmp+12	; source bank for flash update
160
SMFflag		.EQU	SMXTmp+13	; flag file for flash update
161
SMXPos2		.EQU	SMXTmp+14
162
SMYPos2		.EQU	SMXTmp+15
163
SMXPos3		.EQU	SMXTmp+16
164
SMYPos3		.EQU	SMXTmp+17
165
;SMAuxL		.EQU	SMXTmp+18
166
;SMAuxH		.EQU	SMXTmp+19
167
SMXPos		.EQU	SMXTmp+20
168
SMYPos		.EQU	SMXTmp+21
169
SMdwTmp3	.EQU	SMXTmp+22
170
 
171
atcmd		.EQU	SMXTmp		; save @ command
172
atnum		.EQU	SMXTmp+1	; @ command index
173
atflag		.EQU	SMXTmp+2	; @ L,S,V,R,W start address flag
174
atbnk		.EQU	SMXTmp+3	; @ L,S,V,R,W bank
175
atstr		.EQU	SMXTmp+4	; @ command string start (word)
176
atstart		.EQU	SMXTmp+6	; @ L,S,V,R,W start address (word)
177
atend		.EQU	SMXTmp+8	; @ S,W end address (word)
178
atbuf		.EQU	SMXTmp+10	; @ local buffer pointer (word)
179
atipb		.EQU	SMXTmp+12	; @ bank of input buffer
180
atdir		.EQU	SMXTmp+13	; @ load dir flag
181
atptr		.EQU	SMXTmp+14	; @ load dir pointer (word)
182
atsiz		.EQU	SMXTmp+16	; @ buffer size (word)
183
atlp		.EQU	SMXTmp+19	; @ long pointer
184
atsa		.EQU	SMXTmp+22	; @ sa
185
 
186
btmpx		.EQU	SMXTmp		; asc2bin conversion
187
brtcsec		.EQU	SMXTmp+1
188
brtcmin		.EQU	SMXTmp+2
189
brtchour	.EQU	SMXTmp+3
190
brtcday		.EQU	SMXTmp+4
191
brtcmonth	.EQU	SMXTmp+5
192
brtcyear	.EQU	SMXTmp+6
193
brtcct		.EQU	SMXTmp+7
194
 
195
 
196
	.RELATIVE
197
 
198
	.ENDS
199
 
200
.LIST off