Subversion Repositories MB01 Project

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
  Tue Jul 17 11:00:22 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\FE\main.asm
13
                       Output Filename : obj\FE\main.obj
14
                       Listing Has Been Relocated
15
 
16
 
17
 2584                        	.LIST		on
18
 2585
19
 2586  F8FFB1                		.INCLUDE inc\dirp00.inc
20
 2587                        	;----------------------------------------------------------
21
 2588                        	; DIRP00.ASM
22
 2589                        	; PROGETTO: B1601
23
 2590                        	;
24
 2591                        	; Variabili in Direct Page $00
25
 2592                        	;----------------------------------------------------------
26
 2593
27
 2594                        	; sezione COMMON -- questo permette di includere il file in piu' file
28
 2595
29
 2596                        	.LIST on
30
 2597
31
 2598                        	DIRP00:	.SECTION page0, ref_only, common	;Direct-Page 00
32
 2599
33
 2600  000000                		.ABSOLUTE		;; inizia sempre da $00
34
 2601  000000                		.ORG		0x00
35
 2602  000000
36
 2603  000000  0000          	JiffyClk	.DW			; contatore 10ms 32 bit
37
 2604  000002  0000          			.DW
38
 2605  000004                	SysTmr		.DS	SYSTMRCNT	; system timer 0 (10ms)
39
 2606  000008                	SysTMF		.DS	SYSTMRCNT	; flag timer (80 -> start)
40
 2607  00000C  00            	Bnk0Flag	.DB			; <7>: flag test RAM banco 0 ok
41
 2608                        						; <6>: flag warm reset
42
 2609  00000D  00            	RTCFlag		.DB
43
 2610
44
 2611  00000E                	diskstat	.DS	2	; flag device on ata bus #0 & #1
45
 2612                        					; <7>: device ready
46
 2613                        					; <6>: compact flash device (C.F.)
47
 2614                        					; <5>: device identification ok
48
 2615                        					; <4>: MBR loaded
49
 2616                        					; <3>: valid signature in MBR
50
 2617                        					; <2>: first partition found&active
51
 2618                        					; <1>:
52
 2619                        					; <0>: valid partition flag
53
 2620
54
 2621                        					; <7>: device ready
55
 2622                        					; <6>: USB device
56
 2623                        					; <5>: compact flash device (C.F.)
57
 2624                        					; <4>: device identification ok
58
 2625                        					; <3>: MBR loaded
59
 2626                        					; <2>: first partition found&active
60
 2627                        					; <1>: always 1
61
 2628                        					; <0>: valid partition flag
62
 2629  000010
63
  Tue Jul 17 11:00:22 2018                                                                                               Page    2
64
 
65
 
66
 
67
 
68
 2630
69
 2631          00000E        	atadev		.EQU	diskstat
70
 2632
71
 2633  000010                	usbdev		.DS	2	; flag flash disk on usb bus #0
72
 2634                        					; <7>: device plugged and ready
73
 2635                        					; <6>: always 1
74
 2636                        					; <5>: device identification ok
75
 2637                        					; <4>: MBR loaded
76
 2638                        					; <3>: valid signature in MBR
77
 2639                        					; <2>: first partition found&active
78
 2640                        					; <1>:
79
 2641                        					; <0>: valid partition flag
80
 2642
81
 2643  000012                	diskmax		.DS	16	; disk max. sector's
82
 2644          000012        	atasec		.EQU	diskmax
83
 2645          00001A        	usbsec		.EQU	diskmax+8
84
 2646
85
 2647
86
 2648  000022                	atambr		.DS	8	; data for first partition found in mbr
87
 2649                        					; first 3 bytes for start sector of partition
88
 2650                        					; last byte for partition type
89
 2651  00002A                	usbmbr		.DS	8
90
 2652
91
 2653  000032                	ataprt		.DS	8	; total sec's of first partition
92
 2654  00003A                	usbprt		.DS	8	; total sec's of first partition
93
 2655
94
 2656
95
 2657  000042  00            	usb0ch		.DB	; usb0 (ch375/ch376) flag
96
 2658                        				; <7>: module on
97
 2659                        				; <6>: ch376 flag
98
 2660                        				; <5:0>: chip version
99
 2661
100
 2662  000043  00            	usb0st		.DB	; usb0 status
101
 2663                        				; <7>: usb0 host mode ok
102
 2664                        				; <6>: flash disk attached flag
103
 2665                        				; <5>: usb device attached
104
 2666
