Changeset 200 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AccessDPT.asm
- Timestamp:
- Nov 22, 2011, 8:38:36 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AccessDPT.asm
r193 r200 124 124 .ReturnPointerToDRVPARAMS: 125 125 ret 126 127 ;-------------------------------------------------------------------- 128 ; AccessDPT_GetUnshiftedAddressModeToALZF 129 ; Parameters: 130 ; DS:DI: Ptr to Disk Parameter Table 131 ; Returns: 132 ; AL: Addressing Mode (L-CHS, P-CHS, LBA28, LBA48) 133 ; unshifted (still shifted where it is in bFlagsLow) 134 ; ZF: Set based on value in AL 135 ; Corrupts registers: 136 ; AL 137 ;-------------------------------------------------------------------- 138 ; 139 ; Converted to a macro since only called in two places, and the call/ret overhead 140 ; is not worth it for these two instructions (4 bytes total) 141 ; 142 %macro AccessDPT_GetUnshiftedAddressModeToALZF 0 143 mov al, [di+DPT.bFlagsLow] 144 and al, MASKL_DPT_ADDRESSING_MODE 145 %endmacro 146 147
Note:
See TracChangeset
for help on using the changeset viewer.