Changeset 567 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization/Initialize.asm
- Timestamp:
- May 26, 2014, 1:25:15 PM (11 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/Initialize.asm
r561 r567 47 47 mov [BIOS_BOOT_LOADER_INTERRUPT_19h*4+2], cs 48 48 49 %ifdef MODULE_VERY_LATE_INIT IALIZATION49 %ifdef MODULE_VERY_LATE_INIT 50 50 push es 51 ; Install special INT 13h hand er that initializes XTIDE Universal BIOS51 ; Install special INT 13h handler that initializes XTIDE Universal BIOS 52 52 ; when our INT 19h is not called 53 53 les ax, [BIOS_DISK_INTERRUPT_13h*4] ; Load system INT 13h handler … … 95 95 ; Nothing 96 96 ; Corrupts registers: 97 ; AX, CX, DX, SI, DI97 ; AX, BX, CX, DX, SI, DI 98 98 ;-------------------------------------------------------------------- 99 99 %ifdef MODULE_COMPATIBLE_TABLES … … 101 101 %ifndef USE_AT 102 102 test BYTE [cs:ROMVARS.wFlags], FLG_ROMVARS_FULLMODE 103 jz SHORT . CompatibleDPTsCreated; Only Full operating mode has extra RAM to spare103 jz SHORT .SkipToReturn ; Only Full operating mode has extra RAM to spare 104 104 %endif 105 105 106 mov bx, HD0_DPT_POINTER_41h * 4 106 107 mov dl, 80h 107 call FindDPT_ForDriveNumberInDL ; DPT to DS:DI 108 jc SHORT .FindForDrive81h ; Store nothing if not our drive 108 .FindForNextDrive: 109 call FindDPT_ForDriveNumberInDL ; DPT to DS:DI 110 jc SHORT .NextDrive ; Store nothing if not our drive 109 111 112 push dx 110 113 call CompatibleDPT_CreateToAXSIforDriveDL 111 mov [es:HD0_DPT_POINTER_41h*4], si 112 mov [es:HD0_DPT_POINTER_41h*4+2], ax 114 pop dx 113 115 114 .FindForDrive81h: 115 mov dl, 81h 116 call FindDPT_ForDriveNumberInDL 117 jc SHORT .CompatibleDPTsCreated 116 mov [es:bx], si 117 mov [es:bx+2], ax 118 118 119 call CompatibleDPT_CreateToAXSIforDriveDL 120 mov [es:HD1_DPT_POINTER_46h*4], si 121 mov [es:HD1_DPT_POINTER_46h*4+2], ax 122 .CompatibleDPTsCreated: 119 .NextDrive: 120 inc dx 121 add bx, (HD1_DPT_POINTER_46h - HD0_DPT_POINTER_41h) * 4 122 cmp dl, 82h 123 jb SHORT .FindForNextDrive 124 125 .SkipToReturn: 123 126 %endif ; MODULE_COMPATIBLE_TABLES 124 127 ret
Note:
See TracChangeset
for help on using the changeset viewer.