Changeset 178 in xtideuniversalbios


Ignore:
Timestamp:
Oct 23, 2011, 8:19:04 PM (12 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:
  • Removed an %ifdef in RomVars.inc that prevented XTIDECFG from building.
  • Size optimizations in MenuLoop.asm.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Inc/Menu.inc

    r177 r178  
    1 ; File name     :   Menu.inc
    21; Project name  :   Assembly Library
    3 ; Created date  :   13.7.2010
    4 ; Last update   :   22.11.2010
    5 ; Author        :   Tomi Tilli
    62; Description   :   Defines for Menu library.
    73%ifndef MENU_INC
     
    146142
    147143; Keyboard keys (scan codes) used by menu library
    148 MENU_KEY_ENTER      EQU     1Ch
    149 MENU_KEY_ESC        EQU     01h
     144;MENU_KEY_ENTER     EQU     1Ch
     145;MENU_KEY_ESC       EQU     01h
    150146MENU_KEY_UP         EQU     48h
    151147MENU_KEY_DOWN       EQU     50h
  • trunk/Assembly_Library/Src/Menu/MenuLoop.asm

    r133 r178  
    4545    call    MenuTime_UpdateSelectionTimeout
    4646    jnc     NoKeystrokeToProcess
    47     mov     ah, MENU_KEY_ENTER              ; Fake ENTER to select item
     47    mov     al, CR  ; Fake ENTER to select item
    4848    ; Fall to ProcessKeystrokeFromAX
    4949
     
    8585ALIGN JUMP_ALIGN
    8686.ProcessMenuSystemKeystrokeFromAX:
    87     cmp     ah, MENU_KEY_ESC
     87    cmp     al, ESC
    8888    je      SHORT .LeaveMenuWithoutSelectingItem
    89     cmp     ah, MENU_KEY_ENTER
     89    cmp     al, CR
    9090    je      SHORT .SelectItem
    9191
     
    128128ALIGN JUMP_ALIGN
    129129MenuLoop_ProcessScrollingKeysFromAX:
    130     cmp     ah, MENU_KEY_PGUP
     130    xchg    ah, al
     131    cmp     al, MENU_KEY_PGUP
    131132    je      SHORT .ChangeToPreviousPage
    132     cmp     ah, MENU_KEY_PGDN
     133    cmp     al, MENU_KEY_PGDN
    133134    je      SHORT .ChangeToNextPage
    134     cmp     ah, MENU_KEY_HOME
     135    cmp     al, MENU_KEY_HOME
    135136    je      SHORT .SelectFirstItem
    136     cmp     ah, MENU_KEY_END
     137    cmp     al, MENU_KEY_END
    137138    je      SHORT .SelectLastItem
    138139
    139     cmp     ah, MENU_KEY_UP
     140    cmp     al, MENU_KEY_UP
    140141    je      SHORT .DecrementSelectedItem
    141     cmp     ah, MENU_KEY_DOWN
     142    cmp     al, MENU_KEY_DOWN
    142143    je      SHORT .IncrementSelectedItem
    143144    clc     ; Clear CF since keystroke not processed
     145    xchg    ah, al
    144146    ret
    145147
     
    170172ALIGN JUMP_ALIGN
    171173.SelectLastItem:
     174    stc
    172175    mov     ax, [bp+MENUINIT.wItems]
    173     sub     ax, [bp+MENUINIT.wHighlightedItem]
    174     dec     ax
     176    sbb     ax, [bp+MENUINIT.wHighlightedItem]
    175177    jmp     SHORT .MoveHighlightedItemByAX
    176178
     
    178180.DecrementSelectedItem:
    179181    mov     ax, -1
    180     jmp     SHORT .MoveHighlightedItemByAX
    181 ALIGN JUMP_ALIGN
     182    SKIP2B  cx  ; mov cx, <next instruction>
    182183.IncrementSelectedItem:
    183     mov     ax, 1
     184    mov     al, 1   ; AH is already 0
    184185ALIGN JUMP_ALIGN
    185186.MoveHighlightedItemByAX:
  • trunk/XTIDE_Universal_BIOS/Inc/RomVars.inc

    r176 r178  
    6969DEVICE_16BIT_ATA                        EQU (3<<1)
    7070DEVICE_32BIT_ATA                        EQU (4<<1)
    71 %ifdef MODULE_SERIAL
    7271DEVICE_SERIAL_PORT                      EQU (5<<1)
    73 %endif
    7472
    7573; Master/Slave drive specific parameters
Note: See TracChangeset for help on using the changeset viewer.