Subversion Repositories Kolibri OS

Rev

Rev 1635 | Rev 2010 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1635 Rev 1638
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2009. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2009. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
7
 
7
 
8
$Revision: 1379 $
8
$Revision: 1638 $
9
 
9
 
10
 
10
 
11
keymap:
11
keymap:
12
 
12
 
13
     db   '6',27
13
     db   '6',27
14
     db   '1234567890-=',8,9
14
     db   '1234567890-=',8,9
15
     db   'qwertyuiop[]',13
15
     db   'qwertyuiop[]',13
16
     db   '~asdfghjkl;',39,96,0,'\zxcvbnm,./',0,'45 '
16
     db   '~asdfghjkl;',39,96,0,'\zxcvbnm,./',0,'45 '
17
     db   '@234567890123',180,178,184,'6',176,'7'
17
     db   '@234567890123',180,178,184,'6',176,'7'
18
     db   179,'8',181,177,183,185,182
18
     db   179,'8',181,177,183,185,182
19
     db   'AB
19
     db   'AB
20
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23
 
23
 
24
keymap_shift:
24
keymap_shift:
25
     db   '6',27
25
     db   '6',27
26
     db   '!@#$%^&*()_+',8,9
26
     db   '!@#$%^&*()_+',8,9
27
     db   'QWERTYUIOP{}',13
27
     db   'QWERTYUIOP{}',13
28
     db   '~ASDFGHJKL:"~',0,'|ZXCVBNM<>?',0,'45 '
28
     db   '~ASDFGHJKL:"~',0,'|ZXCVBNM<>?',0,'45 '
29
     db   '@234567890123',180,178,184,'6',176,'7'
29
     db   '@234567890123',180,178,184,'6',176,'7'
30
     db   179,'8',181,177,183,185,182
30
     db   179,'8',181,177,183,185,182
31
     db   'AB>D',255,'FGHIJKLMNOPQRSTUVWXYZ'
31
     db   'AB>D',255,'FGHIJKLMNOPQRSTUVWXYZ'
32
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35
 
35
 
36
 
36
 
37
keymap_alt:
37
keymap_alt:
38
     db   ' ',27
38
     db   ' ',27
39
     db   ' @ $  {[]}\ ',8,9
39
     db   ' @ $  {[]}\ ',8,9
40
     db   '            ',13
40
     db   '            ',13
41
     db   '             ',0,'           ',0,'4',0,' '
41
     db   '             ',0,'           ',0,'4',0,' '
42
     db   '             ',180,178,184,'6',176,'7'
42
     db   '             ',180,178,184,'6',176,'7'
43
     db   179,'8',181,177,183,185,182
43
     db   179,'8',181,177,183,185,182
44
     db   'ABCD',255,'FGHIJKLMNOPQRSTUVWXYZ'
44
     db   'ABCD',255,'FGHIJKLMNOPQRSTUVWXYZ'
45
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48
 
48
 
49
 
49
 
50
  boot_memdetect    db   'Determining amount of memory',0
50
  boot_memdetect    db   'Determining amount of memory',0
51
  boot_fonts        db   'Fonts loaded',0
51
  boot_fonts        db   'Fonts loaded',0
52
  boot_tss          db   'Setting TSSs',0
-
 
53
  boot_cpuid        db   'Reading CPUIDs',0
-
 
54
  boot_devices      db   'Detecting devices',0
52
  boot_devices      db   'Detecting devices',0
55
  boot_timer        db   'Setting timer',0
-
 
56
  boot_irqs         db   'Reprogramming IRQs',0
-
 
57
  boot_setmouse     db   'Setting mouse',0
53
  boot_setmouse     db   'Setting mouse',0
58
  boot_windefs      db   'Setting window defaults',0
54
  boot_windefs      db   'Setting window defaults',0
59
  boot_bgr          db   'Calculating background',0
55
  boot_bgr          db   'Calculating background',0
60
  boot_resirqports  db   'Reserving IRQs & ports',0
