Changeset 78 for trunk/bootcode/regular/driveio.asm
- Timestamp:
- Apr 8, 2017, 12:26:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/regular/driveio.asm
r67 r78 39 39 mov es, ax 40 40 mov bx, offset Configuration 41 mov dx, 0080h ; First harddrive, Sector 55... 42 mov cx, 0037h 41 xor dh, dh 42 mov dl, [BIOS_BootDisk] ; Disk we booted from 43 mov cx, 0037h ; Sector 55 (CHS) 43 44 mov ax, 0201h ; Function 02, read 1 sector... 44 45 int 13h … … 86 87 ; ES == CS 87 88 mov bx, offset Configuration 88 mov dx, 0080h ; First harddrive, Sector 55... 89 mov cx, 0037h 89 xor dh, dh 90 mov dl, [BIOS_BootDisk] ; Disk we booted from 91 mov cx, 0037h ; Sector 55 (CHS) 90 92 91 93 ; Changed from 5 to calculated value … … 173 175 mov di, offset LBASwitchTable 174 176 mov dh, [TotalHarddiscs] 175 mov dl, 80h 177 mov dl, 80h ; First disk to process 176 178 DIOILUT_DriveLoop: 177 179 push dx … … 197 199 mov bptr ds:[di], ah ; Save that value 198 200 inc di ; Go to next BYTE 199 inc dl 200 dec dh 201 jnz DIOILUT_DriveLoop 201 inc dl ; Next disk 202 dec dh ; Decrease disks to process 203 jnz DIOILUT_DriveLoop ; Next disk if DH != 0 202 204 ret 203 205 DriveIO_InitLBASwitchTable EndP … … 800 802 ; checking the AiR-BOOT MBR. 801 803 ; 802 cmp dl, 80h803 j aDriveIO_ProtectMBR_is_not_bootdisk804 cmp dl, [BIOS_BootDisk] 805 jne DriveIO_ProtectMBR_is_not_bootdisk 804 806 805 807 ;
Note:
See TracChangeset
for help on using the changeset viewer.