Rev 94 | Rev 96 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 94 | Rev 95 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | cd_current_pointer_of_input dd 0 |
2 | cd_current_pointer_of_input dd 0 |
3 | cd_current_pointer_of_input_2 dd 0 |
3 | cd_current_pointer_of_input_2 dd 0 |
4 | cd_mem_location dd 0 |
4 | cd_mem_location dd 0 |
5 | cd_counter_block dd 0 |
5 | cd_counter_block dd 0 |
6 | endg |
6 | IDE_Channel_1 db 0 |
- | 7 | IDE_Channel_2 db 0 |
|
- | 8 | endg |
|
7 | 9 | ||
Line 8... | Line 10... | ||
8 | CDDataBuf equ 0x7000 |
10 | CDDataBuf equ 0x7000 |
Line 9... | Line 11... | ||
9 | 11 | ||
Line 14... | Line 16... | ||
14 | je reserve_ok2 |
16 | je reserve_ok2 |
15 | 17 | ||
Line 16... | Line 18... | ||
16 | sti |
18 | sti |
17 | call change_task |
19 | call change_task |
18 | jmp reserve_hd1 |
20 | jmp reserve_cd |
Line 19... | Line 21... | ||
19 | 21 | ||
Line 20... | Line 22... | ||
20 | reserve_ok2: |
22 | reserve_ok2: |
21 | 23 | ||
Line 27... | Line 29... | ||
27 | pop eax |
29 | pop eax |
28 | sti |
30 | sti |
29 | ret |
31 | ret |
30 | 32 | ||
Line -... | Line 33... | ||
- | 33 | reserve_cd_channel: |
|
- | 34 | cmp [ChannelNumber],1 |
|
- | 35 | jne .IDE_Channel_2 |
|
- | 36 | .IDE_Channel_1: |
|
- | 37 | cli |
|
- | 38 | cmp [IDE_Channel_1],0 |
|
- | 39 | je .reserve_ok_1 |
|
- | 40 | sti |
|
- | 41 | call change_task |
|
- | 42 | jmp .IDE_Channel_1 |
|
- | 43 | .IDE_Channel_2: |
|
- | 44 | cli |
|
- | 45 | cmp [IDE_Channel_2],0 |
|
- | 46 | je .reserve_ok_2 |
|
- | 47 | sti |
|
- | 48 | call change_task |
|
- | 49 | jmp .IDE_Channel_1 |
|
- | 50 | .reserve_ok_1: |
|
- | 51 | mov [IDE_Channel_1],1 |
|
- | 52 | ret |
|
- | 53 | .reserve_ok_2: |
|
- | 54 | mov [IDE_Channel_2],1 |
|
- | 55 | ret |
|
- | 56 | ||
- | 57 | free_cd_channel: |
|
- | 58 | cmp [ChannelNumber],1 |
|
- | 59 | jne .IDE_Channel_2 |
|
- | 60 | .IDE_Channel_1: |
|
- | 61 | mov [IDE_Channel_1],0 |
|
- | 62 | ret |
|
- | 63 | .IDE_Channel_2: |
|
- | 64 | mov [IDE_Channel_2],0 |
|
- | 65 | ret |
|
- | 66 | ||
31 | cd_status dd 0 |
67 | cd_status dd 0 |
Line 32... | Line 68... | ||
32 | 68 | ||
33 | ;---------------------------------------------------------------- |
69 | ;---------------------------------------------------------------- |
34 | ; |
70 | ; |