56
  boot_resirqports  db   'Reserving IRQs & ports',0
61
  boot_setrports    db   'Setting addresses for IRQs',0
-
 
62
  boot_setostask    db   'Setting OS task',0
57
  boot_setostask    db   'Setting OS task',0
63
  boot_allirqs      db   'Unmasking all IRQs',0
58
  boot_allirqs	    db	 'Unmasking IRQs',0
64
  boot_tsc          db   'Reading TSC',0
59
  boot_tsc          db   'Reading TSC',0
65
  boot_cpufreq      db   'CPU frequency is ','    ',' MHz',0
60
  boot_cpufreq      db   'CPU frequency is ','    ',' MHz',0
66
  boot_pal_ega      db   'Setting EGA/CGA 320x200 palette',0
61
  boot_pal_ega      db   'Setting EGA/CGA 320x200 palette',0
67
  boot_pal_vga      db   'Setting VGA 640x480 palette',0
62
  boot_pal_vga      db   'Setting VGA 640x480 palette',0
68
  boot_failed       db   'Failed to start first app',0
63
  boot_failed       db   'Failed to start first app',0
69
  boot_mtrr         db   'Setting MTRR',0
64
  boot_APIC_found   db	 'APIC enabled', 0
-
 
65
  boot_APIC_nfound  db	 'APIC not found', 0
-
 
66
  
70
if preboot_blogesc
67
if preboot_blogesc
71
  boot_tasking      db   'All set - press ESC to start',0
68
  boot_tasking      db   'All set - press ESC to start',0
72
end if
69
end if
73
 
70
 
74
;new_process_loading db 'K : New Process - loading',13,10,0
71
;new_process_loading db 'K : New Process - loading',13,10,0
75
;new_process_running db 'K : New Process - done',13,10,0
72
;new_process_running db 'K : New Process - done',13,10,0
76
start_not_enough_memory db 'K : New Process - not enough memory',13,10,0
73
start_not_enough_memory db 'K : New Process - not enough memory',13,10,0
77
 
74
 
78
msg_unresolved db 'unresolved ',0
75
msg_unresolved db 'unresolved ',0
79
msg_module     db 'in module ',0
76
msg_module     db 'in module ',0
80
msg_version    db 'incompatible driver version',13,10,0
77
msg_version    db 'incompatible driver version',13,10,0
81
msg_www        db 'please visit www.kolibrios.org',13,10,0
78
msg_www        db 'please visit www.kolibrios.org',13,10,0
82
msg_CR         db  13,10,0
79
msg_CR         db  13,10,0
83
aSis           db 'SIS',0
80
aSis           db 'SIS',0
84
 
81
 
85
intel_str      db "GenuineIntel",0
82
intel_str      db "GenuineIntel",0
86
AMD_str        db "AuthenticAMD",0
83
AMD_str        db "AuthenticAMD",0
87
 
84
 
88
;szSound        db 'SOUND',0
85
;szSound        db 'SOUND',0
89
;szInfinity     db 'INFINITY',0
86
;szInfinity     db 'INFINITY',0
90
szHwMouse       db 'ATI2D',0
87
szHwMouse       db 'ATI2D',0
91
szPS2MDriver    db 'PS2MOUSE',0
88
szPS2MDriver    db 'PS2MOUSE',0
92
;szCOM_MDriver   db 'COM_MOUSE',0
89
;szCOM_MDriver   db 'COM_MOUSE',0
93
szUSB           db 'USB',0
90
szUSB           db 'USB',0
94
szAtiHW         db '/rd/1/drivers/ati2d.drv',0
91
szAtiHW         db '/rd/1/drivers/ati2d.drv',0
95
 
92
 
96
szSTART        db 'START',0
93
szSTART        db 'START',0
97
szEXPORTS      db 'EXPORTS',0
94
szEXPORTS      db 'EXPORTS',0
98
sz_EXPORTS     db '_EXPORTS',0
95
sz_EXPORTS     db '_EXPORTS',0
99
 
