Changeset 44 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu
- Timestamp:
- Sep 27, 2010, 7:23:36 PM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/Assembly_Library/Src/Menu
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/Dialog/Dialog.asm
r41 r44 2 2 ; Project name : Assembly Library 3 3 ; Created date : 6.8.2010 4 ; Last update : 16.9.20104 ; Last update : 27.9.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Common functions for many dialogs. … … 291 291 ALIGN JUMP_ALIGN 292 292 .RedrawDialogAreaAndWholeParentWindow: 293 mov al, MONO_NORMAL293 mov al, SCREEN_BACKGROUND_ATTRIBUTE 294 294 CALL_DISPLAY_LIBRARY SetCharacterAttributeFromAL 295 295 call MenuLocation_GetTitleBordersTopLeftCoordinatesToAX -
trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm
r41 r44 2 2 ; Project name : Assembly Library 3 3 ; Created date : 6.9.2010 4 ; Last update : 16.9.20104 ; Last update : 27.9.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays file dialog. … … 148 148 ; Nothing 149 149 ; Corrupts registers: 150 ; AX, CX, SI, DI, DS, ES150 ; AX, CX, DX, SI, DI, DS, ES 151 151 ;-------------------------------------------------------------------- 152 152 ALIGN JUMP_ALIGN … … 171 171 ; Nothing 172 172 ; Corrupts registers: 173 ; AX, CX, D I173 ; AX, CX, DX, DI 174 174 ;-------------------------------------------------------------------- 175 175 ;ALIGN JUMP_ALIGN … … 225 225 ; DI: Updated for next file 226 226 ; Corrupts registers: 227 ; AX, BX, CX 227 ; AX, BX, CX, DX 228 228 ;-------------------------------------------------------------------- 229 229 ALIGN JUMP_ALIGN … … 241 241 ; DI: Updated for next file 242 242 ; Corrupts registers: 243 ; AX, BX, CX 243 ; AX, BX, CX, DX 244 244 ;-------------------------------------------------------------------- 245 245 ;ALIGN JUMP_ALIGN … … 253 253 xchg ax, cx 254 254 CALL_DISPLAY_LIBRARY SetCharacterPointerFromBXAX 255 mov dl, ATTRIBUTES_NOT_USED 255 256 mov ax, BUFFER_OUTPUT_WITH_CHAR_ONLY 256 CALL_DISPLAY_LIBRARY SetChar acterOutputFunctionFromAX257 CALL_DISPLAY_LIBRARY SetCharOutputFunctionFromAXwithAttribFlagInDL 257 258 258 259 call .FormatFileOrDirectoryToBufferFromDTAinDSSI -
trunk/Assembly_Library/Src/Menu/Dialog/StringsForDialogs.asm
r41 r44 2 2 ; Project name : Assembly Library 3 3 ; Created date : 14.9.2010 4 ; Last update : 16.9.20104 ; Last update : 27.9.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Strings used by dialogs. … … 9 9 g_szTimeElapsed: db "Time elapsed :",NULL 10 10 g_szTimeLeft: db "Estimated left:",NULL 11 g_szTimeFormat: db " %2 u min %2u sec",LF,CR,NULL11 g_szTimeFormat: db " %2-u min %2-u sec",LF,CR,NULL 12 12 13 13 ; Strings for File Dialog … … 23 23 24 24 g_szFileFormat: 25 db "%14S %4 u %c%cB",LF,NULL25 db "%14S %4-u %c%cB",LF,NULL 26 26 g_szDirectoryFormat: 27 27 db "[%12S] %s-DIR",LF,NULL -
trunk/Assembly_Library/Src/Menu/MenuBorders.asm
r41 r44 2 2 ; Project name : Assembly Library 3 3 ; Created date : 14.7.2010 4 ; Last update : 7.9.20104 ; Last update : 27.9.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Functions for drawing menu borders. … … 45 45 ; Nothing 46 46 ; Corrupts registers: 47 ; AX, SI, DI47 ; AX, DX, SI, DI 48 48 ;-------------------------------------------------------------------- 49 49 ALIGN JUMP_ALIGN 50 50 MenuBorders_AdjustDisplayContextForDrawingBorders: 51 mov dl, ATTRIBUTES_ARE_USED 51 52 mov ax, MenuCharOut_MenuBorderTeletypeOutputWithAttribute 52 CALL_DISPLAY_LIBRARY SetChar acterOutputFunctionFromAX53 CALL_DISPLAY_LIBRARY SetCharOutputFunctionFromAXwithAttribFlagInDL 53 54 54 55 mov ax, bp … … 268 269 call MenuAttribute_SetToDisplayContextFromTypeInSI 269 270 271 push dx 272 mov dl, ATTRIBUTES_ARE_USED 270 273 mov ax, FAST_OUTPUT_WITH_ATTRIBUTE_ONLY 271 CALL_DISPLAY_LIBRARY SetCharacterOutputFunctionFromAX 274 CALL_DISPLAY_LIBRARY SetCharOutputFunctionFromAXwithAttribFlagInDL 275 pop dx 272 276 273 277 call PrintMultipleBorderCharactersFromAL ; AL does not matter -
trunk/Assembly_Library/Src/Menu/MenuText.asm
r41 r44 2 2 ; Project name : Assembly Library 3 3 ; Created date : 21.7.2010 4 ; Last update : 11.8.20104 ; Last update : 27.9.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Functions for drawing menu texts by the user. … … 218 218 ; Nothing 219 219 ; Corrupts registers: 220 ; AX, SI, DI220 ; AX, DX, SI, DI 221 221 ;-------------------------------------------------------------------- 222 222 ALIGN JUMP_ALIGN 223 223 AdjustDisplayContextForDrawingTexts: 224 mov dl, ATTRIBUTES_ARE_USED 224 225 mov ax, MenuCharOut_MenuTextTeletypeOutputWithAttribute 225 CALL_DISPLAY_LIBRARY SetChar acterOutputFunctionFromAX226 CALL_DISPLAY_LIBRARY SetCharOutputFunctionFromAXwithAttribFlagInDL 226 227 227 228 mov ax, bp -
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.