Changeset 191 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs


Ignore:
Timestamp:
Nov 16, 2011, 8:47:56 AM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Space optimization in Address.asm, includes bug fix for BootMenuPrintCfg.asm (was using a word index instead of a byte index).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AccessDPT.asm

    r181 r191  
    4242
    4343;--------------------------------------------------------------------
    44 ; AccessDPT_GetAddressingModeForWordLookToBX
     44; AccessDPT_GetAddressingModeToAXZF
    4545;   Parameters:
    4646;       DS:DI:  Ptr to Disk Parameter Table
    4747;   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
    4950;   Corrupts registers:
    5051;       Nothing
    5152;--------------------------------------------------------------------
    5253ALIGN JUMP_ALIGN
    53 AccessDPT_GetAddressingModeForWordLookToBX:
    54     mov     bl, [di+DPT.bFlagsLow]
    55     and     bx, BYTE MASKL_DPT_ADDRESSING_MODE
    56     eSHR_IM bx, ADDRESSING_MODE_FIELD_POSITION-1
     54AccessDPT_GetAddressingModeToAXZF:
     55    mov     al, [di+DPT.bFlagsLow]
     56    and     ax, BYTE MASKL_DPT_ADDRESSING_MODE
     57    eSHR_IM ax, ADDRESSING_MODE_FIELD_POSITION
    5758    ret
    5859
Note: See TracChangeset for help on using the changeset viewer.