96
 
100
szIMPORTS      db 'IMPORTS',0
97
szIMPORTS      db 'IMPORTS',0
101
 
98
 
102
read_firstapp  db '/sys/'
99
read_firstapp  db '/sys/'
103
firstapp       db  'LAUNCHER',0
100
firstapp       db  'LAUNCHER',0
104
 
101
 
105
char    db '/sys/FONTS/CHAR.MT',0
102
char    db '/sys/FONTS/CHAR.MT',0
106
char2   db '/sys/FONTS/CHAR2.MT',0
103
char2   db '/sys/FONTS/CHAR2.MT',0
107
 
104
 
108
bootpath       db  '/KOLIBRI    '
105
bootpath       db  '/KOLIBRI    '
109
bootpath2      db  0
106
bootpath2      db  0
110
vmode          db  '/sys/drivers/VMODE.MDR',0
107
vmode          db  '/sys/drivers/VMODE.MDR',0
111
vrr_m          db  'VRR_M',0
108
vrr_m          db  'VRR_M',0
112
kernel_file    db  'KERNEL  MNT'
109
kernel_file    db  'KERNEL  MNT'
113
 
110
 
114
 
111
 
115
align 4
112
align 4
116
 
113
 
117
shmem_list:
114
shmem_list:
118
 .bk           dd shmem_list
115
 .bk           dd shmem_list
119
 .fd           dd shmem_list
116
 .fd           dd shmem_list
120
 
117
 
121
dll_list:
118
dll_list:
122
 .bk           dd dll_list
119
 .bk           dd dll_list
123
 .fd           dd dll_list
120
 .fd           dd dll_list
124
 
121
 
125
MAX_DEFAULT_DLL_ADDR = 0x20000000
122
MAX_DEFAULT_DLL_ADDR = 0x20000000
126
MIN_DEFAULT_DLL_ADDR = 0x10000000
123
MIN_DEFAULT_DLL_ADDR = 0x10000000
127
dll_cur_addr   dd MIN_DEFAULT_DLL_ADDR
124
dll_cur_addr   dd MIN_DEFAULT_DLL_ADDR
128
 
125
 
129
; supported videomodes
126
; supported videomodes
130
 
127
 
131
 
128
 
132
; mike.dld {
129
; mike.dld {
133
db 0
130
db 0
134
dd servetable-0x10000
131
dd servetable-0x10000
135
draw_line       dd __sys_draw_line
132
draw_line       dd __sys_draw_line
136
draw_pointer    dd __sys_draw_pointer
133
draw_pointer    dd __sys_draw_pointer
137
;//mike.dld, 2006-08-02 [
134
;//mike.dld, 2006-08-02 [
138
;drawbar         dd __sys_drawbar
135
;drawbar         dd __sys_drawbar
139
drawbar         dd __sys_drawbar.forced
136
drawbar         dd __sys_drawbar.forced
140
;//mike.dld, 2006-08-02 ]
137
;//mike.dld, 2006-08-02 ]
141
putpixel        dd __sys_putpixel
138
putpixel        dd __sys_putpixel
142
; } mike.dld
139
; } mike.dld
143
 
140
 
144
 
141
 
145
align 4
142
align 4
146
keyboard   dd 1
143
keyboard   dd 1
147
syslang    dd 1
144
syslang    dd 1
148
 
145
 
149
boot_y     dd 10
146
boot_y     dd 10
150
 
147
 
151
pci_bios_entry  dd 0
148
pci_bios_entry  dd 0
152
                dw pci_code_sel
149
                dw pci_code_sel
153
 
150
 
154
if __DEBUG__ eq 1
151
if __DEBUG__ eq 1
155
  include_debug_strings
152
  include_debug_strings
156
end if
153
end if
157
 
154
 
158
IncludeIGlobals
155
IncludeIGlobals
159
 
156
 
