Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6842 → Rev 6843

/kernel/trunk/detect/biosdisk.inc
11,6 → 11,7
; Detect all BIOS hard drives.
; diamond, 2008
; Do not include USB mass storages. CleverMouse, 2013
; Read the number of sectors, bytes per sector. dunkaist, 2017
 
xor cx, cx
mov es, cx
65,6 → 66,7
mov al, dl
stosb
push ds
push si
lds si, [es:si+1Ah]
mov al, [si+6]
and al, 0xF
82,8 → 84,9
; mov ax, -1
@@:
stosw
pop si
pop ds
jmp bddc2
jmp bddc3
.noide:
cmp word [es:si], 42h
jb .nousb
103,6 → 106,13
; stosb
; mov ax, -1
; stosw
bddc3:
movzx eax, word[es:si+24]
stosd
mov eax, [es:si+16]
stosd
mov eax, [es:si+20]
stosd
bddc2:
cmp cl, [es:0x475]
jae bdde
/kernel/trunk/detect/sear_par.inc
216,7 → 216,8
push 'bd'
.bdloop:
; 3b. Get the drive number for using in /bd* name.
movzx eax, byte [BiosDisksData+esi*4]
lea eax, [esi*4]
movzx eax, [BiosDisksData+eax*4+BiosDiskData.DriveNumber]
sub al, 80h
; 3c. Convert eax to decimal and store starting with [esp+3].
; First 2 bytes in [esp] are "bd".