Changeset 84 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h.asm
- Timestamp:
- Jan 14, 2011, 10:57:46 PM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h.asm
r43 r84 2 2 ; Project name : IDE BIOS 3 3 ; Created date : 21.9.2007 4 ; Last update : 24.8.2010 5 ; Author : Tomi Tilli 4 ; Last update : 14.1.2011 5 ; Author : Tomi Tilli, 6 ; : Krister Nordvall (optimizations) 6 7 ; Description : Int 13h BIOS functions (Floppy and Hard disk). 7 8 … … 63 64 ja SHORT Int13h_UnsupportedFunction 64 65 mov di, ax 66 %ifndef USE_186 ; This uses 9 bytes less and is about 5 cycles faster 67 mov al, ah ; Copy bits in AH to AL and then 68 shl al, 1 ; shift them "back" 1 step 69 and al, 7Eh ; AND them (clears the MSB) 70 cbw ; Clear AH using sign extension 71 xchg di, ax ; and finally swap DI with AX 72 %else 65 73 eSHR_IM di, 7 ; Shift function to DI... 66 74 and di, BYTE 7Eh ; ...and prepare for word lookup 75 %endif 67 76 jmp [cs:di+g_rgw13hFuncJump] ; Jump to BIOS function 68 77
Note:
See TracChangeset
for help on using the changeset viewer.