160
align 16
157
align 16
161
gdts:
158
gdts:
162
 
159
 
163
        dw     gdte-$-1
160
        dw     gdte-$-1
164
        dd     gdts
161
        dd     gdts
165
        dw     0
162
        dw     0
166
 
163
 
167
; Attention! Do not change the order of the first four selectors. They are used in Fast System Call
164
; Attention! Do not change the order of the first four selectors. They are used in Fast System Call
168
; must be : os_code, os_data, app_code, app_data, ....
165
; must be : os_code, os_data, app_code, app_data, ....
169
 
166
 
170
int_code_l:
167
int_code_l:
171
os_code_l:
168
os_code_l:
172
        dw     0xffff
169
        dw     0xffff
173
        dw     0x0000
170
        dw     0x0000
174
        db     0x00
171
        db     0x00
175
        dw     11011111b *256 +10011010b
172
        dw     11011111b *256 +10011010b
176
        db     0x00
173
        db     0x00
177
 
174
 
178
int_data_l:
175
int_data_l:
179
os_data_l:
176
os_data_l:
180
        dw     0xffff
177
        dw     0xffff
181
        dw     0x0000
178
        dw     0x0000
182
        db     0x00
179
        db     0x00
183
        dw     11011111b *256 +10010010b
180
        dw     11011111b *256 +10010010b
184
        db     0x00
181
        db     0x00
185
 
182
 
186
app_code_l:
183
app_code_l:
187
        dw 0xFFFF
184
        dw 0xFFFF
188
        dw 0
185
        dw 0
189
        db 0
186
        db 0
190
        db cpl3
187
        db cpl3
191
        dw G32+D32+0xF;
188
        dw G32+D32+0xF;
192
 
189
 
193
app_data_l:
190
app_data_l:
194
        dw 0xFFFF
191
        dw 0xFFFF
195
        dw 0
192
        dw 0
196
        db 0
193
        db 0
197
        db drw3
194
        db drw3
198
        dw G32+D32+0xF;
195
        dw G32+D32+0xF;
199
 
196
 
200
; ------------- PCI BIOS ------------------
197
; ------------- PCI BIOS ------------------
201
 
198
 
202
pci_code_32:
199
pci_code_32:
203
        dw 0         ;lim  0-15
200
        dw 0         ;lim  0-15
204
        dw 0         ;base 0-15
201
        dw 0         ;base 0-15
205
        db 0         ;base 16-23
202
        db 0         ;base 16-23
206
        db cpl0      ;type
203
        db cpl0      ;type
207
        db D32       ;lim 16-19+props
204
        db D32       ;lim 16-19+props
208
        db 0         ;base 24-31
205
        db 0         ;base 24-31
209
 
206
 
210
pci_data_32:
207
pci_data_32:
211
        dw 0         ;lim  0-15
208
        dw 0         ;lim  0-15
212
        dw 0         ;base 0-15
209
        dw 0         ;base 0-15
213
        db 0         ;base 16-23
210
        db 0         ;base 16-23
214
        db dpl0      ;type
211
        db dpl0      ;type
215
        db D32       ;lim 16-19+props
212
        db D32       ;lim 16-19+props
216
        db 0         ;base 24-31
213
        db 0         ;base 24-31
217
 
214
 
218
; --------------- APM ---------------------
215
; --------------- APM ---------------------
219
apm_code_32:
216
apm_code_32:
220
        dw     0x0f        ; limit 64kb
217
        dw     0x0f        ; limit 64kb
221
        db     0, 0, 0
218
        db     0, 0, 0
222
        dw     11010000b *256 +10011010b
219
        dw     11010000b *256 +10011010b
223
        db     0x00
220
        db     0x00
224
apm_code_16:
221
apm_code_16:
225
        dw     0x0f
222
        dw     0x0f
226
        db     0, 0, 0
223
        db     0, 0, 0
227
        dw     10010000b *256 +10011010b
224
        dw     10010000b *256 +10011010b
228
        db     0x00
