Changeset 44 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu/MenuTime.asm
- Timestamp:
- Sep 27, 2010, 7:23:36 PM (15 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/MenuTime.asm
r41 r44 2 2 ; Project name : Assembly Library 3 3 ; Created date : 25.7.2010 4 ; Last update : 13.8.20104 ; Last update : 27.9.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Menu timeouts other time related functions. … … 141 141 ; Nothing 142 142 ; Corrupts registers: 143 ; AX, DX, SI, DI143 ; AX, CX, DX, SI, DI 144 144 ;-------------------------------------------------------------------- 145 145 ALIGN JUMP_ALIGN 146 146 DrawTimeoutInAXoverMenuBorders: 147 xchg dx, ax147 xchg cx, ax 148 148 call MenuBorders_AdjustDisplayContextForDrawingBorders 149 149 call MenuLocation_GetBottomBordersTopLeftCoordinatesToAX … … 154 154 ; .PrintTimeoutStringWithSecondsInDX 155 155 ; Parameters 156 ; DX: Seconds to print156 ; CX: Seconds to print 157 157 ; SS:BP: Ptr to MENU 158 158 ; Returns: … … 166 166 167 167 mov bp, sp 168 call .GetTimeoutAttributeToAXfromSecondsIn DX168 call .GetTimeoutAttributeToAXfromSecondsInCX 169 169 mov si, .szSelectionTimeout 170 170 push ax ; Push attribute 171 push dx ; Push seconds171 push cx ; Push seconds 172 172 CALL_DISPLAY_LIBRARY FormatNullTerminatedStringFromCSSI 173 173 pop bp … … 178 178 db DOUBLE_BOTTOM_LEFT_CORNER 179 179 db DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL 180 db "%AAutoselection in %2 ds",NULL181 182 ;-------------------------------------------------------------------- 183 ; .GetTimeoutAttributeToAXfromSecondsIn DX184 ; Parameters 185 ; DX: Seconds to print180 db "%AAutoselection in %2-ds",NULL 181 182 ;-------------------------------------------------------------------- 183 ; .GetTimeoutAttributeToAXfromSecondsInCX 184 ; Parameters 185 ; CX: Seconds to print 186 186 ; Returns: 187 187 ; AX: Attribute byte for seconds 188 ; DX: Seconds to print188 ; CX: Seconds to print 189 189 ; Corrupts registers: 190 190 ; SI, DI 191 191 ;-------------------------------------------------------------------- 192 192 ALIGN JUMP_ALIGN 193 .GetTimeoutAttributeToAXfromSecondsIn DX:193 .GetTimeoutAttributeToAXfromSecondsInCX: 194 194 mov si, ATTRIBUTE_CHARS.cNormalTimeout 195 cmp dx, BYTE 3195 cmp cx, BYTE 3 196 196 ja SHORT .GetAttributeToAX 197 197 add si, BYTE ATTRIBUTE_CHARS.cHurryTimeout - ATTRIBUTE_CHARS.cNormalTimeout
Note:
See TracChangeset
for help on using the changeset viewer.