Changeset 175
- Timestamp:
- Apr 8, 2017, 12:28:12 AM (8 years ago)
- Location:
- trunk/bootcode
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/airboot.asm
r173 r175 1136 1136 mov ah, 03h ; BIOS write disk (legacy) 1137 1137 int 13h ; Call BIOS 1138 sti ; Enable ints 1138 1139 ;! 1139 1140 ;! TODO: Check success -
trunk/bootcode/airboot.md5
r174 r175 1 1e73b211b994373d8d30cee041699a94airboot.bin1 8cf5e60c163921dd44a401115ca72682 airboot.bin -
trunk/bootcode/regular/driveio.asm
r170 r175 35 35 mov dl, [BIOS_BootDisk] ; We check using the boot-disk 36 36 int 13h 37 sti 37 38 38 39 IFDEF AUX_DEBUG … … 47 48 mov ah, 48h 48 49 int 13h 50 sti 49 51 call DEBUG_DumpRegisters 50 52 ;~ call AuxIO_DumpSector … … 97 99 mov ax, 0201h ; Function 02, read 1 sector... 98 100 int 13h 101 sti ; Enable ints 99 102 jnc DIOLC_NoError 100 103 call MBR_LoadError ; Will Abort BootUp … … 165 168 ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 166 169 int 13h 170 sti 167 171 jnc DIOSC_NoError 168 172 call MBR_SaveError ; Will Abort BootUp … … 179 183 xor dl, dl 180 184 int 13h 185 sti 181 186 xor dx, dx ; Cylinder=0, Head=0 182 187 mov cx, 1 ; Sector=1, Drive=0 … … 248 253 mov ah, 08h 249 254 int 13h ; DISK - GET DRIVE PARAMETERS 255 sti ; Enable ints 250 256 mov ah, 0FBh ; Assume 255 heads/63 sectors, if error 251 257 jc DIOILUT_Error … … 802 808 mov ax, 0201h ; Function 2 - Load Sector 803 809 int 13h 810 sti ; enable ints 804 811 jnc DIOLS_Success 805 812 dec di ; decrement retry count … … 991 998 mov ah, 42h ; read function 992 999 int 13h ; transfer to bios 1000 sti ; enable ints 993 1001 994 1002 ; Error occured … … 1063 1071 mov ah, 43h ; write function 1064 1072 int 13h ; transfer to bios 1073 sti ; enable ints 1065 1074 1066 1075 ; Error occured … … 1501 1510 mov ax, 0301h ; Function 3 - Write Sector 1502 1511 int 13h 1512 sti ; Enable ints 1503 1513 jnc DIOSS_Success 1504 1514 dec di ; decrement retry count … … 1684 1694 mov ah, 08h ; Get Disk Parameters 1685 1695 int 13h ; Call BIOS 1696 sti ; Enable ints 1686 1697 1687 1698 ; CF=1 or AH!=0 indicates error … … 1722 1733 mov ah, 48h ; Get Extended Disk Parameters 1723 1734 int 13h ; Call BIOS 1735 sti ; Enable ints 1724 1736 1725 1737 ; CF=1 or AH!=0 indicates error
Note:
See TracChangeset
for help on using the changeset viewer.