Changeset 358 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc
- Timestamp:
- Mar 19, 2012, 2:20:32 PM (13 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Inc
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc
r294 r358 85 85 86 86 87 ;-------------------------------------------------------------------- 88 ; LIMIT_LBA_CYLINDERS_IN_DXAX_TO_LCHS_CYLINDERS 89 ; Parameters: 90 ; DX:AX: Number of LBA cylinders 91 ; Returns: 92 ; AX: Number of L-CHS cylinders 93 ; Corrupts registers: 94 ; Nothing 95 ;-------------------------------------------------------------------- 96 %macro LIMIT_LBA_CYLINDERS_IN_DXAX_TO_LCHS_CYLINDERS 0 97 test dx, dx 98 jnz SHORT %%LoadMaxValueToAX 99 cmp ax, MAX_LCHS_CYLINDERS 100 jbe SHORT %%NoNeedToModify 101 %%LoadMaxValueToAX: 102 mov ax, MAX_LCHS_CYLINDERS 103 %%NoNeedToModify: 104 %endmacro 105 106 87 107 %endif ; CUSTOMDPT_INC
Note:
See TracChangeset
for help on using the changeset viewer.