Rev 3605 | Rev 9568 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3605 | Rev 8569 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | dd cur_dir_path |
25 | dd cur_dir_path |
Line 26... | Line 26... | ||
26 | 26 | ||
27 | PRIMARY_CHANNEL equ 0x1f7 |
27 | PRIMARY_CHANNEL equ 0x1f7 |
28 | SECONDARY_CHANNEL equ 0x177 |
28 | SECONDARY_CHANNEL equ 0x177 |
29 | ; ã箩 ¯®¨áª ¯®à⮢ ¯® 訥 PCI (¯à¥¨¬ãé¥á⢥® ¤«ï SATA): |
29 | ; ã箩 ¯®¨áª ¯®à⮢ ¯® 訥 PCI (¯à¥¨¬ãé¥á⢥® ¤«ï SATA): |
30 | ; mcall 21,12,1 ;à §à¥è¨âì ¨§ª®ã஢¥¢ë© ¤®áâ㯠ª PCI |
30 | ; mcall SF_SYSTEM_SET,SSF_ACCESS_PCI,1 ;à §à¥è¨âì ¨§ª®ã஢¥¢ë© ¤®áâ㯠ª PCI |
31 | ; mcall 62,0x0006,((((0x1f shl 3) + 01) shl 8) + 0x10) ;á¬. ä-î 62 |
31 | ; mcall SF_PCI,0x0006,((((0x1f shl 3) + 01) shl 8) + 0x10) ;á¬. ä-î 62 |
32 | ; ax = 1 - áâ ¤ àâë¥ ¯®àâë (ª®áâ âë ¢ëè¥), ¨«¨ ¥áâ ¤ àâë¥ (168-16f,1e8-1ef) |
32 | ; ax = 1 - áâ ¤ àâë¥ ¯®àâë (ª®áâ âë ¢ëè¥), ¨«¨ ¥áâ ¤ àâë¥ (168-16f,1e8-1ef) |
33 | ; ਬ¥à: |
33 | ; ਬ¥à: |
34 | ; Fnc 02: 10-0x1c01,14-0x18f5,18-0x18f9,1c-0x18f1,BMA-0x1811,00000000 |
34 | ; Fnc 02: 10-0x1c01,14-0x18f5,18-0x18f9,1c-0x18f1,BMA-0x1811,00000000 |
35 | ; Fnc 01: 10-1,14-1,18-1,1c-1,BMA-0x18e1,0x18d1 |
35 | ; Fnc 01: 10-1,14-1,18-1,1c-1,BMA-0x18e1,0x18d1 |
Line 36... | Line 36... | ||
36 | ; ¥£¨áâà ¯® ᬥ饨î 0å10 ¤«ï äãªæ¨¨ 02 ᮤ¥à¦¨â 0x1c01 (¯®àâë 0å1á00-0å1á07) |
36 | ; ¥£¨áâà ¯® ᬥ饨î 0å10 ¤«ï äãªæ¨¨ 02 ᮤ¥à¦¨â 0x1c01 (¯®àâë 0å1á00-0å1á07) |
Line 37... | Line 37... | ||
37 | 37 | ||
38 | include 'lang.inc' ; language support |
38 | include 'lang.inc' ; language support |
39 | 39 | ||
40 | ; ¥¦¨¬ë Legacy, Native ¨ ¯à. ¬¥ïîâáï ç¥à¥§ BIOS. |
40 | ; ¥¦¨¬ë Legacy, Native ¨ ¯à. ¬¥ïîâáï ç¥à¥§ BIOS. |
- | 41 | include '../../../config.inc' ;for nightbuild |
|
41 | include '../../../config.inc' ;for nightbuild |
42 | include '../../../macros.inc' |
42 | include '..\..\..\macros.inc' |
43 | include '../../../develop/libraries/box_lib/trunk/box_lib.mac' |
43 | include '../../../develop/libraries/box_lib/trunk/box_lib.mac' |
44 | include '../../../KOSfuncs.inc' |
44 | include '../../../develop/libraries/box_lib/load_lib.mac' |
45 | include '../../../load_lib.mac' |
45 | @use_library |
46 | @use_library |
46 | ;--------------------------------------------------------------------- |
47 | ;--------------------------------------------------------------------- |
Line 59... | Line 60... | ||
59 | macro wba num,text { |
60 | macro wba num,text { |
60 | @@: |
61 | @@: |
61 | bt di,num |
62 | bt di,num |
62 | jnc @f |
63 | jnc @f |
63 | ad |
64 | ad |
64 | mcall 4,,0x80000000,text |
65 | mcall SF_DRAW_TEXT,,0x80000000,text |
65 | } |
66 | } |
66 | ;--------------------------------------------------------------------- |
67 | ;--------------------------------------------------------------------- |
67 | macro wba num,text { |
68 | macro wba num,text { |
68 | @@: |
69 | @@: |
69 | bt di,num |
70 | bt di,num |
70 | jnc @f |
71 | jnc @f |
71 | ad |
72 | ad |
72 | mcall 4,,0x80000000,text |
73 | mcall SF_DRAW_TEXT,,0x80000000,text |
73 | } |
74 | } |
74 | ;--------------------------------------------------------------------- |
75 | ;--------------------------------------------------------------------- |
75 | macro sc num,text { |
76 | macro sc num,text { |
76 | cmp al,num |
77 | cmp al,num |
77 | jne @f |
78 | jne @f |
78 | mov edx,text |
79 | mov edx,text |
79 | @@: |
80 | @@: |
80 | } |
81 | } |
81 | ;--------------------------------------------------------------------- |
82 | ;--------------------------------------------------------------------- |
82 | macro mz text,str1,str2,str3 { |
83 | macro mz text,str1,str2,str3 { |
83 | mcall 4,,0x80444444,text |
84 | mcall SF_DRAW_TEXT,,0x80444444,text |
84 | ab |
85 | ab |
85 | mov edx,ebx |
86 | mov edx,ebx |
86 | push ebx |
87 | push ebx |
87 | str1 |
88 | str1 |
88 | str2 |
89 | str2 |
89 | str3 |
90 | str3 |
90 | mcall 47,0x800a0000,,,0x0 |
91 | mcall SF_DRAW_NUMBER,0x800a0000,,,0x0 |
91 | pop ebx |
92 | pop ebx |
92 | sb |
93 | sb |
93 | } |
94 | } |
94 | ;--------------------------------------------------------------------- |
95 | ;--------------------------------------------------------------------- |
95 | START: |
96 | START: |
96 | ; load_library boxlib_name,cur_dir_path,buf_cmd_lin,system_path,\ |
97 | ; load_library boxlib_name,buf_cmd_lin,system_path,Box_lib_import |
97 | ; err_message_found_lib,head_f_l,Box_lib_import,err_message_import,head_f_i |
- | |
98 | mcall 68,11 |
98 | mcall SF_SYS_MISC,SSF_HEAP_INIT |
Line 99... | Line 99... | ||
99 | 99 | ||
Line 100... | Line 100... | ||
100 | load_libraries l_libs_start,end_l_libs |
100 | load_libraries l_libs_start,end_l_libs |
101 | 101 | ||
Line 134... | Line 134... | ||
134 | 134 | ||
135 | push dword PathShow_data_2 |
135 | push dword PathShow_data_2 |
136 | call [PathShow_prepare] |
136 | call [PathShow_prepare] |
Line 137... | Line 137... | ||
137 | ;--------------------------------------------------------------------- |
137 | ;--------------------------------------------------------------------- |
138 | 138 | ||
139 | mcall 40,0x27 |
139 | mcall SF_SET_EVENTS_MASK,0x27 |
140 | ;--------------------------------------------------------------------- |
140 | ;--------------------------------------------------------------------- |
141 | redraw_all: |
141 | redraw_all: |
142 | redraw: |
142 | redraw: |
143 | call draw_window |
143 | call draw_window |
144 | ;--------------------------------------------------------------------- |
144 | ;--------------------------------------------------------------------- |
145 | still: |
145 | still: |
146 | mcall 10 |
146 | mcall SF_WAIT_EVENT |
147 | dec al |
147 | dec al |
148 | jz redraw_all |
148 | jz redraw_all |
149 | dec al |
149 | dec al |
150 | jz key |
150 | jz key |
151 | dec al |
151 | dec al |
152 | jz button |
152 | jz button |
153 | ;--------------------------------------------------------------------- |
153 | ;--------------------------------------------------------------------- |
154 | mouse: |
154 | mouse: |
155 | bt [flags],2 |
155 | bt [flags],2 |
156 | jnc still |
156 | jnc still |
157 | mcall 37,2 |
157 | mcall SF_MOUSE_GET,SSF_BUTTON |
158 | test al,al |
158 | test al,al |
159 | jz still |
159 | jz still |
160 | push dword Option_boxs |
160 | push dword Option_boxs |
Line 171... | Line 171... | ||
171 | jnz @b |
171 | jnz @b |
172 | ret |
172 | ret |
173 | ;--------------------------------------------------------------------- |
173 | ;--------------------------------------------------------------------- |
174 | draw_PathShow: |
174 | draw_PathShow: |
175 | pusha |
175 | pusha |
176 | mcall 13,<125,420>,<83,15>,0xFFFFED |
176 | mcall SF_DRAW_RECT,<125,420>,<83,15>,0xFFFFED |
177 | mcall 13,,<100,15>, |
177 | mcall SF_DRAW_RECT,,<100,15>, |
178 | ; draw for PathShow |
178 | ; draw for PathShow |
179 | push dword PathShow_data_1 |
179 | push dword PathShow_data_1 |
180 | call [PathShow_draw] |
180 | call [PathShow_draw] |
Line 181... | Line 181... | ||
181 | 181 | ||
182 | push dword PathShow_data_2 |
182 | push dword PathShow_data_2 |
183 | call [PathShow_draw] |
183 | call [PathShow_draw] |
184 | popa |
184 | popa |
185 | ret |
185 | ret |
186 | ;--------------------------------------------------------------------- |
186 | ;--------------------------------------------------------------------- |
187 | draw_window: |
187 | draw_window: |
188 | mcall 12,1 |
188 | mcall SF_REDRAW,SSF_BEGIN_DRAW |
189 | xor esi,esi |
189 | xor esi,esi |
190 | mcall 0,<100,580>,<100,350>,0x34ffffff,,title |
190 | mcall SF_CREATE_WINDOW,<100,580>,<100,350>,0x34ffffff,,title |
191 | mcall 8,<1,30>,<1,15>,2,0x365732 |
191 | mcall SF_DEFINE_BUTTON,<1,30>,<1,15>,2,0x365732 |
192 | mcall ,<35,38>,,3, |
192 | mcall ,<35,38>,,3, |
193 | ; mcall ,<77,38>,,6, |
193 | ; mcall ,<77,38>,,6, |
Line 194... | Line 194... | ||
194 | mcall ,<120,45>,,7, |
194 | mcall ,<120,45>,,7, |
195 | 195 | ||
196 | mcall ,<195,20>,,4, ;¢«¥¢®,¢¯à ¢® |
196 | mcall ,<195,20>,,4, ;¢«¥¢®,¢¯à ¢® |
Line 197... | Line 197... | ||
197 | mcall ,<217,20>,,5, |
197 | mcall ,<217,20>,,5, |
198 | mcall 4,<4,6>,0x80ffffff,menu_text |
198 | mcall SF_DRAW_TEXT,<4,6>,0x80ffffff,menu_text |
199 | 199 | ||
Line 200... | Line 200... | ||
200 | mcall ,<260,6>,0x80000000,page_text |
200 | mcall ,<260,6>,0x80000000,page_text |
201 | movzx ecx, byte [page_num] |
201 | movzx ecx, byte [page_num] |
202 | mcall 47,0x800a0000,,<300,6>,0x0 |
202 | mcall SF_DRAW_NUMBER,0x800a0000,,<300,6>,0x0 |
203 | 203 | ||
204 | mcall 38,<2,535>,<20,20>,0x00aabbaa |
204 | mcall SF_DRAW_LINE,<2,535>,<20,20>,0x00aabbaa |
205 | bt [flags],2 |
205 | bt [flags],2 |
206 | jnc @f |
206 | jnc @f |
207 | call show_ControlBlock |
207 | call show_ControlBlock |
208 | mcall 4,<4,125>,0x80FF0000,[error_text] |
208 | mcall SF_DRAW_TEXT,<4,125>,0x80FF0000,[error_text] |
209 | jmp .end |
209 | jmp .end |
Line 220... | Line 220... | ||
220 | @@: |
220 | @@: |
221 | bt [flags],8 |
221 | bt [flags],8 |
222 | jnc .end |
222 | jnc .end |
223 | call show_SmartBlock |
223 | call show_SmartBlock |
224 | .end: |
224 | .end: |
225 | mcall 12,2 |
225 | mcall SF_REDRAW,SSF_END_DRAW |
226 | ret |
226 | ret |
227 | ;--------------------------------------------------------------------- |
227 | ;--------------------------------------------------------------------- |
228 | key: |
228 | key: |
229 | mcall 2 |
229 | mcall SF_GET_KEY |
230 | ; push edit1 |
230 | ; push edit1 |
231 | ; call [edit_box_key] |
231 | ; call [edit_box_key] |
232 | ; push edit1 |
232 | ; push edit1 |
233 | ; call [edit_box_draw] |
233 | ; call [edit_box_draw] |
234 | jmp still |
234 | jmp still |
235 | ;--------------------------------------------------------------------- |
235 | ;--------------------------------------------------------------------- |
236 | button: |
236 | button: |
237 | mcall 17 |
237 | mcall SF_GET_BUTTON |
238 | cmp ah,1 |
238 | cmp ah,1 |
239 | jne @f |
239 | jne @f |
240 | close: |
240 | close: |
241 | mcall -1 |
241 | mcall SF_TERMINATE_PROCESS |
242 | @@: |
242 | @@: |
243 | cmp ah,2 |
243 | cmp ah,2 |
244 | jne @f |
244 | jne @f |
245 | call get_InfoBlock |
245 | call get_InfoBlock |
246 | mov ax,[flags] |
246 | mov ax,[flags] |
Line 375... | Line 375... | ||
375 | 375 | ||
376 | bts [flags],4 |
376 | bts [flags],4 |
377 | jmp open_file |
377 | jmp open_file |
378 | ;--------------------------------------------------------------------- |
378 | ;--------------------------------------------------------------------- |
379 | open_file: |
379 | open_file: |
380 | mov [func_70.func_n],0 |
380 | mov [func_70.func_n],SSF_READ_FILE |
381 | mov [func_70.param3],512 |
381 | mov [func_70.param3],512 |
382 | mov [func_70.param4],InfoArray |
382 | mov [func_70.param4],InfoArray |
383 | mov [func_70.name],filename_area |
383 | mov [func_70.name],filename_area |
384 | bt [flags],4 |
384 | bt [flags],4 |
385 | jnc @f |
385 | jnc @f |
386 | mov [func_70.param4],SmartArray |
386 | mov [func_70.param4],SmartArray |
387 | mov [func_70.param3],1024 |
387 | mov [func_70.param3],1024 |
388 | mov [func_70.name],filename_area2 |
388 | mov [func_70.name],filename_area2 |
389 | @@: |
389 | @@: |
390 | mcall 70,func_70 |
390 | mcall SF_FILE,func_70 |
391 | test al,al ;ä ©« ©¤¥? |
391 | test al,al ;ä ©« ©¤¥? |
392 | jnz .1 |
392 | jnz .1 |
393 | mov ax,[flags] |
393 | mov ax,[flags] |
394 | bts ax,0 |
394 | bts ax,0 |
Line 413... | Line 413... | ||
413 | @@: |
413 | @@: |
414 | mov [error_text],error_open_file_string_Info |
414 | mov [error_text],error_open_file_string_Info |
415 | jmp redraw_all |
415 | jmp redraw_all |
416 | ;--------------------------------------------------------------------- |
416 | ;--------------------------------------------------------------------- |
417 | save_file: ;á®åà 塞 ä ©« |
417 | save_file: ;á®åà 塞 ä ©« |
418 | mov [func_70.func_n],2 |
418 | mov [func_70.func_n],SSF_CREATE_FILE |
419 | mov [func_70.param3],512 |
419 | mov [func_70.param3],512 |
420 | mov [func_70.param4],InfoArray |
420 | mov [func_70.param4],InfoArray |
421 | mov [func_70.name],filename_area |
421 | mov [func_70.name],filename_area |
422 | bt [flags],4 |
422 | bt [flags],4 |
423 | jnc @f |
423 | jnc @f |
424 | mov [func_70.param4],SmartArray |
424 | mov [func_70.param4],SmartArray |
425 | mov [func_70.param3],1024 |
425 | mov [func_70.param3],1024 |
426 | mov [func_70.name],filename_area2 |
426 | mov [func_70.name],filename_area2 |
427 | @@: |
427 | @@: |
428 | mcall 70,func_70 |
428 | mcall SF_FILE,func_70 |
429 | test al,al ;á®åà ñ 㤠ç®? |
429 | test al,al ;á®åà ñ 㤠ç®? |
430 | jz good |
430 | jz good |
431 | bt [flags],4 |
431 | bt [flags],4 |
432 | jnc @f |
432 | jnc @f |
433 | mov [error_text],error_save_file_string_SMART |
433 | mov [error_text],error_save_file_string_SMART |
Line 466... | Line 466... | ||
466 | mov edx,SECONDARY_CHANNEL |
466 | mov edx,SECONDARY_CHANNEL |
467 | bts [flags],5 |
467 | bts [flags],5 |
468 | .0: |
468 | .0: |
469 | mov ecx,edx |
469 | mov ecx,edx |
470 | sub ecx,7 |
470 | sub ecx,7 |
471 | mcall 46,0 |
471 | mcall SF_SET_PORTS,0 |
472 | ret |
472 | ret |
473 | ;--------------------------------------------------------------------- |
473 | ;--------------------------------------------------------------------- |
474 | get_InfoBlock: |
474 | get_InfoBlock: |
475 | call ports_ |
475 | call ports_ |
476 | push ecx edx |
476 | push ecx edx |
Line 494... | Line 494... | ||
494 | inc dx |
494 | inc dx |
495 | mov al,0xec |
495 | mov al,0xec |
496 | out dx,al |
496 | out dx,al |
Line 497... | Line 497... | ||
497 | 497 | ||
498 | push bx |
498 | push bx |
499 | mcall 5,10 |
499 | mcall SF_SLEEP,10 |
500 | pop bx |
500 | pop bx |
501 | xor cx,cx |
501 | xor cx,cx |
502 | .2: |
502 | .2: |
503 | in al,dx ;஢¥à¨âì £®â®¢®áâì |
503 | in al,dx ;஢¥à¨âì £®â®¢®áâì |
Line 519... | Line 519... | ||
519 | bts [flags],0 |
519 | bts [flags],0 |
520 | btr [flags],2 |
520 | btr [flags],2 |
521 | btr [flags],3 |
521 | btr [flags],3 |
Line 522... | Line 522... | ||
522 | 522 | ||
523 | push bx |
523 | push bx |
524 | mcall 5,10 |
524 | mcall SF_SLEEP,10 |
Line 525... | Line 525... | ||
525 | pop bx |
525 | pop bx |
526 | 526 | ||
527 | mov ax,bx |
527 | mov ax,bx |
528 | add dx,6 |
528 | add dx,6 |
529 | out dx,al |
529 | out dx,al |
530 | pop edx ecx |
530 | pop edx ecx |
531 | mcall 46,1 |
531 | mcall SF_SET_PORTS,1 |
532 | ret |
532 | ret |
533 | ;--------------------------------------------------------------------- |
533 | ;--------------------------------------------------------------------- |
534 | .error: |
534 | .error: |
535 | bts [flags],3 |
535 | bts [flags],3 |
536 | pop edx ecx |
536 | pop edx ecx |
537 | mcall 46,1 |
537 | mcall SF_SET_PORTS,1 |
538 | ret |
538 | ret |
539 | ;--------------------------------------------------------------------- |
539 | ;--------------------------------------------------------------------- |
540 | get_SmartBlock: |
540 | get_SmartBlock: |
Line 596... | Line 596... | ||
596 | out dx,al |
596 | out dx,al |
597 | add dx,6 |
597 | add dx,6 |
598 | mov al,0xb0 |
598 | mov al,0xb0 |
599 | out dx,al |
599 | out dx,al |
Line 600... | Line 600... | ||
600 | 600 | ||
Line 601... | Line 601... | ||
601 | mcall 5,10 |
601 | mcall SF_SLEEP,10 |
602 | 602 | ||
603 | mov esi,SmartArray ;®«ãç¨âì ¨ä®à¬ æ¨î |
603 | mov esi,SmartArray ;®«ãç¨âì ¨ä®à¬ æ¨î |
604 | xor edi,edi |
604 | xor edi,edi |
Line 609... | Line 609... | ||
609 | mov [esi+edi*2],ax |
609 | mov [esi+edi*2],ax |
610 | inc edi |
610 | inc edi |
611 | cmp edi,256 |
611 | cmp edi,256 |
612 | jne .3 |
612 | jne .3 |
Line 613... | Line 613... | ||
613 | 613 | ||
Line 614... | Line 614... | ||
614 | mcall 5,10 |
614 | mcall SF_SLEEP,10 |
615 | 615 | ||
616 | add dx,4 |
616 | add dx,4 |
617 | mov al,0x4f |
617 | mov al,0x4f |
Line 624... | Line 624... | ||
624 | out dx,al |
624 | out dx,al |
625 | add dx,6 |
625 | add dx,6 |
626 | mov al,0xb0 |
626 | mov al,0xb0 |
627 | out dx,al |
627 | out dx,al |
Line 628... | Line 628... | ||
628 | 628 | ||
Line 629... | Line 629... | ||
629 | mcall 5,10 |
629 | mcall SF_SLEEP,10 |
630 | 630 | ||
631 | sub dx,7 |
631 | sub dx,7 |
632 | .4: |
632 | .4: |
Line 642... | Line 642... | ||
642 | mov ax,cx |
642 | mov ax,cx |
643 | add dx,6 |
643 | add dx,6 |
644 | out dx,al |
644 | out dx,al |
645 | .end: |
645 | .end: |
646 | pop edx ecx |
646 | pop edx ecx |
647 | mcall 46,1 |
647 | mcall SF_SET_PORTS,1 |
648 | ret |
648 | ret |
649 | ;--------------------------------------------------------------------- |
649 | ;--------------------------------------------------------------------- |
650 | .error: |
650 | .error: |
651 | bts [flags],3 |
651 | bts [flags],3 |
652 | pop edx ecx |
652 | pop edx ecx |
653 | mcall 46,1 |
653 | mcall SF_SET_PORTS,1 |
654 | ret |
654 | ret |
655 | ;--------------------------------------------------------------------- |
655 | ;--------------------------------------------------------------------- |
656 | show_ControlBlock: |
656 | show_ControlBlock: |
657 | mcall 4,<4,30>,0x80000000,ctrl_text1 |
657 | mcall SF_DRAW_TEXT,<4,30>,0x80000000,ctrl_text1 |
658 | mcall ,<4,45>,,ctrl_text2 |
658 | mcall ,<4,45>,,ctrl_text2 |
659 | push dword Option_boxs |
659 | push dword Option_boxs |
660 | call [option_box_draw] |
660 | call [option_box_draw] |
661 | ; push dword edit1 |
661 | ; push dword edit1 |
662 | ; call [edit_box_draw] |
662 | ; call [edit_box_draw] |
663 | call draw_PathShow |
663 | call draw_PathShow |
Line 664... | Line 664... | ||
664 | 664 | ||
665 | mcall 8,<3,80>,<60,15>,8,0xf0f0f0 |
665 | mcall SF_DEFINE_BUTTON,<3,80>,<60,15>,8,0xf0f0f0 |
666 | mcall ,<50,30>,<82,15>,9, ; Save Info |
666 | mcall ,<50,30>,<82,15>,9, ; Save Info |
667 | mcall ,<90,30>,,10, ; Load Info |
667 | mcall ,<90,30>,,10, ; Load Info |
668 | mcall ,<50,30>,<100,15>,11, ; Save SMART |
668 | mcall ,<50,30>,<100,15>,11, ; Save SMART |
669 | mcall ,<90,30>,,12, ; Load SMART |
669 | mcall ,<90,30>,,12, ; Load SMART |
670 | mcall 4,<4,87>,0x80000000,edbx_text1 |
670 | mcall SF_DRAW_TEXT,<4,87>,0x80000000,edbx_text1 |
671 | mcall ,<7,64>,,smrt_text1 |
671 | mcall ,<7,64>,,smrt_text1 |
672 | mcall ,<4,105>,,edbx_text2 |
672 | mcall ,<4,105>,,edbx_text2 |
673 | show_TestBlock: |
673 | show_TestBlock: |
674 | ret |
674 | ret |
Line 692... | Line 692... | ||
692 | .end: |
692 | .end: |
693 | ret |
693 | ret |
694 | ;--------------------------------------------------------------------- |
694 | ;--------------------------------------------------------------------- |
695 | .page1: |
695 | .page1: |
696 | ;TABLE 1 of 11 |
696 | ;TABLE 1 of 11 |
697 | mcall 4,5*65536+25,0x80444444,t.10_19 |
697 | mcall SF_DRAW_TEXT,5*65536+25,0x80444444,t.10_19 |
698 | ab ; add ebx,300*65536 |
698 | ab ; add ebx,300*65536 |
699 | mcall ,,0x0,(InfoArray+10*2),((19-10)+1)*2 |
699 | mcall ,,0x0,(InfoArray+10*2),((19-10)+1)*2 |
700 | sb ; sub ebx,300*65536-12 |
700 | sb ; sub ebx,300*65536-12 |
701 | mcall ,,0x80444444,t.23_26 |
701 | mcall ,,0x80444444,t.23_26 |
702 | ab |
702 | ab |
Line 710... | Line 710... | ||
710 | ab |
710 | ab |
711 | mov di,[InfoArray+222*2] |
711 | mov di,[InfoArray+222*2] |
712 | @@: |
712 | @@: |
713 | bt di,4 |
713 | bt di,4 |
714 | jnc @f |
714 | jnc @f |
715 | mcall 4,,0x80000000,t.222.12.1 |
715 | mcall SF_DRAW_TEXT,,0x80000000,t.222.12.1 |
716 | @@: |
716 | @@: |
717 | bt di,4 |
717 | bt di,4 |
718 | jc @f |
718 | jc @f |
719 | mcall 4,,0x80000000,t.222.12.0 |
719 | mcall SF_DRAW_TEXT,,0x80000000,t.222.12.0 |
720 | @@: |
720 | @@: |
721 | sb |
721 | sb |
722 | mcall 4,,0x80444444,t.60_61 |
722 | mcall SF_DRAW_TEXT,,0x80444444,t.60_61 |
723 | ab |
723 | ab |
724 | mov edx,ebx |
724 | mov edx,ebx |
725 | push ebx |
725 | push ebx |
726 | mov ecx, [InfoArray+60*2] |
726 | mov ecx, [InfoArray+60*2] |
727 | bswap ecx |
727 | bswap ecx |
728 | ror ecx,16 |
728 | ror ecx,16 |
729 | mcall 47,0x800a0000,,,0x0 |
729 | mcall SF_DRAW_NUMBER,0x800a0000,,,0x0 |
730 | shr ecx,11 ;LBA in MB |
730 | shr ecx,11 ;LBA in MB |
731 | add edx,70*65536 |
731 | add edx,70*65536 |
732 | mcall ,,,,0x459a |
732 | mcall ,,,,0x459a |
733 | pop ebx |
733 | pop ebx |
Line 734... | Line 734... | ||
734 | 734 | ||
735 | sb ;CHS |
735 | sb ;CHS |
736 | mcall 4,,0x80444444,t.chs |
736 | mcall SF_DRAW_TEXT,,0x80444444,t.chs |
737 | ab |
737 | ab |
738 | mov edx,ebx |
738 | mov edx,ebx |
739 | push ebx |
739 | push ebx |
740 | movzx ecx, word [InfoArray+2] |
740 | movzx ecx, word [InfoArray+2] |
741 | xchg ch,cl |
741 | xchg ch,cl |
742 | mcall 47,0x80050000,,,0x0 |
742 | mcall SF_DRAW_NUMBER,0x80050000,,,0x0 |
743 | add edx,35*65536 |
743 | add edx,35*65536 |
744 | movzx ecx, word [InfoArray+6] |
744 | movzx ecx, word [InfoArray+6] |
745 | xchg ch,cl |
745 | xchg ch,cl |
746 | mcall 47,0x80040000,,,0x0 |
746 | mcall SF_DRAW_NUMBER,0x80040000,,,0x0 |
747 | add edx,15*65536 |
747 | add edx,15*65536 |
748 | movzx ecx, word [InfoArray+12] |
748 | movzx ecx, word [InfoArray+12] |
749 | xchg ch,cl |
749 | xchg ch,cl |
750 | mcall ;47,0x80040000,,,0x0 |
750 | mcall ;SF_DRAW_NUMBER,0x80040000,,,0x0 |
751 | add edx,20*65536 |
751 | add edx,20*65536 |
752 | push ebx edx |
752 | push ebx edx |
753 | xor edx,edx |
753 | xor edx,edx |
754 | movzx eax,word[InfoArray+2] |
754 | movzx eax,word[InfoArray+2] |
Line 758... | Line 758... | ||
758 | mul ebx |
758 | mul ebx |
759 | mul ecx |
759 | mul ecx |
760 | xchg eax,ecx |
760 | xchg eax,ecx |
761 | pop edx ebx |
761 | pop edx ebx |
762 | shr ecx,11 |
762 | shr ecx,11 |
763 | mcall 47,0x800a0000,,,0x0 |
763 | mcall SF_DRAW_NUMBER,0x800a0000,,,0x0 |
764 | pop ebx |
764 | pop ebx |
Line 765... | Line 765... | ||
765 | 765 | ||
766 | mov ax,[InfoArray+48*2] |
766 | mov ax,[InfoArray+48*2] |
767 | bt ax,8 |
767 | bt ax,8 |
768 | jnc @f |
768 | jnc @f |
769 | sb |
769 | sb |
770 | mcall 4,,0x80444444,t.48.0 |
770 | mcall SF_DRAW_TEXT,,0x80444444,t.48.0 |
771 | ab |
771 | ab |
772 | mcall ,,0x80000000,t.sup |
772 | mcall ,,0x80000000,t.sup |
773 | @@: |
773 | @@: |
774 | mov ax,[InfoArray+49*2] |
774 | mov ax,[InfoArray+49*2] |
775 | xchg al,ah |
775 | xchg al,ah |
776 | mov di,ax |
776 | mov di,ax |
777 | bt di,13 |
777 | bt di,13 |
778 | jnc @f |
778 | jnc @f |
779 | sb |
779 | sb |
780 | mcall 4,,0x80444444,t.49.13.1 |
780 | mcall SF_DRAW_TEXT,,0x80444444,t.49.13.1 |
781 | ab |
781 | ab |
782 | mcall ,,0x80000000,t.sup |
782 | mcall ,,0x80000000,t.sup |
783 | @@: |
783 | @@: |
784 | bt di,13 |
784 | bt di,13 |
785 | jc @f |
785 | jc @f |
786 | sb |
786 | sb |
787 | mcall 4,,0x80444444,t.49.13.0 |
787 | mcall SF_DRAW_TEXT,,0x80444444,t.49.13.0 |
788 | ab |
788 | ab |
789 | @@: |
789 | @@: |
790 | bt di,11 |
790 | bt di,11 |
791 | jnc @f |
791 | jnc @f |
792 | sb |
792 | sb |
793 | mcall 4,,0x80444444,t.49.11.1 |
793 | mcall SF_DRAW_TEXT,,0x80444444,t.49.11.1 |
794 | ab |
794 | ab |
795 | mcall ,,0x80000000,t.sup |
795 | mcall ,,0x80000000,t.sup |
796 | @@: |
796 | @@: |
797 | bt di,11 |
797 | bt di,11 |
798 | jc @f |
798 | jc @f |
799 | sb |
799 | sb |
800 | mcall 4,,0x80444444,t.49.11.0 |
800 | mcall SF_DRAW_TEXT,,0x80444444,t.49.11.0 |
801 | ab |
801 | ab |
802 | mcall ,,0x80000000,t.sup |
802 | mcall ,,0x80000000,t.sup |
803 | @@: |
803 | @@: |
804 | bt di,10 |
804 | bt di,10 |
805 | jnc @f |
805 | jnc @f |
806 | sb |
806 | sb |
807 | mcall 4,,0x80444444,t.49.10.1 |
807 | mcall SF_DRAW_TEXT,,0x80444444,t.49.10.1 |
808 | ab |
808 | ab |
809 | @@: |
809 | @@: |
810 | bt di,9 |
810 | bt di,9 |
811 | jnc @f |
811 | jnc @f |
812 | sb |
812 | sb |
813 | mcall 4,,0x80444444,t.49.9 |
813 | mcall SF_DRAW_TEXT,,0x80444444,t.49.9 |
814 | ab |
814 | ab |
815 | mcall ,,0x80000000,t.sup |
815 | mcall ,,0x80000000,t.sup |
816 | @@: |
816 | @@: |
817 | bt di,8 |
817 | bt di,8 |
818 | jnc @f |
818 | jnc @f |
819 | sb |
819 | sb |
820 | mcall 4,,0x80444444,t.49.8 |
820 | mcall SF_DRAW_TEXT,,0x80444444,t.49.8 |
821 | ab |
821 | ab |
822 | mcall ,,0x80000000,t.sup |
822 | mcall ,,0x80000000,t.sup |
823 | @@: |
823 | @@: |
824 | sb |
824 | sb |
825 | mcall 4,,0x80444444,t.47 |
825 | mcall SF_DRAW_TEXT,,0x80444444,t.47 |
826 | ; add ebx,10 |
826 | ; add ebx,10 |
827 | ; mcall 4,,0x80444444,t.47_ |
827 | ; mcall SF_DRAW_TEXT,,0x80444444,t.47_ |
828 | ab |
828 | ab |
829 | mov edx,ebx |
829 | mov edx,ebx |
830 | movzx ecx, word [InfoArray+47*2] |
830 | movzx ecx, word [InfoArray+47*2] |
831 | xchg ch,cl |
831 | xchg ch,cl |
832 | mcall 47,0x80050000,,,0x80000000 |
832 | mcall SF_DRAW_NUMBER,0x80050000,,,0x80000000 |
Line 833... | Line 833... | ||
833 | mov ebx,edx |
833 | mov ebx,edx |
834 | 834 | ||
835 | 835 | ||
836 | ;PART 2 of 11 |
836 | ;PART 2 of 11 |
837 | sb |
837 | sb |
838 | mcall 4,,0x80444444,t.59 |
838 | mcall SF_DRAW_TEXT,,0x80444444,t.59 |
839 | ; add ebx,10 |
839 | ; add ebx,10 |
840 | ; mcall 4,,0x80444444,t.59_ |
840 | ; mcall SF_DRAW_TEXT,,0x80444444,t.59_ |
841 | ab |
841 | ab |
842 | mov edx,ebx |
842 | mov edx,ebx |
843 | movzx ecx, word [InfoArray+59*2] |
843 | movzx ecx, word [InfoArray+59*2] |
Line 844... | Line 844... | ||
844 | xchg ch,cl |
844 | xchg ch,cl |
845 | mcall 47,0x80050000,,,0x0 |
845 | mcall SF_DRAW_NUMBER,0x80050000,,,0x0 |
846 | mov ebx,edx |
846 | mov ebx,edx |
847 | 847 | ||
848 | mov ax,[InfoArray+63*2] |
848 | mov ax,[InfoArray+63*2] |
849 | xchg al,ah |
849 | xchg al,ah |
850 | mov di,ax |
850 | mov di,ax |
851 | bt di,10 |
851 | bt di,10 |
852 | jnc @f |
852 | jnc @f |
853 | mov edx,ebx |
853 | mov edx,ebx |
854 | ; push ebx |
854 | ; push ebx |
855 | sb |
855 | sb |
856 | mcall 4,,0x80444444,t.63.10 |
856 | mcall SF_DRAW_TEXT,,0x80444444,t.63.10 |
857 | ab |
857 | ab |
858 | mcall ,,0x80000000,t.sel |
858 | mcall ,,0x80000000,t.sel |
859 | @@: |
859 | @@: |
860 | bt di,9 |
860 | bt di,9 |
861 | jnc @f |
861 | jnc @f |
862 | sb |
862 | sb |
863 | mcall 4,,0x80444444,t.63.9 |
863 | mcall SF_DRAW_TEXT,,0x80444444,t.63.9 |
864 | ab |
864 | ab |
865 | mcall ,,0x80000000,t.sel |
865 | mcall ,,0x80000000,t.sel |
866 | @@: |
866 | @@: |
867 | bt di,8 |
867 | bt di,8 |
868 | jnc @f |
868 | jnc @f |
869 | sb |
869 | sb |
870 | mcall 4,,0x80444444,t.63.8 |
870 | mcall SF_DRAW_TEXT,,0x80444444,t.63.8 |
871 | ab |
871 | ab |
872 | mcall ,,0x80000000,t.sel |
872 | mcall ,,0x80000000,t.sel |
873 | @@: |
873 | @@: |
874 | bt di,2 |
874 | bt di,2 |
875 | jnc @f |
875 | jnc @f |
876 | sb |
876 | sb |
877 | mcall 4,,0x80444444,t.63.2 |
877 | mcall SF_DRAW_TEXT,,0x80444444,t.63.2 |
878 | ab |
878 | ab |
879 | mcall ,,0x80000000,t.sup |
879 | mcall ,,0x80000000,t.sup |
880 | @@: |
880 | @@: |
881 | bt di,1 |
881 | bt di,1 |
882 | jnc @f |
882 | jnc @f |
883 | sb |
883 | sb |
884 | mcall 4,,0x80444444,t.63.1 |
884 | mcall SF_DRAW_TEXT,,0x80444444,t.63.1 |
885 | ab |
885 | ab |
886 | mcall ,,0x80000000,t.sup |
886 | mcall ,,0x80000000,t.sup |
887 | @@: |
887 | @@: |
888 | bt di,0 |
888 | bt di,0 |
889 | jnc @f |
889 | jnc @f |
890 | sb |
890 | sb |
Line 891... | Line 891... | ||
891 | mcall 4,,0x80444444,t.63.0 |
891 | mcall SF_DRAW_TEXT,,0x80444444,t.63.0 |
892 | ab |
892 | ab |
893 | mcall ,,0x80000000,t.sup |
893 | mcall ,,0x80000000,t.sup |
894 | @@: |
894 | @@: |
895 | 895 | ||
896 | ;PART 3 of 11 |
896 | ;PART 3 of 11 |
897 | sb |
897 | sb |
898 | mcall 4,,0x80444444,t.75.0_4 |
898 | mcall SF_DRAW_TEXT,,0x80444444,t.75.0_4 |
899 | ab |
899 | ab |
Line 900... | Line 900... | ||
900 | mov edx,ebx |
900 | mov edx,ebx |
901 | push ebx |
901 | push ebx |
902 | movzx ecx, byte [InfoArray+75*2+1] |
902 | movzx ecx, byte [InfoArray+75*2+1] |
903 | mcall 47,0x800a0000,,,0x0 |
903 | mcall SF_DRAW_NUMBER,0x800a0000,,,0x0 |
904 | pop ebx |
904 | pop ebx |
905 | 905 | ||
906 | ;words 76-79 - SATA |
906 | ;words 76-79 - SATA |
907 | ;.word80: |
907 | ;.word80: |
908 | ; sb |
908 | ; sb |
909 | ; mcall 4,,0x80444444,t.80 |
909 | ; mcall SF_DRAW_TEXT,,0x80444444,t.80 |
910 | ; ab |
910 | ; ab |
911 | ; mov cx,[InfoArray+80*2] |
911 | ; mov cx,[InfoArray+80*2] |
912 | ; test cx,cx |
912 | ; test cx,cx |
913 | ; jnz @f |
913 | ; jnz @f |
914 | ; mcall 4,,0x80444444,t.unk |
914 | ; mcall SF_DRAW_TEXT,,0x80444444,t.unk |
915 | ; ret |
915 | ; ret |
916 | ;@@: cmp cx,-1 |
916 | ;@@: cmp cx,-1 |
917 | ; jne @f |
917 | ; jne @f |
918 | ; mcall 4,,0x80444444,t.unk |
918 | ; mcall SF_DRAW_TEXT,,0x80444444,t.unk |
919 | ; ret |
919 | ; ret |
920 | ;@@: xchg ch,cl |
920 | ;@@: xchg ch,cl |
921 | ; mov edx,ebx |
921 | ; mov edx,ebx |
922 | ; mcall 47,0x800a0000,,,0x0 |
922 | ; mcall SF_DRAW_NUMBER,0x800a0000,,,0x0 |
923 | ; mov ebx,edx |
923 | ; mov ebx,edx |
924 | sb |
924 | sb |
925 | mcall 4,,0x80444444,t.80__ |
925 | mcall SF_DRAW_TEXT,,0x80444444,t.80__ |
926 | mov ax,[InfoArray+80*2] |
926 | mov ax,[InfoArray+80*2] |
927 | ab |
927 | ab |
928 | xchg al,ah |
928 | xchg al,ah |
929 | mov di,ax |
929 | mov di,ax |
930 | bt di,8 |
930 | bt di,8 |
931 | jnc @f |
931 | jnc @f |
932 | mcall 4,,0x80000000,t.80.8 |
932 | mcall SF_DRAW_TEXT,,0x80000000,t.80.8 |
933 | jmp .end |
933 | jmp .end |
934 | ;--------------------------------------------------------------------- |
934 | ;--------------------------------------------------------------------- |
935 | @@: |
935 | @@: |
936 | bt di,7 |
936 | bt di,7 |
937 | jnc @f |
937 | jnc @f |
938 | mcall 4,,0x80000000,t.80.7 |
938 | mcall SF_DRAW_TEXT,,0x80000000,t.80.7 |
939 | jmp .end |
939 | jmp .end |
940 | ;--------------------------------------------------------------------- |
940 | ;--------------------------------------------------------------------- |
941 | @@: |
941 | @@: |
942 | bt di,6 |
942 | bt di,6 |
943 | jnc @f |
943 | jnc @f |
944 | mcall 4,,0x80000000,t.80.6 |
944 | mcall SF_DRAW_TEXT,,0x80000000,t.80.6 |
945 | jmp .end |
945 | jmp .end |
946 | ;--------------------------------------------------------------------- |
946 | ;--------------------------------------------------------------------- |
947 | @@: |
947 | @@: |
948 | bt di,5 |
948 | bt di,5 |
949 | jnc @f |
949 | jnc @f |
950 | mcall 4,,0x80000000,t.80.5 |
950 | mcall SF_DRAW_TEXT,,0x80000000,t.80.5 |
951 | jmp .end |
951 | jmp .end |
952 | ;--------------------------------------------------------------------- |
952 | ;--------------------------------------------------------------------- |
953 | @@: |
953 | @@: |
954 | bt di,4 |
954 | bt di,4 |
955 | jnc @f |
955 | jnc @f |
956 | mcall 4,,0x80000000,t.80.4 |
956 | mcall SF_DRAW_TEXT,,0x80000000,t.80.4 |
957 | jmp .end |
957 | jmp .end |
958 | @@: |
958 | @@: |
959 | ret |
959 | ret |
960 | ;--------------------------------------------------------------------- |
960 | ;--------------------------------------------------------------------- |
961 | .page2: |
961 | .page2: |
962 | ;PART 4 of 11 |
962 | ;PART 4 of 11 |
963 | mcall 4,5*65536+25,0x80444444,t.82 |
963 | mcall SF_DRAW_TEXT,5*65536+25,0x80444444,t.82 |
964 | add ebx,10*65536 |
964 | add ebx,10*65536 |
965 | mov ax,[InfoArray+82*2] |
965 | mov ax,[InfoArray+82*2] |
966 | xchg al,ah |
966 | xchg al,ah |
967 | mov di,ax |
967 | mov di,ax |
968 | bt di,14 |
968 | bt di,14 |
969 | jnc @f |
969 | jnc @f |
970 | ad |
970 | ad |
Line 1017... | Line 1017... | ||
1017 | wba 0,t.84.0 |
1017 | wba 0,t.84.0 |
1018 | @@: |
1018 | @@: |
1019 | ret |
1019 | ret |
1020 | ;--------------------------------------------------------------------- |
1020 | ;--------------------------------------------------------------------- |
1021 | .page3: |
1021 | .page3: |
1022 | mcall 4,5*65536+25,0x80444444,t.85 |
1022 | mcall SF_DRAW_TEXT,5*65536+25,0x80444444,t.85 |
1023 | add ebx,10*65536 |
1023 | add ebx,10*65536 |
1024 | mov ax,[InfoArray+85*2] |
1024 | mov ax,[InfoArray+85*2] |
1025 | xchg al,ah |
1025 | xchg al,ah |
1026 | mov di,ax |
1026 | mov di,ax |
1027 | bt di,14 |
1027 | bt di,14 |
1028 | jnc @f |
1028 | jnc @f |
1029 | ad |
1029 | ad |
1030 | mcall 4,,0x80000000,t.85.14 |
1030 | mcall SF_DRAW_TEXT,,0x80000000,t.85.14 |
1031 | wba 13,t.85.13 |
1031 | wba 13,t.85.13 |
1032 | wba 12,t.85.12 |
1032 | wba 12,t.85.12 |
1033 | wba 10,t.85.10 |
1033 | wba 10,t.85.10 |
1034 | ; ad |
1034 | ; ad |
1035 | ; mcall 4,,0x80000000,t.85.10_ |
1035 | ; mcall SF_DRAW_TEXT,,0x80000000,t.85.10_ |
1036 | wba 9,t.85.9 |
1036 | wba 9,t.85.9 |
1037 | wba 8,t.85.8 |
1037 | wba 8,t.85.8 |
1038 | wba 7,t.85.7 |
1038 | wba 7,t.85.7 |
1039 | wba 6,t.85.6 |
1039 | wba 6,t.85.6 |
1040 | wba 5,t.85.5 |
1040 | wba 5,t.85.5 |
Line 1047... | Line 1047... | ||
1047 | xchg al,ah |
1047 | xchg al,ah |
1048 | mov di,ax |
1048 | mov di,ax |
1049 | bt di,13 |
1049 | bt di,13 |
1050 | jnc @f |
1050 | jnc @f |
1051 | ad |
1051 | ad |
1052 | mcall 4,,0x80000000,t.86.13 |
1052 | mcall SF_DRAW_TEXT,,0x80000000,t.86.13 |
1053 | wba 12,t.86.12 |
1053 | wba 12,t.86.12 |
1054 | wba 11,t.86.11 |
1054 | wba 11,t.86.11 |
1055 | wba 10,t.86.10 |
1055 | wba 10,t.86.10 |
1056 | wba 9,t.86.9 |
1056 | wba 9,t.86.9 |
1057 | wba 8,t.86.8 |
1057 | wba 8,t.86.8 |
Line 1093... | Line 1093... | ||
1093 | jnc @f |
1093 | jnc @f |
1094 | mov di,6 |
1094 | mov di,6 |
1095 | @@: |
1095 | @@: |
1096 | test di,di |
1096 | test di,di |
1097 | jz @f |
1097 | jz @f |
1098 | mcall 4,,0x80444444,t.88 |
1098 | mcall SF_DRAW_TEXT,,0x80444444,t.88 |
1099 | mov edx,ebx |
1099 | mov edx,ebx |
1100 | push ebx |
1100 | push ebx |
1101 | add edx,90*65536 |
1101 | add edx,90*65536 |
1102 | movzx ecx, word di |
1102 | movzx ecx, word di |
1103 | dec cl |
1103 | dec cl |
1104 | mcall 47,0x800a0000,,,0x0 |
1104 | mcall SF_DRAW_NUMBER,0x800a0000,,,0x0 |
1105 | pop ebx |
1105 | pop ebx |
1106 | ad |
1106 | ad |
1107 | @@: |
1107 | @@: |
1108 | xor di,di |
1108 | xor di,di |
1109 | mov ax,[InfoArray+88*2] |
1109 | mov ax,[InfoArray+88*2] |
Line 1136... | Line 1136... | ||
1136 | jnc @f |
1136 | jnc @f |
1137 | mov di,7 |
1137 | mov di,7 |
1138 | @@: |
1138 | @@: |
1139 | test di,di |
1139 | test di,di |
1140 | jz @f |
1140 | jz @f |
1141 | mcall 4,,0x80444444,t.88.1_6 |
1141 | mcall SF_DRAW_TEXT,,0x80444444,t.88.1_6 |
1142 | mov edx,ebx |
1142 | mov edx,ebx |
1143 | push ebx |
1143 | push ebx |
1144 | add edx,90*65536 |
1144 | add edx,90*65536 |
1145 | movzx ecx, word di |
1145 | movzx ecx, word di |
1146 | dec cl |
1146 | dec cl |
1147 | mcall 47,0x800a0000,,,0x0 |
1147 | mcall SF_DRAW_NUMBER,0x800a0000,,,0x0 |
1148 | pop ebx |
1148 | pop ebx |
1149 | ad |
1149 | ad |
1150 | @@: |
1150 | @@: |
1151 | mz t.89, |
1151 | mz t.89, |
1152 | mz t.90, |
1152 | mz t.90, |
Line 1161... | Line 1161... | ||
1161 | mz t.98_99, |
1161 | mz t.98_99, |
1162 | mz t.100_103, |
1162 | mz t.100_103, |
1163 | mz t.104, |
1163 | mz t.104, |
Line 1164... | Line 1164... | ||
1164 | 1164 | ||
1165 | ;PART 6 of 11 ? |
1165 | ;PART 6 of 11 ? |
1166 | mcall 4,,0x80444444,t.106 |
1166 | mcall SF_DRAW_TEXT,,0x80444444,t.106 |
1167 | add ebx,12 |
1167 | add ebx,12 |
1168 | mov ax,[InfoArray+106*2] |
1168 | mov ax,[InfoArray+106*2] |
1169 | xchg ah,al |
1169 | xchg ah,al |
1170 | mov di,ax |
1170 | mov di,ax |
1171 | bt di,13 |
1171 | bt di,13 |
1172 | jnc @f |
1172 | jnc @f |
1173 | mcall 4,,0x80444444,t.106.13 |
1173 | mcall SF_DRAW_TEXT,,0x80444444,t.106.13 |
1174 | add ebx,15 |
1174 | add ebx,15 |
1175 | @@: |
1175 | @@: |
1176 | bt di,12 |
1176 | bt di,12 |
1177 | jnc @f |
1177 | jnc @f |
1178 | mcall 4,,0x80444444,t.106.12 |
1178 | mcall SF_DRAW_TEXT,,0x80444444,t.106.12 |
1179 | add ebx,15 |
1179 | add ebx,15 |
1180 | @@: |
1180 | @@: |
1181 | mcall 4,,0x80444444,t.106.0_3 |
1181 | mcall SF_DRAW_TEXT,,0x80444444,t.106.0_3 |
1182 | ab |
1182 | ab |
1183 | shl di,12 |
1183 | shl di,12 |
1184 | shr di,12 |
1184 | shr di,12 |
1185 | movzx ecx,di |
1185 | movzx ecx,di |
1186 | mov edx,ebx |
1186 | mov edx,ebx |
1187 | mcall 47,0x800a0000,,,0x0 |
1187 | mcall SF_DRAW_NUMBER,0x800a0000,,,0x0 |
1188 | mov ebx,edx |
1188 | mov ebx,edx |
Line 1189... | Line 1189... | ||
1189 | sb |
1189 | sb |
1190 | 1190 | ||
1191 | mz t.107, |
1191 | mz t.107, |
1192 | ;108 - 111 ¤®¡ ¢¨âì |
1192 | ;108 - 111 ¤®¡ ¢¨âì |
1193 | mz t.117_118, |
1193 | mz t.117_118, |
1194 | ret |
1194 | ret |
1195 | ;--------------------------------------------------------------------- |
1195 | ;--------------------------------------------------------------------- |
1196 | .page5: |
1196 | .page5: |
1197 | ; mcall 4,5*65536+25,0x80444444,t.85 |
1197 | ; mcall SF_DRAW_TEXT,5*65536+25,0x80444444,t.85 |
1198 | ret |
1198 | ret |
1199 | ;--------------------------------------------------------------------- |
1199 | ;--------------------------------------------------------------------- |
1200 | show_SmartBlock: |
1200 | show_SmartBlock: |
1201 | bt [flags],1 |
1201 | bt [flags],1 |
1202 | jnc .end |
1202 | jnc .end |
Line 1203... | Line 1203... | ||
1203 | bt [flags],3 |
1203 | bt [flags],3 |
1204 | jc .end |
1204 | jc .end |
1205 | 1205 | ||
1206 | cmp byte [SmartArray+2],0 |
1206 | cmp byte [SmartArray+2],0 |
1207 | je .end |
1207 | je .end |
1208 | mcall 4,5*65536+25,0x80444444,s.title |
1208 | mcall SF_DRAW_TEXT,5*65536+25,0x80444444,s.title |
1209 | ad |
1209 | ad |
1210 | movzx ax, byte [SmartArray+2] |
1210 | movzx ax, byte [SmartArray+2] |
Line 1217... | Line 1217... | ||
1217 | call .find |
1217 | call .find |
1218 | push edx |
1218 | push edx |
Line 1219... | Line 1219... | ||
1219 | 1219 | ||
1220 | mov edx,ebx |
1220 | mov edx,ebx |
1221 | movzx ecx,al |
1221 | movzx ecx,al |
1222 | mcall 47,0x80030000,,,0x0 |
1222 | mcall SF_DRAW_NUMBER,0x80030000,,,0x0 |
1223 | mov ebx,edx |
1223 | mov ebx,edx |
1224 | add ebx,30*65536 |
1224 | add ebx,30*65536 |
1225 | pop edx |
1225 | pop edx |
1226 | test edx,edx |
1226 | test edx,edx |
Line 1230... | Line 1230... | ||
1230 | mov al,[eax+2] |
1230 | mov al,[eax+2] |
1231 | mov ecx,0x80000000 |
1231 | mov ecx,0x80000000 |
1232 | and al,1 |
1232 | and al,1 |
1233 | jz .1 |
1233 | jz .1 |
1234 | ; mov ecx,0x80ff0000 |
1234 | ; mov ecx,0x80ff0000 |
1235 | .1: mcall 4,,, |
1235 | .1: mcall SF_DRAW_TEXT,,, |
1236 | sub ebx,30*65536 |
1236 | sub ebx,30*65536 |
Line 1237... | Line 1237... | ||
1237 | 1237 | ||
1238 | mov ecx,[esp] |
1238 | mov ecx,[esp] |
1239 | inc ecx |
1239 | inc ecx |
1240 | movzx ecx, byte [ecx] |
1240 | movzx ecx, byte [ecx] |
1241 | add ebx,400*65536 |
1241 | add ebx,400*65536 |
1242 | mov edx,ebx |
1242 | mov edx,ebx |
1243 | mcall 47,0x800a0000,,,0x0 |
1243 | mcall SF_DRAW_NUMBER,0x800a0000,,,0x0 |
1244 | mov ecx,[esp] |
1244 | mov ecx,[esp] |
1245 | add ecx,4 |
1245 | add ecx,4 |
1246 | movzx ecx, byte [ecx] |
1246 | movzx ecx, byte [ecx] |
1247 | add edx,30*65536 |
1247 | add edx,30*65536 |
1248 | mcall 47,0x800a0000,,,0x0 |
1248 | mcall SF_DRAW_NUMBER,0x800a0000,,,0x0 |
1249 | mov ebx,edx |
1249 | mov ebx,edx |
Line 1250... | Line 1250... | ||
1250 | sub ebx,(30+400)*65536 |
1250 | sub ebx,(30+400)*65536 |
1251 | 1251 | ||
Line 1658... | Line 1658... | ||
1658 | error_text dd no_error_text |
1658 | error_text dd no_error_text |
1659 | ;--------------------------------------------------------------------- |
1659 | ;--------------------------------------------------------------------- |
1660 | system_dir_Boxlib db '/sys/lib/box_lib.obj',0 |
1660 | system_dir_Boxlib db '/sys/lib/box_lib.obj',0 |
1661 | system_dir_ProcLib db '/sys/lib/proc_lib.obj',0 |
1661 | system_dir_ProcLib db '/sys/lib/proc_lib.obj',0 |
1662 | ;--------------------------------------------------------------------- |
1662 | ;--------------------------------------------------------------------- |
1663 | head_f_i: |
- | |
1664 | head_f_l db 'System error',0 |
- | |
1665 | - | ||
1666 | if lang eq it |
- | |
1667 | err_message_found_lib1 db 'box_lib.obj - Non trovato!',0 |
- | |
1668 | err_message_found_lib2 db 'proc_lib.obj - Non trovato!',0 |
- | |
1669 | - | ||
1670 | err_message_import1 db 'box_lib.obj - Import errato!',0 |
- | |
1671 | err_message_import2 db 'proc_lib.obj - Import errato!',0 |
- | |
1672 | - | ||
1673 | else |
- | |
1674 | err_message_found_lib1 db 'box_lib.obj - Not found!',0 |
- | |
1675 | err_message_found_lib2 db 'proc_lib.obj - Not found!',0 |
- | |
1676 | - | ||
1677 | err_message_import1 db 'box_lib.obj - Wrong import!',0 |
- | |
1678 | err_message_import2 db 'proc_lib.obj - Wrong import!',0 |
- | |
1679 | end if |
- | |
1680 | ;--------------------------------------------------------------------- |
- | |
1681 | align 4 |
1663 | align 4 |
1682 | l_libs_start: |
1664 | l_libs_start: |
Line 1683... | Line 1665... | ||
1683 | 1665 | ||
1684 | library01 l_libs system_dir_Boxlib+9, cur_dir_path, library_path, system_dir_Boxlib, \ |
- | |
Line 1685... | Line 1666... | ||
1685 | err_message_found_lib1, head_f_l, Box_lib_import, err_message_import1, head_f_i |
1666 | library01 l_libs system_dir_Boxlib+9, library_path, system_dir_Boxlib, Box_lib_import |
1686 | - | ||
Line 1687... | Line 1667... | ||
1687 | library02 l_libs system_dir_ProcLib+9, cur_dir_path, library_path, system_dir_ProcLib, \ |
1667 | |
1688 | err_message_found_lib2, head_f_l, ProcLib_import, err_message_import2, head_f_i |
1668 | library02 l_libs system_dir_ProcLib+9, library_path, system_dir_ProcLib, ProcLib_import |