Changeset 67 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu/MenuBorders.asm
- Timestamp:
- Dec 9, 2010, 5:14:25 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Src/Menu/MenuBorders.asm
r62 r67 2 2 ; Project name : Assembly Library 3 3 ; Created date : 14.7.2010 4 ; Last update : 30.11.20104 ; Last update : 9.12.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Functions for drawing menu borders. … … 29 29 MenuBorders_RefreshAll: 30 30 call MenuBorders_AdjustDisplayContextForDrawingBorders 31 call GetNumberOfMiddleCharactersToDX31 call MenuBorders_GetNumberOfMiddleCharactersToDX 32 32 call RefreshTitleBorders 33 33 call RefreshItemBorders … … 51 51 call MenuLocation_GetBottomBordersTopLeftCoordinatesToAX 52 52 CALL_DISPLAY_LIBRARY SetCursorCoordinatesFromAX 53 call GetNumberOfMiddleCharactersToDX53 call MenuBorders_GetNumberOfMiddleCharactersToDX 54 54 jmp SHORT DrawBottomBorderLine 55 55 … … 95 95 CALL_DISPLAY_LIBRARY SetCursorCoordinatesFromAX 96 96 97 call GetNumberOfMiddleCharactersToDX97 call MenuBorders_GetNumberOfMiddleCharactersToDX 98 98 jmp SHORT RefreshItemBorders 99 99 100 100 101 101 ;-------------------------------------------------------------------- 102 ; GetNumberOfMiddleCharactersToDX102 ; MenuBorders_GetNumberOfMiddleCharactersToDX 103 103 ; Parameters 104 104 ; SS:BP: Ptr to MENU … … 109 109 ;-------------------------------------------------------------------- 110 110 ALIGN JUMP_ALIGN 111 GetNumberOfMiddleCharactersToDX:111 MenuBorders_GetNumberOfMiddleCharactersToDX: 112 112 eMOVZX dx, BYTE [bp+MENUINIT.bWidth] 113 113 sub dx, BYTE MENU_HORIZONTAL_BORDER_LINES … … 300 300 pop bx 301 301 302 call PrintMultipleBorderCharactersFromAL ; AL does not matter302 call MenuBorders_PrintMultipleBorderCharactersFromAL ; AL does not matter 303 303 304 304 CALL_DISPLAY_LIBRARY PopDisplayContext … … 326 326 eSEG cs 327 327 lodsb ; Load from [si+BORDER_CHARS.cMiddle] to AL 328 call PrintMultipleBorderCharactersFromAL328 call MenuBorders_PrintMultipleBorderCharactersFromAL 329 329 330 330 eSEG cs … … 334 334 ;-------------------------------------------------------------------- 335 335 ; MenuBorders_PrintSingleBorderCharacterFromAL 336 ; PrintMultipleBorderCharactersFromAL336 ; MenuBorders_PrintMultipleBorderCharactersFromAL 337 337 ; Parameters 338 338 ; AL: Character to print 339 ; DX: Repeat count ( PrintMultipleBorderCharactersFromAL)339 ; DX: Repeat count (MenuBorders_PrintMultipleBorderCharactersFromAL) 340 340 ; SS:BP: Ptr to MENU 341 341 ; Returns: … … 350 350 351 351 ALIGN JUMP_ALIGN 352 PrintMultipleBorderCharactersFromAL:352 MenuBorders_PrintMultipleBorderCharactersFromAL: 353 353 push cx 354 354 mov cx, dx
Note:
See TracChangeset
for help on using the changeset viewer.