Rev 61 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 61 | Rev 63 | ||
---|---|---|---|
Line 521... | Line 521... | ||
521 | je fs_yesharddisk |
521 | je fs_yesharddisk |
522 | cmp eax,'HARD' |
522 | cmp eax,'HARD' |
523 | jne fs_noharddisk |
523 | jne fs_noharddisk |
Line 524... | Line 524... | ||
524 | 524 | ||
525 | fs_yesharddisk: |
- | |
526 | call reserve_hd1 |
- | |
527 | 525 | fs_yesharddisk: |
|
528 | cmp dword [esp+20],8 ; LBA read |
526 | cmp dword [esp+20],8 ; LBA read |
529 | jne fs_no_LBA_read |
527 | jne fs_no_LBA_read |
530 | mov eax,[esp+16] ; LBA block to read |
528 | mov eax,[esp+16] ; LBA block to read |
531 | lea ebx,[edi+1+12] ; pointer to FIRST/SECOND/THIRD/FOURTH |
529 | lea ebx,[edi+1+12] ; pointer to FIRST/SECOND/THIRD/FOURTH |
Line 535... | Line 533... | ||
535 | 533 | ||
Line 536... | Line 534... | ||
536 | fs_no_LBA_read: |
534 | fs_no_LBA_read: |
537 | 535 | ||
- | 536 | cmp byte [edi+1+11],0 ; directory read |
|
538 | cmp byte [edi+1+11],0 ; directory read |
537 | je fs_give_dir1 |
539 | je fs_give_dir1 |
538 | call reserve_hd1 |
Line 540... | Line 539... | ||
540 | fs_for_new_semantic: |
539 | fs_for_new_semantic: |
541 | call choice_necessity_partition |
540 | call choice_necessity_partition |
542 | 541 | ||
543 | fs_yesharddisk_all: |
542 | fs_yesharddisk_all: |
544 | mov eax,1 |
543 | mov eax,1 |
545 | cmp dword [esp+20], 16 |
544 | cmp dword [esp+20], 16 |
546 | jnz @f |
545 | jnz @f |
547 | neg eax |
546 | neg eax |
548 | @@: mov ebx, [esp+24+24] |
547 | @@: mov ebx, [esp+24+24] |
- | 548 | cmp [hdpos],0 ; is hd base set? |
|
- | 549 | jz hd_err_return |
|
- | 550 | cmp [fat32part],0 ; is partition set? |
|
549 | cmp [hdpos],0 ; is hd base set? |
551 | jnz @f |
- | 552 | hd_err_return: |
|
Line 550... | Line 553... | ||
550 | jz file_system_return ; no |
553 | and [hd1_status], 0 |
551 | cmp [fat32part],0 ; is partition set? |
554 | jmp file_system_return |
Line 552... | Line 555... | ||
552 | jz file_system_return ; no |
555 | @@: |
Line 897... | Line 900... | ||
897 | mov eax,2 |
900 | mov eax,2 |
898 | ret |
901 | ret |
Line 899... | Line 902... | ||
899 | 902 | ||
Line 900... | Line 903... | ||
900 | lbarl1: |
903 | lbarl1: |
Line 901... | Line 904... | ||
901 | 904 | ||
902 | ; call reserve_hd1 |
905 | call reserve_hd1 |
Line 903... | Line 906... | ||
903 | 906 |