Changeset 293 in xtideuniversalbios for trunk/Configurator/Src/MenuPageItemFormat.asm
- Timestamp:
- Mar 4, 2012, 1:33:52 AM (13 years ago)
- google:author:
- krille_n_@hotmail.com
- 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 7 3 ; menuitem names from MENUPAGEITEM. 8 4 … … 25 21 mov si, [di+MENUPAGEITEM.rgszLookup] ; Load offset to string lookup table 26 22 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) 28 24 push WORD [bx+si] ; Push offset to string to print 29 25 mov dh, 4 ; Total of 4 bytes for formatting params … … 46 42 ALIGN JUMP_ALIGN 47 43 MenuPageItemFormat_NameForAnyType: 48 eMOVZX bx, BYTE [di+MENUPAGEITEM.bType]; Load menuitem type44 eMOVZX bx, [di+MENUPAGEITEM.bType] ; Load menuitem type 49 45 jmp [cs:bx+.rgfnPrintBasedOnType] 50 46 ALIGN WORD_ALIGN … … 132 128 MenuPageItemFormat_NameWithUnsignedByteValue: 133 129 mov si, [di+MENUPAGEITEM.pValue] ; DS:SI points to value 134 eMOVZX ax, BYTE [si]; Load byte to AX130 eMOVZX ax, [si] ; Load byte to AX 135 131 push ax ; Push byte 136 132 jmp SHORT MenuPageItemFormat_NameWithUnsignedValuePushed … … 161 157 MenuPageItemFormat_NameWithByteHexadecimalValue: 162 158 mov si, [di+MENUPAGEITEM.pValue] ; DS:SI points to value 163 eMOVZX ax, BYTE [si]; Load byte to AX159 eMOVZX ax, [si] ; Load byte to AX 164 160 push ax ; Push byte 165 161 jmp SHORT MenuPageItemFormat_NameWithHexadecimalValuePushed
Note:
See TracChangeset
for help on using the changeset viewer.