1,52 → 1,3 |
device_detect: ; f1811 |
mcall 18,11,1,device_present_buffer |
mov [device_present.rd],1 |
cmp [device_present_buffer.fd],0 |
je @f |
mov [device_present.fd],1 |
@@: |
mov al,[device_present_buffer.hd_cd] |
test al,10b |
je @f |
mov [device_present.cd3],1 |
jmp .ide2 |
@@: |
test al,1b |
je @f |
mov [device_present.hd3],1 |
.ide2: |
@@: |
test al,1000b |
je @f |
mov [device_present.cd2],1 |
jmp .ide1 |
@@: |
test al,100b |
je @f |
mov [device_present.hd2],1 |
.ide1: |
@@: |
test al,100000b |
je @f |
mov [device_present.cd1],1 |
jmp .ide0 |
@@: |
test al,10000b |
je @f |
mov [device_present.hd1],1 |
.ide0: |
@@: |
test al,10000000b |
je @f |
mov [device_present.cd0],1 |
jmp .end |
@@: |
test al,1000000b |
je @f |
mov [device_present.hd0],1 |
.end: |
@@: |
ret |
;--------------------------------------------------------------------- |
device_detect_f70: |
mov ax,[select_disk_char] |