225
        db     0x00
229
apm_data_16:
226
apm_data_16:
230
        dw     0x0f
227
        dw     0x0f
231
        db     0, 0, 0
228
        db     0, 0, 0
232
        dw     10010000b *256 +10010010b
229
        dw     10010000b *256 +10010010b
233
        db     0x00
230
        db     0x00
234
; -----------------------------------------
231
; -----------------------------------------
235
 
232
 
236
graph_data_l:
233
graph_data_l:
237
 
234
 
238
        dw     0x7ff
235
        dw     0x7ff
239
        dw     0x0000
236
        dw     0x0000
240
        db     0x00
237
        db     0x00
241
        dw     11010000b *256 +11110010b
238
        dw     11010000b *256 +11110010b
242
        db     0x00
239
        db     0x00
243
tss0_l:
240
tss0_l:
244
        dw     TSS_SIZE-1
241
        dw     TSS_SIZE-1
245
        dw     tss and 0xFFFF
242
        dw     tss and 0xFFFF
246
        db     (tss shr 16) and 0xFF
243
        db     (tss shr 16) and 0xFF
247
        db     10001001b
244
        db     10001001b
248
        dw     (tss shr 16) and 0xFF00
245
        dw     (tss shr 16) and 0xFF00
249
 
246
 
250
tls_data_l:
247
tls_data_l:
251
        dw 0x0FFF
248
        dw 0x0FFF
252
        dw 0
249
        dw 0
253
        db 0
250
        db 0
254
        db drw3
251
        db drw3
255
        dw D32
252
        dw D32
256
 
253
 
257
endofcode:
254
endofcode:
258
gdte:
255
gdte:
259
 
256
 
260
align 16
257
align 16
261
cur_saved_data    rb 4096
258
cur_saved_data    rb 4096
262
fpu_data:         rb 512
259
fpu_data:         rb 512
263
 
260
 
264
; device irq owners
261
; device irq owners
265
irq_owner         rd 16 ; process id
262
irq_owner	  rd IRQ_RESERVE ; process id
266
 
-
 
267
; on irq read ports
263
; on irq read ports
268
 
-
 
269
irq00read         rd 16
264
irq00read	  rd 16 * IRQ_RESERVE
270
irq01read         rd 16
-
 
271
irq02read         rd 16
-
 
272
irq03read         rd 16
-
 
273
irq04read         rd 16
-
 
274
irq05read         rd 16
-
 
275
irq06read         rd 16
-
 
276
irq07read         rd 16
-
 
277
irq08read         rd 16
-
 
278
irq09read         rd 16
-
 
279
irq10read         rd 16
-
 
280
irq11read         rd 16
-
 
281
irq12read         rd 16
-
 
282
irq13read         rd 16
-
 
283
irq14read         rd 16
-
 
284
irq15read         rd 16
-
 
285
 
-
 
286
irq_tab           rd 16
265
irq_tab 	  rd IRQ_RESERVE
287
 
266
 
288
mem_block_map     rb 512
267
mem_block_map     rb 512
289
mem_block_list    rd 64
268
mem_block_list    rd 64
290
large_block_list  rd 31
269
large_block_list  rd 31
291
mem_block_mask    rd 2
270
mem_block_mask    rd 2
292
large_block_mask  rd 1
271
large_block_mask  rd 1
293
 
272
 
294
mem_used.fd       rd 1
273
mem_used.fd       rd 1
295
mem_used.bk       rd 1
274
mem_used.bk       rd 1
296
 
275
 
297
mem_block_arr     rd 1
276
mem_block_arr     rd 1
298
mem_block_start   rd 1
277
mem_block_start   rd 1
299
mem_block_end     rd 1
278
mem_block_end     rd 1
300
 
279
 
301
heap_mutex        rd 1
280
heap_mutex        rd 1
302
heap_size         rd 1
281
heap_size         rd 1
303
heap_free         rd 1
282
heap_free         rd 1
304
heap_blocks       rd 1
283
heap_blocks       rd 1
305
free_blocks       rd 1
284
free_blocks       rd 1
306
 
