Changeset 358 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc


Ignore:
Timestamp:
Mar 19, 2012, 2:20:32 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Moved BIOS title and version strings to Version.inc.
  • Moved LBA to L-CHS conversion function to LbaAssist.asm.
Location:
trunk/XTIDE_Universal_BIOS/Inc
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc

    r294 r358  
    8585
    8686
     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
    87107%endif ; CUSTOMDPT_INC
Note: See TracChangeset for help on using the changeset viewer.