Changeset 293 in xtideuniversalbios for trunk/Configurator/Src/MenuPageItemFormat.asm


Ignore:
Timestamp:
Mar 4, 2012, 1:33:52 AM (12 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Commit 1/2 (Library, Configurators and Serial Server):

  • Changed Emulate.inc so that making 286 and 386 versions now works. Additionally, only one processor type define is needed in the makefile.
  • Minor optimizations.
  • Fixed spelling and did some cleaning.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Configurator/Src/MenuPageItemFormat.asm

    r2 r293  
    1 ; File name     :   MenuPageItemFormat.asm
    2 ; Project name  :   XTIDE Univeral BIOS Configurator
    3 ; Created date  :   15.4.2010
    4 ; Last update   :   30.4.2010
    5 ; Author        :   Tomi Tilli
    6 ; Description   :   Functions for formatting
     1; Project name  :   XTIDE Universal BIOS Configurator
     2; Description   :   Functions for formatting
    73;                   menuitem names from MENUPAGEITEM.
    84
     
    2521    mov     si, [di+MENUPAGEITEM.rgszLookup]    ; Load offset to string lookup table
    2622    mov     bx, [di+MENUPAGEITEM.pValue]        ; Ptr to value containing lookup index
    27     eMOVZX  bx, BYTE [bx]                       ; BX=lookup index (values are already shifted for WORD lookup)
     23    eMOVZX  bx, [bx]                            ; BX=lookup index (values are already shifted for WORD lookup)
    2824    push    WORD [bx+si]                        ; Push offset to string to print
    2925    mov     dh, 4                               ; Total of 4 bytes for formatting params
     
    4642ALIGN JUMP_ALIGN
    4743MenuPageItemFormat_NameForAnyType:
    48     eMOVZX  bx, BYTE [di+MENUPAGEITEM.bType]    ; Load menuitem type
     44    eMOVZX  bx, [di+MENUPAGEITEM.bType]         ; Load menuitem type
    4945    jmp     [cs:bx+.rgfnPrintBasedOnType]
    5046ALIGN WORD_ALIGN
     
    132128MenuPageItemFormat_NameWithUnsignedByteValue:
    133129    mov     si, [di+MENUPAGEITEM.pValue]        ; DS:SI points to value
    134     eMOVZX  ax, BYTE [si]                       ; Load byte to AX
     130    eMOVZX  ax, [si]                            ; Load byte to AX
    135131    push    ax                                  ; Push byte
    136132    jmp     SHORT MenuPageItemFormat_NameWithUnsignedValuePushed
     
    161157MenuPageItemFormat_NameWithByteHexadecimalValue:
    162158    mov     si, [di+MENUPAGEITEM.pValue]        ; DS:SI points to value
    163     eMOVZX  ax, BYTE [si]                       ; Load byte to AX
     159    eMOVZX  ax, [si]                            ; Load byte to AX
    164160    push    ax                                  ; Push byte
    165161    jmp     SHORT MenuPageItemFormat_NameWithHexadecimalValuePushed
Note: See TracChangeset for help on using the changeset viewer.