285
 
307
mst MEM_STATE
286
mst MEM_STATE
308
 
287
 
309
page_start        rd 1
288
page_start        rd 1
310
page_end          rd 1
289
page_end          rd 1
311
sys_page_map      rd 1
290
sys_page_map      rd 1
312
os_stack_seg      rd 1
291
os_stack_seg      rd 1
313
 
292
 
314
 
293
 
315
srv.fd            rd 1
294
srv.fd            rd 1
316
srv.bk            rd 1
295
srv.bk            rd 1
317
 
296
 
318
 
297
 
319
align 16
298
align 16
320
 
299
 
321
_display          display_t
300
_display          display_t
322
 
301
 
323
_WinMapAddress    rd 1
302
_WinMapAddress    rd 1
324
_WinMapSize       rd 1
303
_WinMapSize       rd 1
325
 
304
 
326
def_cursor        rd 1
305
def_cursor        rd 1
327
current_cursor    rd 1
306
current_cursor    rd 1
328
hw_cursor         rd 1
307
hw_cursor         rd 1
329
cur_saved_base    rd 1
308
cur_saved_base    rd 1
330
 
309
 
331
cur.lock          rd 1   ;1 - lock update, 2- hide
310
cur.lock          rd 1   ;1 - lock update, 2- hide
332
cur.left          rd 1   ;cursor clip box
311
cur.left          rd 1   ;cursor clip box
333
cur.top           rd 1
312
cur.top           rd 1
334
cur.right         rd 1
313
cur.right         rd 1
335
cur.bottom        rd 1
314
cur.bottom        rd 1
336
cur.w             rd 1
315
cur.w             rd 1
337
cur.h             rd 1
316
cur.h             rd 1
338
 
317
 
339
ipc_tmp           rd 1
318
ipc_tmp           rd 1
340
ipc_pdir          rd 1
319
ipc_pdir          rd 1
341
ipc_ptab          rd 1
320
ipc_ptab          rd 1
342
 
321
 
343
proc_mem_map      rd 1
322
proc_mem_map      rd 1
344
proc_mem_pdir     rd 1
323
proc_mem_pdir     rd 1
345
proc_mem_tab      rd 1
324
proc_mem_tab      rd 1
346
 
325
 
347
tmp_task_pdir     rd 1
326
tmp_task_pdir     rd 1
348
tmp_task_ptab     rd 1
327
tmp_task_ptab     rd 1
349
 
328
 
350
default_io_map    rd 1
329
default_io_map    rd 1
351
 
330
 
352
LFBSize           rd 1
331
LFBSize           rd 1
353
 
332
 
354
stall_mcs         rd 1
333
stall_mcs         rd 1
355
current_slot      rd 1
334
current_slot      rd 1
356
 
335
 
357
; status
336
; status
358
hd1_status                  rd 1  ; 0 - free : other - pid
337
hd1_status                  rd 1  ; 0 - free : other - pid
359
application_table_status    rd 1  ; 0 - free : other - pid
338
application_table_status    rd 1  ; 0 - free : other - pid
360
 
339
 
361
; device addresses
340
; device addresses
362
mididp            rd 1
341
mididp            rd 1
363
midisp            rd 1
342
midisp            rd 1
364
 
343
 
365
cdbase            rd 1
344
cdbase            rd 1
366
cdid              rd 1
345
cdid              rd 1
367
 
346
 
368
hdbase            rd 1    ; for boot 0x1f0
347
hdbase            rd 1    ; for boot 0x1f0
369
hdid              rd 1
348
hdid              rd 1
370
hdpos             rd 1    ; for boot 0x1
349
hdpos             rd 1    ; for boot 0x1
371
label   known_part dword
350
label   known_part dword
372
fat32part         rd 1    ; for boot 0x1
351
fat32part         rd 1    ; for boot 0x1
373
cdpos             rd 1
352
cdpos             rd 1
374
 
