Changeset 10 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Libraries/menu/menudraw.asm
- Timestamp:
- May 25, 2010, 5:03:06 PM (15 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Libraries/menu/menudraw.asm
r3 r10 2 2 ; Project name : Menu library 3 3 ; Created date : 9.11.2009 4 ; Last update : 2 1.1.20104 ; Last update : 25.5.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : ASM library to menu system. … … 288 288 xor dx, dx ; Zero DX 289 289 call MenuCrsr_PointNfoBrdr ; Set cursor 290 cmp BYTE [bp+MENUVARS.bInfoH], 0 ; Any info strings? 291 jz MenuDraw_BottomBorder ; If not, draw bottom border 292 test BYTE [bp+MENUVARS.bFlags], FLG_MNU_HIDENFO 293 jnz MenuDraw_BottomBorder ; Draw bottom border if info is hidden 290 eMOVZX cx, BYTE [bp+MENUVARS.bInfoH] ; Load number of info strings 291 test BYTE [bp+MENUVARS.bFlags], FLG_MNU_HIDENFO ; Information hidden? 292 jnz SHORT .JumpToBottomBorder 293 test cx, cx ; Any info strings? 294 jz SHORT MenuDraw_BottomBorder 295 push cx 294 296 call MenuDraw_MiddleBorder ; Draw middle border 295 297 call MenuDraw_NewlineBrdr ; Change line 296 eMOVZX cx, BYTE [bp+MENUVARS.bInfoH] ; Load number of info strings298 pop cx 297 299 ALIGN JUMP_ALIGN 298 300 .LineLoop: … … 302 304 pop cx 303 305 loop .LineLoop 304 jmp MenuDraw_BottomBorder 305 306 ALIGN JUMP_ALIGN 307 .JumpToBottomBorder: 308 jmp SHORT MenuDraw_BottomBorder 309 306 310 ALIGN JUMP_ALIGN 307 311 MenuDraw_Timeout: … … 309 313 call MenuCrsr_PointNfoBrdr ; Set cursor 310 314 mov ch, [bp+MENUVARS.bInfoH] ; Load info str count to CH 311 test ch, ch ; Any info strings?312 jz MenuDraw_BottomBorder; If not, draw bottom border315 and cx, 0FF00h ; Any info strings? (clears CL) 316 jz SHORT MenuDraw_BottomBorder ; If not, draw bottom border 313 317 inc ch ; Increment for info top border 314 xor cl, cl ; Zero X coordinate315 318 call MenuCrsr_Move ; Move cursor 316 jmp MenuDraw_BottomBorder319 jmp SHORT MenuDraw_BottomBorder 317 320 318 321 ALIGN JUMP_ALIGN 319 322 MenuDraw_ItemBorders: 320 cmp WORD [bp+MENUVARS.wItemCnt], 0 ; Any items?321 jz .Return; If not, return323 cmp WORD [bp+MENUVARS.wItemCnt], BYTE 0 ; Any items? 324 jz SHORT .Return ; If not, return 322 325 xor dx, dx ; Zero DX 323 326 call MenuCrsr_PointItemBrdr ; Set cursor … … 354 357 mov bl, B_H 355 358 mov dh, B_TR 356 jmp MenuDraw_BorderChars359 jmp SHORT MenuDraw_BorderChars 357 360 358 361 ALIGN JUMP_ALIGN … … 361 364 mov bl, ' ' 362 365 mov dh, B_V 363 jmp MenuDraw_BorderChars366 jmp SHORT MenuDraw_BorderChars 364 367 365 368 ALIGN JUMP_ALIGN … … 368 371 mov bh, B_V 369 372 mov bl, ' ' 370 jmp MenuDraw_BorderChars373 jmp SHORT MenuDraw_BorderChars 371 374 372 375 ALIGN JUMP_ALIGN
Note:
See TracChangeset
for help on using the changeset viewer.