Changeset 83 in xtideuniversalbios for trunk/Configurator/Src
- Timestamp:
- Jan 6, 2011, 11:00:54 PM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/Configurator/Src/Libraries/menu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configurator/Src/Libraries/menu/menu.asm
r78 r83 2 2 ; Project name : Menu library 3 3 ; Created date : 9.11.2009 4 ; Last update : 21.1.2010 5 ; Author : Tomi Tilli 4 ; Last update : 6.1.2011 5 ; Author : Tomi Tilli, 6 ; : Krister Nordvall (optimizations) 6 7 ; Description : ASM library to menu system. 7 8 ; … … 418 419 mov [bp+MENUVARS.wItemSel], ax 419 420 mov [bp+MENUVARS.wItemTop], ax 420 mov cx, -1 ; Invalidate all items 421 xchg cx, ax ; CX = 0 422 dec cx ; CX = -1 (Invalidate all items) 421 423 or dl, MFL_UPD_ITEM 422 424 %endif … … 544 546 add dl, [bp+MENUVARS.bVisCnt] ; Inc to one past... 545 547 adc dh, 0 ; ...last visible menuitem 546 cmp ax, dx ; Over last visible? 547 jae .RetFalse ; If so, return false 548 cmp ax, dx ; Over last visible or not? 549 cmc ; Either way, fall through 550 ALIGN JUMP_ALIGN ; CF will reflect TRUE/FALSE 551 .RetFalse: 552 cmc 548 553 pop dx 549 ret ; Return with CF set550 ALIGN JUMP_ALIGN551 .RetFalse:552 pop dx553 clc554 554 ret 555 555 … … 631 631 Menu_ShowYNDlg: 632 632 mov dx, MenuDlg_YNEvent ; Offset to event handler 633 jmp ContinueMenuShowDlg 634 635 636 ;-------------------------------------------------------------------- 637 ; Shows dialog that asks any string from user. 638 ; 639 ; Menu_ShowStrDlg 640 ; Parameters: 641 ; BL: Dialog width with borders included 642 ; CX: Buffer length with STOP included 643 ; SS:BP: Ptr to MENUVARS 644 ; ES:DI: Ptr to STOP terminated string to display 645 ; DS:SI: Prt to buffer to receive string 646 ; Returns: 647 ; AX: String length in characters without STOP 648 ; CF: Set if string inputted successfully 649 ; Cleared if user cancellation 650 ; Corrupts registers: 651 ; BX, CX, DX 652 ;-------------------------------------------------------------------- 653 ALIGN JUMP_ALIGN 654 Menu_ShowStrDlg: 655 mov dx, MenuDlg_StrEvent ; Offset to event handler 656 ContinueMenuShowDlg: 633 657 call MenuDlg_Show 634 658 push ax … … 641 665 642 666 ;-------------------------------------------------------------------- 643 ; Shows dialog that asks any string from user.644 ;645 ; Menu_ShowStrDlg646 ; Parameters:647 ; BL: Dialog width with borders included648 ; CX: Buffer length with STOP included649 ; SS:BP: Ptr to MENUVARS650 ; ES:DI: Ptr to STOP terminated string to display651 ; DS:SI: Prt to buffer to receive string652 ; Returns:653 ; AX: String length in characters without STOP654 ; CF: Set if string inputted successfully655 ; Cleared if user cancellation656 ; Corrupts registers:657 ; BX, CX, DX658 ;--------------------------------------------------------------------659 ALIGN JUMP_ALIGN660 Menu_ShowStrDlg:661 mov dx, MenuDlg_StrEvent ; Offset to event handler662 call MenuDlg_Show663 push ax664 pushf665 call Menu_RefreshMenu666 popf667 pop ax668 ret669 670 671 ;--------------------------------------------------------------------672 667 ; Shows progress bar dialog. 673 668 ; -
trunk/Configurator/Src/Libraries/menu/menufile.asm
r2 r83 2 2 ; Project name : Menu library 3 3 ; Created date : 20.11.2009 4 ; Last update : 8.1.2010 5 ; Author : Tomi Tilli 4 ; Last update : 6.1.2011 5 ; Author : Tomi Tilli, 6 ; : Krister Nordvall (Optimizations) 6 7 ; Description : ASM library to menu system. 7 8 ; Contains functions for displaying file dialog. … … 72 73 mov [bp+FDLGVARS.wDrvCnt], cx 73 74 mov WORD [bp+MENUVARS.fnEvent], MenuFile_Event 74 mov BYTE [bp+FDLGVARS.fSuccess], 0; For user cancel75 mov [bp+FDLGVARS.fSuccess], cl ; For user cancel 75 76 call MenuMsg_GetLineCnt ; Get Info line count to CX 76 77 xchg cl, ch ; CH=Info lines, CL=Title lines
Note:
See TracChangeset
for help on using the changeset viewer.