353
 
375
;CPUID information
354
;CPUID information
376
cpu_vendor        rd 3
355
cpu_vendor        rd 3
377
cpu_sign          rd 1
356
cpu_sign          rd 1
378
cpu_info          rd 1
357
cpu_info          rd 1
379
cpu_caps          rd 4
358
cpu_caps          rd 4
380
 
359
 
381
 
360
 
382
pg_data           PG_DATA
361
pg_data           PG_DATA
383
heap_test         rd 1
362
heap_test         rd 1
384
 
363
 
385
buttontype        rd 1
364
buttontype        rd 1
386
windowtypechanged rd 1
365
windowtypechanged rd 1
387
 
366
 
388
hd_entries        rd 1     ;unused ? 0xfe10
367
hd_entries        rd 1     ;unused ? 0xfe10
389
 
368
 
390
;* start code - Mario79
369
;* start code - Mario79
391
 
370
 
392
mouse_active          rd 1
371
mouse_active          rd 1
393
mouse_pause           rd 1
372
mouse_pause           rd 1
394
MouseTickCounter      rd 1
373
MouseTickCounter      rd 1
395
 
374
 
396
;* end code - Mario79
375
;* end code - Mario79
397
 
376
 
398
img_background        rd 1
377
img_background        rd 1
399
mem_BACKGROUND        rd 1
378
mem_BACKGROUND        rd 1
400
static_background_data rd 1
379
static_background_data rd 1
401
 
380
 
402
cache_ide0:
381
cache_ide0:
403
cache_ide0_pointer            rd 1
382
cache_ide0_pointer            rd 1
404
cache_ide0_size               rd 1   ; not use
383
cache_ide0_size               rd 1   ; not use
405
cache_ide0_data_pointer       rd 1
384
cache_ide0_data_pointer       rd 1
406
cache_ide0_system_data_size   rd 1   ; not use
385
cache_ide0_system_data_size   rd 1   ; not use
407
cache_ide0_appl_data_size     rd 1   ; not use
386
cache_ide0_appl_data_size     rd 1   ; not use
408
cache_ide0_system_data        rd 1
387
cache_ide0_system_data        rd 1
409
cache_ide0_appl_data          rd 1
388
cache_ide0_appl_data          rd 1
410
cache_ide0_system_sad_size    rd 1
389
cache_ide0_system_sad_size    rd 1
411
cache_ide0_appl_sad_size      rd 1
390
cache_ide0_appl_sad_size      rd 1
412
cache_ide0_search_start       rd 1
391
cache_ide0_search_start       rd 1
413
cache_ide0_appl_search_start  rd 1
392
cache_ide0_appl_search_start  rd 1
414
 
393
 
415
cache_ide1:
394
cache_ide1:
416
cache_ide1_pointer            rd 1
395
cache_ide1_pointer            rd 1
417
cache_ide1_size               rd 1   ; not use
396
cache_ide1_size               rd 1   ; not use
418
cache_ide1_data_pointer       rd 1
397
cache_ide1_data_pointer       rd 1
419
cache_ide1_system_data_size   rd 1   ; not use
398
cache_ide1_system_data_size   rd 1   ; not use
420
cache_ide1_appl_data_size     rd 1   ; not use
399
cache_ide1_appl_data_size     rd 1   ; not use
421
cache_ide1_system_data        rd 1
400
cache_ide1_system_data        rd 1
422
cache_ide1_appl_data          rd 1
401
cache_ide1_appl_data          rd 1
423
cache_ide1_system_sad_size    rd 1
402
cache_ide1_system_sad_size    rd 1
424
cache_ide1_appl_sad_size      rd 1
403
cache_ide1_appl_sad_size      rd 1
425
cache_ide1_search_start       rd 1
404
cache_ide1_search_start       rd 1
426
cache_ide1_appl_search_start  rd 1
405
cache_ide1_appl_search_start  rd 1
427
 
