Subversion Repositories MB01 Project

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
  Tue Jul 17 11:00:15 2018                                                                                               Page    1
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
          2500 A.D. 65816 Macro Assembler #26960 - Version 5.02g
10
          -----------------------------------------------------
11
 
12
                       Input  Filename : src\F8\lcd.asm
13
                       Output Filename : obj\F8\lcd.obj
14
                       Listing Has Been Relocated
15
 
16
 
17
 2592                        	.LIST		on
18
 2593
19
 2594  F8FFB1                		.INCLUDE inc\dirp01.inc
20
 2595                        	;----------------------------------------------------------
21
 2596                        	; DIRP02.ASM
22
 2597                        	; PROGETTO: B1601
23
 2598                        	;
24
 2599                        	; Variabili in Direct Page $01
25
 2600                        	;----------------------------------------------------------
26
 2601
27
 2602                        	; sezione COMMON -- questo permette di includere il file in piu' file
28
 2603
29
 2604
30
 2605                        	.LIST on
31
 2606
32
 2607          000060        	KBDBUFLEN	.EQU	96		; dimensione buffer di tastiera
33
 2608
34
 2609                        	DIRP01:	.SECTION page0, ref_only, common	;Direct-Page 01
35
 2610
36
 2611  000000                		.ABSOLUTE		;; inizia sempre da $00
37
 2612  000000                		.ORG		0x00
38
 2613
39
 2614  000000
40
 2615  000000                	KbdBuf		.DS	KBDBUFLEN	; buffer della tastiera
41
 2616  000060  00            	KbdITail	.DB			; coda buffer tastiera
42
 2617  000061  00            	KbdIHead	.DB			; testa buffer tastiera
43
 2618  000062  00            	KbdCnt		.DB			; numero bytes nel buffer
44
 2619  000063  00            	KbdShift	.DB
45
 2620  000064  00            	KbdFlag		.DB
46
 2621  000065  00            	KbdToggle	.DB
47
 2622  000066  00            	KbdSt		.DB			; status tastiera dopo reset
48
 2623  000067  00            	PS2Ctl		.DB			; flag controller PS2 keyboard
49
 2624
50
 2625  000068  00            	LCDFlag		.DB
51
 2626  000069  00            	LCDTmp		.DB
52
 2627  00006A  0000          	LCDVal		.DW
53
 2628
54
 2629  00006C  00            	VBBFlag		.DB		; flag video board
55
 2630  00006D  00            	VBBRam		.DB		; flag video RAM
56
 2631
57
 2632  00006E  00            	ScnLinTmp	.DB
58
 2633  00006F  00            	ScnChBase	.DB		; base video ram VDC
59
 2634  000070  00            	ScnAttBase	.DB		; base ram attributi VDC
60
 2635  000071  00            	ScnCursMode	.DB		; VDC cursore default
61
 2636  000072  00            	ScnSaveAttr	.DB
62
 2637  000073  00            	ScnInsert	.DB
63
  Tue Jul 17 11:00:15 2018                                                                                               Page    2
64
 
65
 
66
 
67
 
68
 2638  000074  00            	ScnAutoIns	.DB		; bit 7 -> autoins - bit 6 -> modo input
69
 2639  000075  00            	ScnScroll	.DB
70
 2640  000076  00            	ScnMaxRow	.DB		; max. righe finestra (-1)
71
 2641  000077  00            	ScnMaxCols	.DB		; max. colonne finestra (-1)
72
 2642
73
 2643  000078                	ScnMapTabs1	.DS	10
74
 2644  000082                	ScnMapTabs2	.DS	4
75
 2645  000086
76
 2646  000086  0000          	ScnPtr		.DW		; puntatore video ram linea corrente
77
 2647  000088  00            			.DB
78
 2648
79
 2649  000089  00            	ScnFiltLen	.DB		; lunghezza set caratteri filtro
80
 2650
81
 2651  00008A  0000          	ScnAtPtr	.DW		; puntatore attributi ram linea corrente
82
 2652  00008C  00            			.DB
83
 2653
84
 2654  00008D  00            	ScnTmpx		.DB		; temporaneo: durante put char
85
 2655  00008E
86
 2656  00008E  00            	ScnTop		.DB		; riga superiore finestra
87
 2657  00008F  00            	ScnLeft		.DB		; colonna sinistra finestra
88
 2658  000090  00            	ScnBottom	.DB		; riga inferiore finestra
89
 2659  000091  00            	ScnRight	.DB		; colonna destra finestra
90
 2660  000092  00            	ScnAttr		.DB		; attributo default
91
 2661  000093  00            	ScnAttr2	.DB		; attributo alternativo
92
 2662  000094  00            	ScnRow		.DB		; riga cursore
93
 2663  000095  00            	ScnCol		.DB		; colonna cursore
