- Timestamp:
- Feb 28, 2011, 12:16:21 PM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootVars.asm
r116 r117 74 74 BootVars_SwitchBackToPostStack: 75 75 pop ax ; Pop return address 76 %ifndef USE_ 18676 %ifndef USE_386 77 77 cli ; Disable interrupts 78 %endif79 78 LOAD_BDA_SEGMENT_TO ss, sp 80 %ifndef USE_38681 79 mov sp, [ss:BOOTVARS.dwPostStack] 82 80 mov ss, [ss:BOOTVARS.dwPostStack+2] 81 sti ; Enable interrupts 83 82 %else 83 LOAD_BDA_SEGMENT_TO ss, sp 84 84 lss sp, [ss:BOOTVARS.dwPostStack] 85 85 %endif 86 %ifndef USE_18687 sti ; Enable interrupts88 %endif89 86 jmp ax -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH15h_HSize.asm
r35 r117 1 ; File name : AH15h_HSize.asm 2 ; Project name : IDE BIOS 3 ; Created date : 28.9.2007 4 ; Last update : 24.8.2010 5 ; Author : Tomi Tilli 1 ; Project name : XTIDE Universal BIOS 6 2 ; Description : Int 13h function AH=15h, Read Disk Drive Size. 7 3 … … 36 32 push ax 37 33 38 call HCapacity_GetSectorCountFromOurAH08h; Sector count to DX:AX 34 call HCapacity_GetSectorCountFromOurAH08h; Sector count to DX:AX (clears CF) 39 35 mov cx, dx ; HIWORD to CX 40 36 xchg dx, ax ; LOWORD to DX … … 43 39 pop bx 44 40 mov ah, 3 ; Type code = Hard disk 45 clc46 41 jmp Int13h_ReturnWithValueInDL -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Common/HCapacity.asm
r88 r117 41 41 mul bx ; AX=Head count * Sectors per track 42 42 mul cx ; DX:AX = Total sector count 43 xor bx, bx ; Zero BX for 48-bit sector count 43 xor bx, bx ; Zero BX for 48-bit sector count (and clear CF) 44 44 ret
Note:
See TracChangeset
for help on using the changeset viewer.