Ignore:
Timestamp:
Jan 4, 2011, 10:53:15 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Minor size optimizations plus a bug fix in print.asm in Print_IntSW (DI was left hanging on the stack if the parameter in AX was positive). Also a very minor speed optimization in keys.asm in Keys_Backspace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Libraries/menu/menudraw.asm

    r10 r77  
    22; Project name  :   Menu library
    33; 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)
    67; Description   :   ASM library to menu system.
    78;                   Contains menu drawing functions.
     
    4142    mov     al, CNT_SCRN_ROW            ; Load row count
    4243    mul     ah                          ; AX=Column count * row count
    43     mov     cx, ax                      ; Copy char count to CX
     44    mov     cx, 0920h                   ; Write Char and attr, space char
    4445    mov     bx, ATTR_MDA_NORMAL         ; Page zero, normal attribute
    45     mov     ax, 0920h                   ; Write Char and attr, space char
     46    xchg    cx, ax                      ; CX=Char count AX=Space char and attr
    4647    int     10h
    4748    ret
     
    354355ALIGN JUMP_ALIGN
    355356MenuDraw_TopBorder:
    356     mov     bh, B_TL
    357     mov     bl, B_H
     357    mov     bx, (B_TL << 8) + B_H
    358358    mov     dh, B_TR
    359359    jmp     SHORT MenuDraw_BorderChars
     
    361361ALIGN JUMP_ALIGN
    362362MenuDraw_StringBorder:
    363     mov     bh, B_V
    364     mov     bl, ' '
     363    mov     bx, (B_V << 8) + ' '
    365364    mov     dh, B_V
    366365    jmp     SHORT MenuDraw_BorderChars
     
    369368MenuDraw_ScrollBorder:
    370369    call    MenuDraw_GetScrollChar          ; Load scroll char to DH
    371     mov     bh, B_V
    372     mov     bl, ' '
     370    mov     bx, (B_V << 8) + ' '
    373371    jmp     SHORT MenuDraw_BorderChars
    374372
    375373ALIGN JUMP_ALIGN
    376374MenuDraw_MiddleBorder:
    377     mov     bh, BVL_THR
    378     mov     bl, T_H
     375    mov     bx, (BVL_THR << 8) + T_H
    379376    mov     dh, THL_BVR
    380377
     
    393390ALIGN JUMP_ALIGN
    394391MenuDraw_BottomBorder:
    395     mov     bh, B_LL
    396     mov     bl, B_H
     392    mov     bx, (B_LL << 8) + B_H
    397393    mov     dh, B_LR
    398394    cmp     WORD [bp+MENUVARS.wTimeInit], 0 ; Timeout enabled?
Note: See TracChangeset for help on using the changeset viewer.