Changeset 568 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm
- Timestamp:
- Dec 21, 2014, 5:37:53 PM (10 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm
r567 r568 72 72 %endif 73 73 74 mov al, [cs:ROMVARS.wFlags] ; Configurator set to always scan?75 or al, [es:BDA.bKBFlgs1] ; Or, did the user hold down the ALT key?76 and al, 8 ; 8 = alt key depressed, same as FLG_ROMVARS_SERIAL_ALWAYSDETECT74 mov al, [cs:ROMVARS.wFlags] ; Configurator set to always scan? 75 or al, [es:BDA.bKBFlgs1] ; Or, did the user hold down the ALT key? 76 and al, 8 ; 8 = alt key depressed, same as FLG_ROMVARS_SERIAL_ALWAYSDETECT 77 77 jnz .DriveDetectLoop 78 78 %endif … … 89 89 ; 90 90 mov cx, [RAMVARS.wDrvCntAndFlopCnt] ; Our count of hard disks 91 92 91 mov al, [es:BDA.bHDCount] 93 add cl, al ; Add our drives to the system count 94 mov [es:BDA.bHDCount], cl 92 add [es:BDA.bHDCount], cl ; Add our drives to the system count 95 93 or al, 80h ; Or in hard disk flag 96 94 mov [RAMVARS.bFirstDrv], al ; Store first drive number … … 118 116 inc ax ; low order bit, indicating floppy drive exists 119 117 120 mov ah, [es:BDA.wEquipment] ; Load Equipment WORD low byte121 and ah, 03eh ; Mask off drive number and drives present bit118 mov ah, 3Eh ; AND mask to AH (all bits set except floppy drive count/present) 119 and ah, [es:BDA.wEquipment] ; Load Equipment WORD low byte and mask off drive number and drives present bit 122 120 or al, ah ; Or in new values 123 121 mov [es:BDA.wEquipment], al ; and store 124 122 125 mov al, 1 eh ; BDA pointer to Floppy DPT123 mov al, 1Eh ; BDA pointer to Floppy DPT 126 124 mov si, AH8h_FloppyDPT 127 125 call Interrupts_InstallHandlerToVectorInALFromCSSI
Note:
See TracChangeset
for help on using the changeset viewer.