Changeset 77 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Libraries/menu
- Timestamp:
- Jan 4, 2011, 10:53:15 PM (14 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Libraries/menu/menudraw.asm
r10 r77 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.