94
 2664  000096  00            	ScnRowStart	.DB		; riga di start input
95
 2665  000097  00            	ScnInput	.DB		; riga di fine input
96
 2666  000098  00            	ScnColStart	.DB		; colonna di start input
97
 2667  000099  00            	ScnSaveX	.DB
98
 2668  00009A  00            	ScnSaveY	.DB
99
 2669  00009B  00            	ScnTmpL		.DB
100
 2670  00009C  00            	ScnTmpH		.DB
101
 2671  00009D  00            	ScnSaveRow	.DB
102
 2672  00009E  00            	ScnSaveCol	.DB
103
 2673  00009F  00            	ScnCurChr	.DB
104
 2674  0000A0  00            	ScnLstChr	.DB
105
 2675  0000A1  00            	ScnCR		.DB
106
 2676  0000A2  0000          	ScnPrm		.DW		; puntatore long utilizzato da print imm
107
 2677  0000A4  00            			.DB		; banco puntatore ScnPrm
108
 2678  0000A5  00            	ScnMode		.DB		; flag modo schermo
109
 2679
110
 2680  0000A6                	ScnPtr1		LP
111
 2681
112
 2682  0000A9  00            	ScnDefCol	.DB		; default foreground color
113
 2683
114
 2684  0000AA                	ScnPtr2		LP
115
 2685
116
 2686  0000AD  00            	ScnDefBkgCol	.DB		; default background color
117
 2687  0000AE  00            	ScnInpRow	.DB		; modo input line: riga start input
118
 2688  0000AF  00            	ScnInpCol	.DB		; modo input line: colonna start input
119
 2689  0000B0  00            	ScnLstRow	.DB		; modo input line: riga stop input
120
 2690  0000B1  00            	ScnLstCol	.DB		; modo input line: colonna stop input
121
 2691  0000B2  00            	ScnFlag		.DB		; Bit 7: input line - Bit 6: input riga unica
122
 2692  0000B3  00            	ScnMask		.DB		; flag tasti funzione editor di linea
123
 2693  0000B4  00            	ScnFilt		.DB		; filtro tasti editor di linea
124
 2694  0000B5  00            	ScnCntrl	.DB		; flag ASCII/CONTROL
125
  Tue Jul 17 11:00:15 2018                                                                                               Page    3
126
 
127
 
128
 
129
 
130
 2695                        	;DflTxtIn	.DB		; device di default text input
131
 2696                        	;DflTxtOut	.DB		; device di default text output
132
 2697  0000B6
133
 2698          000047        	SCNCLRLEN	.EQU	($ - ScnLinTmp - 1)
134
 2699
135
 2700                        	;SCNCLRLEN	.EQU	(DflTxtOut - ScnLinTmp)
136
 2701
137
 2702                        	; variabili monitor
138
 2703  0000B6  00            	SMAddrL		.DB	; address low/high
139
 2704  0000B7  00            	SMAddrH		.DB
140
 2705  0000B8  00            	SMAddrK		.DB	; address bank
141
 2706  0000B9  00            	SMFlag32	.DB	; flag parametro 32 bit
142
 2707  0000BA  00            	SMTmpL		.DB	; temp. low/high
143
 2708  0000BB  00            	SMTmpH		.DB
144
 2709  0000BC  00            	SMTmpK		.DB	; temp. bank
145
 2710  0000BD  00            	SMTmpKK		.DB	; high byte param. 32 bit
146
 2711  0000BE  00            	SMSizeL		.DB	; size low/high
147
 2712  0000BF  00            	SMSizeH		.DB
148
 2713  0000C0  00            	SMSizeK		.DB	; size bank
149
 2714  0000C1  00            	SMXAddrL	.DB	; address low/high XM
150
 2715  0000C2  00            	SMXAddrH	.DB
151
 2716  0000C3  00            	SMXAddrK	.DB	; address bank XM
152
 2717  0000C4  00            	SMbndx		.DB	; indice input buffer
153
 2718  0000C5  00            	SMnprm		.DB	; numero parametri riga di comando
154
 2719  0000C6  00            	SMdumb		.DB
155
 2720  0000C7  00            	SMkr		.DB
156
 2721  0000C8  0000          	SMpc		.DW
157
 2722  0000CA  00            	SMsr		.DB
158
 2723  0000CB  00            	SMbr		.DB
159
 2724  0000CC  0000          	SMdp		.DW
160
 2725  0000CE  0000          	SMac		.DW
161
 2726  0000D0  0000          	SMxr		.DW
162
 2727  0000D2  0000          	SMyr		.DW
163
 2728  0000D4  0000          	SMsp		.DW
164
 2729
165
 2730  0000D6  00            	SMAuxL		.DB
166
 2731  0000D7  00            	SMAuxH		.DB
167
 2732
