Subversion Repositories MB01 Project

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
;----------------------------------------------------------
2
; DIRP00.ASM
3
; PROGETTO: B1601
4
;
5
; Variabili in Direct Page $00
6
;----------------------------------------------------------
7
 
8
; sezione COMMON -- questo permette di includere il file in piu' file
9
 
10
.LIST on
11
 
12
DIRP00:	.SECTION page0, ref_only, common	;Direct-Page 00
13
 
14
	.ABSOLUTE		;; inizia sempre da $00
15
	.ORG		0x00
16
 
17
JiffyClk	.DW			; contatore 10ms 32 bit
18
		.DW
19
SysTmr		.DS	SYSTMRCNT	; system timer 0 (10ms)
20
SysTMF		.DS	SYSTMRCNT	; flag timer (80 -> start)
21
Bnk0Flag	.DB			; <7>: flag test RAM banco 0 ok
22
					; <6>: flag warm reset
23
RTCFlag		.DB
24
 
25
diskstat	.DS	2	; flag device on ata bus #0 & #1
26
				; <7>: device ready
27
				; <6>: compact flash device (C.F.)
28
				; <5>: device identification ok
29
				; <4>: MBR loaded
30
				; <3>: valid signature in MBR
31
				; <2>: first partition found&active
32
				; <1>:
33
				; <0>: valid partition flag
34
 
35
				; <7>: device ready
36
				; <6>: USB device
37
				; <5>: compact flash device (C.F.)
38
				; <4>: device identification ok
39
				; <3>: MBR loaded
40
				; <2>: first partition found&active
41
				; <1>: always 1
42
				; <0>: valid partition flag
43
 
44
 
45
atadev		.EQU	diskstat
46
 
47
usbdev		.DS	2	; flag flash disk on usb bus #0
48
				; <7>: device plugged and ready
49
				; <6>: always 1
50
				; <5>: device identification ok
51
				; <4>: MBR loaded
52
				; <3>: valid signature in MBR
53
				; <2>: first partition found&active
54
				; <1>:
55
				; <0>: valid partition flag
56
 
57
diskmax		.DS	16	; disk max. sector's
58
atasec		.EQU	diskmax
59
usbsec		.EQU	diskmax+8
60
 
61
 
62
atambr		.DS	8	; data for first partition found in mbr
63
				; first 3 bytes for start sector of partition
64
				; last byte for partition type
65
usbmbr		.DS	8
66
 
67
ataprt		.DS	8	; total sec's of first partition
68
usbprt		.DS	8	; total sec's of first partition
69
 
70
 
71
usb0ch		.DB	; usb0 (ch375/ch376) flag
72
			; <7>: module on
73
			; <6>: ch376 flag
74
			; <5:0>: chip version
75
 
76
usb0st		.DB	; usb0 status
77
			; <7>: usb0 host mode ok
78
			; <6>: flash disk attached flag
79
			; <5>: usb device attached
80
 
81
fdcdrv		.DB		; phisycal drive status (drive #0)
82
				; <7>: disk format established in bit 0&1
83
				; <6>: double step seek done
84
				; <5>: trust format bit's (set after ok r/w)
85
				; <4>: write protect bit (if disk in drive)
86
				; <3>: don't care
87
				; <2>: don't care
88
				; <1>: HD disk if set else DD disk
89
				; <0>: CBM format if set else IBM format
90
 
91
vdrive		.DB		; virtual drive status (ram disk, drive #1)
92
				; <7>: disk format established in bit 0&1
93
				; <6>: change disk simulation (after format)
94
				; <5>: don't care
95
				; <4>: write protect bit (under sw control)
96
				; <3>: don't care
97
				; <2>: don't care
98
				; <1>: HD disk if set else DD disk
99
				; <0>: CBM format if set else IBM format
100
 
101
fdcctl		.DB		; fdc controller status
102
				; <7>: drive is attached
103
				; <6>: drive need recalibration (restore)
104
				; <5>: FDC controller ok
105
				; <4>: motor on
106
				; <3>: dma is active
107
				; <2>: dma chip ok (post routine)
108
				; <1>: clock rate (1=HD,0=DD)
109
				; <0>: disk ready
110
 
111
fdctrk		.DB		; fd: current seek track
112
fdcerr		.DB		; fd: last error code
113
ataerr		.DB		; ata: last error code
114
ataxer		.DB		; ata: last extended error code
115
 
116
CtrlBrk		.DB		; flag CTRL+BREAK (NMI)
117
 
118
MemTop		.DW		; top memoria RAM
119
		.DB		; banco top mem
120
 
121
DflTxtIn	.DB		; device di default text input
122
DflTxtOut	.DB		; device di default text output
123
 
124
COPPtr		LP		; long pointer for COP decoding
125
COPIdx		.DB		; COP signature/index
126
 
127
BiosEnt		.DB		; flag accesso a bios setup
128
 
129
; variabili utilizzate da ACIA
130
spwrk		.DS	$30
131
 
132
; bios mem
133
nsize		.DW	; dimensione blocco da allocare
134
;bsize		.DW	; dimensione vera blocco free
135
splitsz		.DW	; dimensione blocco splittato
136
bfree		.DW	; puntatore blocco free
137
hdrptr		.DW	; puntatore header heap
138
 
139
pbrklv		.DW	; current break level of current process
140
pbrkmin		.DW	; minimum breal level of current process
141
pbrkmax		.DW	; maximum breal level of current process
142
 
143
; bios temp. work area
144
bwrktmp		.DS	$28
145
 
146
coptmp		.DB	; temp. used while cop
147
 
148
tstser		.DB	; check ser/usb test board post
149
			; <7>: VIA2 ok
150
			; <6>: PICRAM ok
151
			; <1>: UART 16C550 ok
152
			; <0>: R65C51 ok
153
 
154
 
155
;crc16		.DW
156
 
157
	.RELATIVE
158
 
159
	.ENDS
160
 
161
.IFDEF		_ACIA_INC_
162
	.INCLUDE INC\SP.INC
163
.ENDIF
164
 
165
.LIST off