406
 
428
cache_ide2:
407
cache_ide2:
429
cache_ide2_pointer            rd 1
408
cache_ide2_pointer            rd 1
430
cache_ide2_size               rd 1   ; not use
409
cache_ide2_size               rd 1   ; not use
431
cache_ide2_data_pointer       rd 1
410
cache_ide2_data_pointer       rd 1
432
cache_ide2_system_data_size   rd 1   ; not use
411
cache_ide2_system_data_size   rd 1   ; not use
433
cache_ide2_appl_data_size     rd 1   ; not use
412
cache_ide2_appl_data_size     rd 1   ; not use
434
cache_ide2_system_data        rd 1
413
cache_ide2_system_data        rd 1
435
cache_ide2_appl_data          rd 1
414
cache_ide2_appl_data          rd 1
436
cache_ide2_system_sad_size    rd 1
415
cache_ide2_system_sad_size    rd 1
437
cache_ide2_appl_sad_size      rd 1
416
cache_ide2_appl_sad_size      rd 1
438
cache_ide2_search_start       rd 1
417
cache_ide2_search_start       rd 1
439
cache_ide2_appl_search_start  rd 1
418
cache_ide2_appl_search_start  rd 1
440
 
419
 
441
cache_ide3:
420
cache_ide3:
442
cache_ide3_pointer            rd 1
421
cache_ide3_pointer            rd 1
443
cache_ide3_size               rd 1   ; not use
422
cache_ide3_size               rd 1   ; not use
444
cache_ide3_data_pointer       rd 1
423
cache_ide3_data_pointer       rd 1
445
cache_ide3_system_data_size   rd 1   ; not use
424
cache_ide3_system_data_size   rd 1   ; not use
446
cache_ide3_appl_data_size     rd 1   ; not use
425
cache_ide3_appl_data_size     rd 1   ; not use
447
cache_ide3_system_data        rd 1
426
cache_ide3_system_data        rd 1
448
cache_ide3_appl_data          rd 1
427
cache_ide3_appl_data          rd 1
449
cache_ide3_system_sad_size    rd 1
428
cache_ide3_system_sad_size    rd 1
450
cache_ide3_appl_sad_size      rd 1
429
cache_ide3_appl_sad_size      rd 1
451
cache_ide3_search_start       rd 1
430
cache_ide3_search_start       rd 1
452
cache_ide3_appl_search_start  rd 1
431
cache_ide3_appl_search_start  rd 1
453
 
432
 
454
debug_step_pointer rd 1
433
debug_step_pointer rd 1
455
hdd_appl_data rb 1 ; 0 = system cache, 1 - application cache
434
hdd_appl_data rb 1 ; 0 = system cache, 1 - application cache
456
cd_appl_data rb 1 ; 0 = system cache, 1 - application cache
435
cd_appl_data rb 1 ; 0 = system cache, 1 - application cache
457
 
436
 
458
lba_read_enabled      rd 1  ; 0 = disabled , 1 = enabled
437
lba_read_enabled      rd 1  ; 0 = disabled , 1 = enabled
459
pci_access_enabled    rd 1  ; 0 = disabled , 1 = enabled
438
pci_access_enabled    rd 1  ; 0 = disabled , 1 = enabled
460
timer_ticks_enable rb 1         ; for cd driver
439
timer_ticks_enable rb 1         ; for cd driver
461
 
440
 
462
NumBiosDisks    rd 1
441
NumBiosDisks    rd 1
463
BiosDisksData   rb 200h
442
BiosDisksData   rb 200h
464
BiosDiskCaches  rb 80h*(cache_ide1-cache_ide0)
443
BiosDiskCaches  rb 80h*(cache_ide1-cache_ide0)
465
BiosDiskPartitions rd 80h
444
BiosDiskPartitions rd 80h
466
 
445
 
467
IncludeUGlobals
446
IncludeUGlobals
468
>
447
>