Changeset 293 in xtideuniversalbios for trunk/Configurator/Src/Libraries/menu/menuprog.asm
- Timestamp:
- Mar 4, 2012, 1:33:52 AM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configurator/Src/Libraries/menu/menuprog.asm
r2 r293 1 ; File name : menuprog.asm2 1 ; Project name : Menu library 3 ; Created date : 23.11.2009 4 ; Last update : 23.11.2009 5 ; Author : Tomi Tilli 6 ; Description : ASM library to menu system. 2 ; Description : ASM library for menu system. 7 3 ; Contains functions for displaying progress bar dialog. 8 4 … … 110 106 MenuProg_DrawBar: 111 107 ; Calculate number of chars to draw 112 eMOVZX cx, BYTE [bp+MENUVARS.bWidth]; Dialog width to CX108 eMOVZX cx, [bp+MENUVARS.bWidth] ; Dialog width to CX 113 109 sub cl, 4 ; Sub borders, CX=bar width 114 110 mul cl ; AX=bar with * percentage … … 117 113 sub cl, al ; CX=Empty char cnt 118 114 mov bl, al ; BX=full char cnt 119 115 120 116 ; Draw full chars 121 117 mov dl, FULL_BLCK ; Load full block char … … 180 176 push ds 181 177 push si 182 mov si, [bp+PDLGVARS.fpUser] ; Load offset to user ptr 183 mov ds, [bp+PDLGVARS.fpUser+2] ; Load segment to user ptr 178 lds si, [bp+PDLGVARS.fpUser] ; Load user defined ptr 184 179 xor ax, ax ; Zero percent 185 180 ALIGN JUMP_ALIGN
Note: See TracChangeset
for help on using the changeset viewer.