Changeset 48 in xtideuniversalbios for trunk/Assembly_Library/Inc


Ignore:
Timestamp:
Oct 8, 2010, 3:44:05 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to Assembly Library:
Added functions to clear Menu Title and Information areas.
Implemented automatic line change when writing Menu Title and Information areas.
CGA snow related functions have been moved to CgaSnow.asm.
Keyboard input functions no longer produce beep for backspace.

Location:
trunk/Assembly_Library/Inc
Files:
1 added
4 edited

Legend:

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

    r41 r48  
    22; Project name  :   Assembly Library
    33; Created date  :   2.7.2010
    4 ; Last update   :   16.9.2010
     4; Last update   :   8.10.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Common defines for all library functions.
     
    1212%include "BiosData.inc"
    1313%include "BiosFunctions.inc"
     14%include "CgaSnow.inc"
    1415%include "Debug.inc"
    1516%include "DosFunctions.inc"
  • trunk/Assembly_Library/Inc/Display.inc

    r45 r48  
    22; Project name  :   AssemblyLibrary
    33; Created date  :   25.6.2010
    4 ; Last update   :   28.9.2010
     4; Last update   :   6.10.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Defines for display library.
     
    2626    %elifidn %1, PopDisplayContext
    2727        call    DisplayContext_Pop
     28    %elifidn %1, PrepareOffScreenBufferInESBXtoESDI
     29        call    DisplayContext_PrepareOffScreenBufferInESBXtoESDI
    2830    %else
    2931        mov     di, DISPLAY_LIB.%1
     
    3739    .PushDisplayContext:
    3840    .PopDisplayContext:
     41    .PrepareOffScreenBufferInESBXtoESDI:
    3942    .InitializeDisplayContext                       resb    2
    4043
     
    181184COLOR_TEXT_SEGMENT          EQU     0B800h  ; Text modes 0...3 (CGA+)
    182185MONO_TEXT_SEGMENT           EQU     0B000h  ; Text mode 7 (MDA, Hercules)
     186
     187OFFSET_TO_CGA_STATUS_REGISTER   EQU     6   ; Base port 3D4h + 6 = 3DAh
     188CGA_STATUS_REGISTER             EQU     3DAh
    183189
    184190
  • trunk/Assembly_Library/Inc/Menu.inc

    r45 r48  
    22; Project name  :   Assembly Library
    33; Created date  :   13.7.2010
    4 ; Last update   :   15.9.2010
     4; Last update   :   5.10.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Defines for Menu library.
     
    3535        call    MenuInit_SetTitleHeightFromAL
    3636
     37    %elifidn %1, GetHighlightedItemToAX
     38        call    MenuInit_GetHighlightedItemToAX
     39
    3740    %elifidn %1, SetTotalItemsFromAX
    3841        call    MenuInit_SetTotalItemsFromAX
     
    6063
    6164    .SetTitleHeightFromAL:
     65    .ClearTitleArea                             resb    2
    6266    .RefreshTitle                               resb    2
    6367
     68    .GetHighlightedItemToAX:
    6469    .HighlightItemFromAX                        resb    2
    6570    .SetTotalItemsFromAX:
     
    6772
    6873    .SetInformationHeightFromAL:
     74    .ClearInformationArea                       resb    2
    6975    .RefreshInformation                         resb    2
    7076
     
    130136NO_ITEM_SELECTED                    EQU     -1
    131137NO_ITEM_HIGHLIGHTED                 EQU     -1
     138NO_TIMEOUT_USED                     EQU     0
    132139
    133140
  • trunk/Assembly_Library/Inc/MenuEvents.inc

    r41 r48  
    22; Project name  :   Assembly Library
    33; Created date  :   13.7.2010
    4 ; Last update   :   11.8.2010
     4; Last update   :   5.10.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Defines for Menu events send to the user.
     
    4949
    5050    ; Parameters:
    51     ;   None but cursor has been positioned to the beginning of first line
     51    ;   CX:         Index of highlighted item
     52    ;   Cursor has been positioned to the beginning of first line
    5253    .RefreshTitle                   resb    2
    5354    .RefreshInformation             resb    2
Note: See TracChangeset for help on using the changeset viewer.