Changeset 191 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
- Timestamp:
- Nov 16, 2011, 8:47:56 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AccessDPT.asm
r181 r191 42 42 43 43 ;-------------------------------------------------------------------- 44 ; AccessDPT_GetAddressingMode ForWordLookToBX44 ; AccessDPT_GetAddressingModeToAXZF 45 45 ; Parameters: 46 46 ; DS:DI: Ptr to Disk Parameter Table 47 47 ; Returns: 48 ; BX: Addressing Mode (L-CHS, P-CHS, LBA28, LBA48) shifted for WORD lookup 48 ; AX: Addressing Mode (L-CHS, P-CHS, LBA28, LBA48) 49 ; ZF: Set if AX=0 49 50 ; Corrupts registers: 50 51 ; Nothing 51 52 ;-------------------------------------------------------------------- 52 53 ALIGN JUMP_ALIGN 53 AccessDPT_GetAddressingMode ForWordLookToBX:54 mov bl, [di+DPT.bFlagsLow]55 and bx, BYTE MASKL_DPT_ADDRESSING_MODE56 eSHR_IM bx, ADDRESSING_MODE_FIELD_POSITION-154 AccessDPT_GetAddressingModeToAXZF: 55 mov al, [di+DPT.bFlagsLow] 56 and ax, BYTE MASKL_DPT_ADDRESSING_MODE 57 eSHR_IM ax, ADDRESSING_MODE_FIELD_POSITION 57 58 ret 58 59
Note:
See TracChangeset
for help on using the changeset viewer.