168
 2733  0000D8  00            	asmlong		.DB	; flag for CPU in 16 mode
169
 2734                        				; <7> -> A/M in 16 bit mode
170
 2735                        				; <6> -> X/Y in 16 bit mode
171
 2736  0000D9  00            	asmcpu		.DB	; <7> -> 8 bit family
172
 2737                        				; <6> -> 65C02 cmos version
173
 2738
174
 2739  0000DA  00            	SMctx		.DB	; context (if = $00 no quit command)
175
 2740  0000DB                	SMrsm		LP	; long pointer to resume caller context
176
 2741
177
 2742  0000DE  00            	rtcadr		.DB	; rtc internal ram address
178
 2743  0000DF  00            	rtcbnk		.DB	; RTC internal bank ram
179
 2744  0000E0  00            	cmdlin		.DB	;
180
 2745  0000E1  00            	SMesc		.DB
181
 2746
182
 2747  0000E2                	SMXTmp:		.DS	26	; 26 bytes tmp
183
 2748
184
 2749          0000E2        	SMTmp2		.EQU	SMXTmp
185
 2750          0000E4        	SMTmp3		.EQU	SMXTmp+2
186
 2751          0000E6        	SMdwTmp1	.EQU	SMXTmp+4
187
  Tue Jul 17 11:00:15 2018                                                                                               Page    4
188
 
189
 
190
 
191
 
192
 2752          0000EA        	SMdwTmp2	.EQU	SMXTmp+8
193
 2753          0000EE        	SMFsrc		.EQU	SMXTmp+12	; source bank for flash update
194
 2754          0000EF        	SMFflag		.EQU	SMXTmp+13	; flag file for flash update
195
 2755          0000F0        	SMXPos2		.EQU	SMXTmp+14
196
 2756          0000F1        	SMYPos2		.EQU	SMXTmp+15
197
 2757          0000F2        	SMXPos3		.EQU	SMXTmp+16
198
 2758          0000F3        	SMYPos3		.EQU	SMXTmp+17
199
 2759                        	;SMAuxL		.EQU	SMXTmp+18
200
 2760                        	;SMAuxH		.EQU	SMXTmp+19
201
 2761          0000F6        	SMXPos		.EQU	SMXTmp+20
202
 2762          0000F7        	SMYPos		.EQU	SMXTmp+21
203
 2763          0000F8        	SMdwTmp3	.EQU	SMXTmp+22
204
 2764
205
 2765          0000E2        	atcmd		.EQU	SMXTmp		; save @ command
206
 2766          0000E3        	atnum		.EQU	SMXTmp+1	; @ command index
207
 2767          0000E4        	atflag		.EQU	SMXTmp+2	; @ L,S,V,R,W start address flag
208
 2768          0000E5        	atbnk		.EQU	SMXTmp+3	; @ L,S,V,R,W bank
209
 2769          0000E6        	atstr		.EQU	SMXTmp+4	; @ command string start (word)
210
 2770          0000E8        	atstart		.EQU	SMXTmp+6	; @ L,S,V,R,W start address (word)
211
 2771          0000EA        	atend		.EQU	SMXTmp+8	; @ S,W end address (word)
212
 2772          0000EC        	atbuf		.EQU	SMXTmp+10	; @ local buffer pointer (word)
213
 2773          0000EE        	atipb		.EQU	SMXTmp+12	; @ bank of input buffer
214
 2774          0000EF        	atdir		.EQU	SMXTmp+13	; @ load dir flag
215
 2775          0000F0        	atptr		.EQU	SMXTmp+14	; @ load dir pointer (word)
216
 2776          0000F2        	atsiz		.EQU	SMXTmp+16	; @ buffer size (word)
217
 2777          0000F5        	atlp		.EQU	SMXTmp+19	; @ long pointer
218
 2778          0000F8        	atsa		.EQU	SMXTmp+22	; @ sa
219
 2779
220
 2780          0000E2        	btmpx		.EQU	SMXTmp		; asc2bin conversion
221
 2781          0000E3        	brtcsec		.EQU	SMXTmp+1
222
 2782          0000E4        	brtcmin		.EQU	SMXTmp+2
223
 2783          0000E5        	brtchour	.EQU	SMXTmp+3
224
 2784          0000E6        	brtcday		.EQU	SMXTmp+4
225
 2785          0000E7        	brtcmonth	.EQU	SMXTmp+5
226
 2786          0000E8        	brtcyear	.EQU	SMXTmp+6
227
 2787          0000E9        	brtcct		.EQU	SMXTmp+7
228
 2788
229
 2789
230
 2790  0000FC                		.RELATIVE
231
 2791
232
 2792                        		.ENDS
233
 2793
234
 
235
 
236
             Lines Assembled : 3506                  Errors : 0
237
 
238
 
239