Changeset 78 in xtideuniversalbios for trunk/Configurator/Src/Libraries/menu
- Timestamp:
- Jan 5, 2011, 7:36:41 PM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/Configurator/Src/Libraries/menu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configurator/Src/Libraries/menu/menu.asm
r2 r78 2 2 ; Project name : Menu library 3 3 ; Created date : 9.11.2009 4 ; Last update : 2 0.4.20104 ; Last update : 21.1.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : ASM library to menu system. … … 13 13 %define USE_MENU_DIALOGS ; All dialogs 14 14 ;%define USE_MENU_SETSEL ; Menu_SetSel 15 %define USE_MENU_TOGGLEINFO 15 %define USE_MENU_TOGGLEINFO ; Menu_ToggleInfo 16 16 %define USE_MENU_INVITEMCNT ; Menu_InvItemCnt 17 17 … … 419 419 mov [bp+MENUVARS.wItemTop], ax 420 420 mov cx, -1 ; Invalidate all items 421 or dl, MFL_UPD_ITEM | MFL_UPD_NFO421 or dl, MFL_UPD_ITEM 422 422 %endif 423 423 ALIGN JUMP_ALIGN -
trunk/Configurator/Src/Libraries/menu/menudraw.asm
r9 r78 2 2 ; Project name : Menu library 3 3 ; Created date : 9.11.2009 4 ; Last update : 25.5.2010 5 ; Author : Tomi Tilli 4 ; Last update : 4.1.2011 5 ; Author : Tomi Tilli, 6 ; : Krister Nordvall (optimizations) 6 7 ; Description : ASM library to menu system. 7 8 ; Contains menu drawing functions. … … 41 42 mov al, CNT_SCRN_ROW ; Load row count 42 43 mul ah ; AX=Column count * row count 43 mov cx, ax ; Copy char count to CX44 mov cx, 0920h ; Write Char and attr, space char 44 45 mov bx, ATTR_MDA_NORMAL ; Page zero, normal attribute 45 mov ax, 0920h ; Write Char and attr, space char46 xchg cx, ax ; CX=Char count AX=Space char and attr 46 47 int 10h 47 48 ret … … 354 355 ALIGN JUMP_ALIGN 355 356 MenuDraw_TopBorder: 356 mov bh, B_TL 357 mov bl, B_H 357 mov bx, (B_TL << 8) + B_H 358 358 mov dh, B_TR 359 359 jmp SHORT MenuDraw_BorderChars … … 361 361 ALIGN JUMP_ALIGN 362 362 MenuDraw_StringBorder: 363 mov bh, B_V 364 mov bl, ' ' 363 mov bx, (B_V << 8) + ' ' 365 364 mov dh, B_V 366 365 jmp SHORT MenuDraw_BorderChars … … 369 368 MenuDraw_ScrollBorder: 370 369 call MenuDraw_GetScrollChar ; Load scroll char to DH 371 mov bh, B_V 372 mov bl, ' ' 370 mov bx, (B_V << 8) + ' ' 373 371 jmp SHORT MenuDraw_BorderChars 374 372 375 373 ALIGN JUMP_ALIGN 376 374 MenuDraw_MiddleBorder: 377 mov bh, BVL_THR 378 mov bl, T_H 375 mov bx, (BVL_THR << 8) + T_H 379 376 mov dh, THL_BVR 380 377 … … 393 390 ALIGN JUMP_ALIGN 394 391 MenuDraw_BottomBorder: 395 mov bh, B_LL 396 mov bl, B_H 392 mov bx, (B_LL << 8) + B_H 397 393 mov dh, B_LR 398 394 cmp WORD [bp+MENUVARS.wTimeInit], 0 ; Timeout enabled?
Note:
See TracChangeset
for help on using the changeset viewer.