105
 2667  000044  00            	fdcdrv		.DB		; phisycal drive status (drive #0)
106
 2668                        					; <7>: disk format established in bit 0&1
107
 2669                        					; <6>: double step seek done
108
 2670                        					; <5>: trust format bit's (set after ok r/w)
109
 2671                        					; <4>: write protect bit (if disk in drive)
110
 2672                        					; <3>: don't care
111
 2673                        					; <2>: don't care
112
 2674                        					; <1>: HD disk if set else DD disk
113
 2675                        					; <0>: CBM format if set else IBM format
114
 2676
115
 2677  000045  00            	vdrive		.DB		; virtual drive status (ram disk, drive #1)
116
 2678                        					; <7>: disk format established in bit 0&1
117
 2679                        					; <6>: change disk simulation (after format)
118
 2680                        					; <5>: don't care
119
 2681                        					; <4>: write protect bit (under sw control)
120
 2682                        					; <3>: don't care
121
 2683                        					; <2>: don't care
122
 2684                        					; <1>: HD disk if set else DD disk
123
 2685                        					; <0>: CBM format if set else IBM format
124
 2686
125
  Tue Jul 17 11:00:22 2018                                                                                               Page    3
126
 
127
 
128
 
129
 
130
 2687  000046  00            	fdcctl		.DB		; fdc controller status
131
 2688                        					; <7>: drive is attached
132
 2689                        					; <6>: drive need recalibration (restore)
133
 2690                        					; <5>: FDC controller ok
134
 2691                        					; <4>: motor on
135
 2692                        					; <3>: dma is active
136
 2693                        					; <2>: dma chip ok (post routine)
137
 2694                        					; <1>: clock rate (1=HD,0=DD)
138
 2695                        					; <0>: disk ready
139
 2696
140
 2697  000047  00            	fdctrk		.DB		; fd: current seek track
141
 2698  000048  00            	fdcerr		.DB		; fd: last error code
142
 2699  000049  00            	ataerr		.DB		; ata: last error code
143
 2700  00004A  00            	ataxer		.DB		; ata: last extended error code
144
 2701
145
 2702  00004B  00            	CtrlBrk		.DB		; flag CTRL+BREAK (NMI)
146
 2703
147
 2704  00004C  0000          	MemTop		.DW		; top memoria RAM
148
 2705  00004E  00            			.DB		; banco top mem
149
 2706
150
 2707  00004F  00            	DflTxtIn	.DB		; device di default text input
151
 2708  000050  00            	DflTxtOut	.DB		; device di default text output
152
 2709
153
 2710  000051                	COPPtr		LP		; long pointer for COP decoding
154
 2711  000054  00            	COPIdx		.DB		; COP signature/index
155
 2712
156
 2713  000055  00            	BiosEnt		.DB		; flag accesso a bios setup
157
 2714
158
 2715                        	; variabili utilizzate da ACIA
159
 2716  000056                	spwrk		.DS	$30
160
 2717
161
 2718                        	; bios mem
162
 2719  000086  0000          	nsize		.DW	; dimensione blocco da allocare
163
 2720                        	;bsize		.DW	; dimensione vera blocco free
164
 2721  000088  0000          	splitsz		.DW	; dimensione blocco splittato
165
 2722  00008A  0000          	bfree		.DW	; puntatore blocco free
166
 2723  00008C  0000          	hdrptr		.DW	; puntatore header heap
167
 2724
168
 2725  00008E  0000          	pbrklv		.DW	; current break level of current process
169
 2726  000090  0000          	pbrkmin		.DW	; minimum breal level of current process
170
 2727  000092  0000          	pbrkmax		.DW	; maximum breal level of current process
171
 2728  000094
172
 2729                        	; bios temp. work area
173
 2730  000094                	bwrktmp		.DS	$28
174
 2731
175
 2732  0000BC  00            	coptmp		.DB	; temp. used while cop
176
 2733
177
 2734  0000BD  00            	tstser		.DB	; check ser/usb test board post
178
 2735                        				; <7>: VIA2 ok
179
 2736                        				; <6>: PICRAM ok
180
 2737                        				; <1>: UART 16C550 ok
181
 2738                        				; <0>: R65C51 ok
182
 2739
183
 2740
184
 2741                        	;crc16		.DW
185
 2742
186
 2743  0000BD                		.RELATIVE
187
  Tue Jul 17 11:00:22 2018                                                                                               Page    4
188
 
189
 
190
 
191
 
192
 2744
193
 2745                        		.ENDS
194
 2746
195
 2747          [01]          	.IFDEF		_ACIA_INC_
196
 2748                        		.INCLUDE INC\SP.INC
197
 2749          [00]          	.ENDIF
198
 2750
199
 
200
 
201
             Lines Assembled : 6255                  Errors : 0
202
 
203
 
204