Changeset 531 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src
- Timestamp:
- Mar 30, 2013, 6:50:48 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/FloppyDrive.asm
r530 r531 64 64 65 65 %else ; if XT build 66 cmp WORD [es:BIOS_DISKETTE_INTERRUPT_40h*4+2], 0C000h ; Any ROM segment? (set CF if not)66 cmp BYTE [es:BIOS_DISKETTE_INTERRUPT_40h*4+3], 0C0h ; Any ROM segment? (set CF if not) 67 67 %endif ; USE_AT 68 68 cmc … … 134 134 js .UseBIOSorBDA ; We didn't add in any drives, counts here are not valid 135 135 136 adc al ,1 ; adds in the drive count bit, and adds 1 for count vs. 0-index,136 adc al, 1 ; adds in the drive count bit, and adds 1 for count vs. 0-index, 137 137 jmp .FinishCalc ; need to clear AH on the way out, and add in minimum drive numbers 138 138 … … 175 175 cwd ; Floppy Drive 00h 176 176 int BIOS_DISKETTE_INTERRUPT_40h 177 mov al, dl; Number of Floppy Drives to AL177 xchg dx, ax ; Number of Floppy Drives to AL 178 178 179 179 pop dx … … 187 187 LOAD_BDA_SEGMENT_TO es, ax 188 188 mov al, [es:BDA.wEquipment] ; Load Equipment WORD low byte 189 190 %ifdef USE_UNDOC_INTEL 191 and al, 0C1h 192 eAAM 64 193 %else 189 194 mov ah, al ; Copy it to AH 190 195 and ax, 0C001h ; Leave bits 15..14 and 0 191 196 eROL_IM ah, 2 ; EW low byte bits 7..6 to 1..0 197 %endif ; USE_UNDOC_INTEL 198 192 199 add al, ah ; AL = Floppy Drive count 193 %endif 200 %endif ; USE_AT 194 201 195 202 pop es -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm
r526 r531 56 56 mov al, [cs:ROMVARS.bStealSize] 57 57 sub [BDA.wBaseMem], ax 58 mov ax, [BDA.wBaseMem] 58 mov ax, [BDA.wBaseMem] ; We can save a byte here by using INT 12h instead 59 59 eSHL_IM ax, 6 ; Segment to first stolen kB (*=40h) 60 60 ; Fall to .InitializeRamvars
Note:
See TracChangeset
for help on using the changeset viewer.