Changeset 59 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/MenuitemPrint.asm
- Timestamp:
- Nov 19, 2010, 10:59:52 AM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/MenuitemPrint.asm
r57 r59 139 139 pop si 140 140 ret 141 141 142 143 ;-------------------------------------------------------------------- 144 ; MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI 145 ; MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI 146 ; Parameters: 147 ; DS:SI: Ptr to MENUITEM 148 ; ES:DI: Ptr to destination buffer 149 ; Returns: 150 ; DI: Updated 151 ; Corrupts registers: 152 ; AX, BX, CX 153 ;-------------------------------------------------------------------- 154 ALIGN JUMP_ALIGN 155 MenuitemPrint_WriteLookupValueStringToBufferInESDIfromUnshiftedItemInDSSI: 156 call Menuitem_GetValueToAXfromMenuitemInDSSI 157 shl ax, 1 158 jmp SHORT PrintLookupValueFromAXtoBufferInESDI 159 160 ALIGN JUMP_ALIGN 161 MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI: 162 call Menuitem_GetValueToAXfromMenuitemInDSSI 163 ; Fall to PrintLookupValueFromAXtoBufferInESDI 142 164 143 165 ;-------------------------------------------------------------------- 144 166 ; MenuitemPrint_WriteLookupValueStringToBufferInESDIfromItemInDSSI 145 167 ; Parameters: 146 ; DS:SI: Ptr to MENUITEM 147 ; ES:DI: Ptr to destination buffer 148 ; Returns: 149 ; DI: Updated 150 ; Corrupts registers: 151 ; AX, BX, CX 152 ;-------------------------------------------------------------------- 153 ALIGN JUMP_ALIGN 154 MenuitemPrint_WriteLookupValueStringToBufferInESDIfromItemInDSSI: 155 push si 156 157 call Menuitem_GetValueToAXfromMenuitemInDSSI 168 ; AX: Value to print 169 ; DS:SI: Ptr to MENUITEM 170 ; ES:DI: Ptr to destination buffer 171 ; Returns: 172 ; DI: Updated 173 ; Corrupts registers: 174 ; AX, BX, CX 175 ;-------------------------------------------------------------------- 176 ALIGN JUMP_ALIGN 177 PrintLookupValueFromAXtoBufferInESDI: 178 push si 158 179 add ax, [si+MENUITEM.itemValue+ITEM_VALUE.rgszValueToStringLookup] 159 180 xchg bx, ax 160 181 mov si, [bx] 161 182 call String_CopyDSSItoESDIandGetLengthToCX 162 163 183 pop si 164 184 ret
Note:
See TracChangeset
for help on using the changeset viewer.