Changeset 95
- Timestamp:
- Apr 8, 2017, 12:26:39 AM (8 years ago)
- Location:
- trunk/bootcode/regular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/regular/driveio.asm
r84 r95 25 25 DB 'DRIVEIO',0 26 26 ENDIF 27 28 ; 29 ; Check if INT13X extensions are supported. 30 ; AirBoot requires these extensions, and will halt if they are not available. 31 ; Modified: AX, BX, CX, DX, CF 32 DriveIO_CheckFor13extensions Proc Near 33 mov ah, 41h 34 mov bx, 55AAh 35 mov dl, [BIOS_BootDisk] ; We check using the boot-disk 36 int 13h 37 jc PCCF13E_NotFound ; Error occured 38 cmp bx, 0AA55h 39 je PCCF13E_Found 40 PCCF13E_NotFound: 41 ret 42 PCCF13E_Found: 43 and cx, 1 ; Check 42h-44h,47h,48h supported 44 jz PCCF13E_NotFound ; Sig OK but no support, strange beast 45 mov byte ptr [CurIO_UseExtension], 1 46 ret 47 DriveIO_CheckFor13extensions EndP 48 27 49 28 50 ; Note: Some routines set DS/ES to CS or even address via CS, even if its not -
trunk/bootcode/regular/other.asm
r78 r95 198 198 mov [bx], al 199 199 200 call DriveIO_LoadMasterLVMSector ; returns NC if no valid LVM record found 200 201 ; CHECKSUM CALCULATION DOES NOT WORK YET HERE 202 ; CRC TABLE NOT INITED YET 203 ; Returns NC if no valid LVM record found 204 call DriveIO_LoadMasterLVMSector 201 205 202 206 pushf … … 343 347 344 348 ; This sets [CurIO_UseExtension] flag. 345 call PRECRAP_CheckFor13extensions349 call DriveIO_CheckFor13extensions 346 350 mov al,[CurIO_UseExtension] 347 351 test al,al … … 441 445 ret 442 446 AFTERCRAP_Main EndP 443 444 445 446 447 PRECRAP_CheckFor13extensions Proc Near448 mov ah, 41h449 mov bx, 55AAh450 mov dl, [BIOS_BootDisk] ; We check using the boot-disk451 int 13h452 cmp bx, 0AA55h453 je PCCF13E_Found454 PCCF13E_NotFound:455 ret456 PCCF13E_Found:457 and cx, 1458 jz PCCF13E_NotFound459 mov byte ptr [CurIO_UseExtension], 1460 ret461 PRECRAP_CheckFor13extensions EndP462 447 463 448
Note:
See TracChangeset
for help on using the changeset viewer.