Changeset 407 in xtideuniversalbios for trunk


Ignore:
Timestamp:
Apr 25, 2012, 8:55:11 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Assembly Library:

  • One more attempt to properly restore MDA cursor after exiting menu.
Location:
trunk/Assembly_Library
Files:
4 edited

Legend:

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

    r390 r407  
    184184
    185185; Cursor shapes
    186 CURSOR_NORMAL               EQU     0607h       ; Two line cursor near or at the bottom of cell (not valid for IBM MDA)
     186CURSOR_NORMAL_COLOR         EQU     0607h       ; Two line cursor near or at the bottom of cell (not valid for IBM MDA)
     187CURSOR_NORMAL_MDA           EQU     0B0Ch       ; Scanlines 11 and 12
    187188CURSOR_HIDDEN               EQU     2000h
    188189
  • trunk/Assembly_Library/Src/Display/DisplayContext.asm

    r376 r407  
    3434    mov     WORD [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.fnCharOut], DEFAULT_CHARACTER_OUTPUT
    3535    mov     BYTE [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.bAttribute], SCREEN_BACKGROUND_ATTRIBUTE
    36     mov     ax, [VIDEO_BDA.wCursorShape]
     36    call    DisplayCursor_GetDefaultCursorShapeToAX
    3737    mov     [VIDEO_BDA.displayContext+DISPLAY_CONTEXT.wCursorShape], ax
    3838    ; Fall to .DetectAndSetDisplaySegment
  • trunk/Assembly_Library/Src/Display/DisplayCursor.asm

    r376 r407  
    2020; Section containing code
    2121SECTION .text
     22
     23;--------------------------------------------------------------------
     24; DisplayCursor_GetDefaultCursorShapeToAX
     25;   Parameters:
     26;       DS:     BDA segment (zero)
     27;   Returns:
     28;       AX:     Default text mode cursor shape
     29;   Corrupts registers:
     30;       Nothing
     31;--------------------------------------------------------------------
     32ALIGN DISPLAY_JUMP_ALIGN
     33DisplayCursor_GetDefaultCursorShapeToAX:
     34    mov     ax, CURSOR_NORMAL_COLOR             ; CGA, EGA, VGA cursor
     35    cmp     BYTE [VIDEO_BDA.bMode], MDA_TEXT_MODE
     36    eCMOVE  ax, CURSOR_NORMAL_MDA               ; MDA cursor
     37    ret
     38
    2239
    2340;--------------------------------------------------------------------
  • trunk/Assembly_Library/Src/Keyboard/Keyboard.asm

    r376 r407  
    144144
    145145    CALL_DISPLAY_LIBRARY PushDisplayContext
    146     mov     ax, CURSOR_NORMAL
     146    call    DisplayCursor_GetDefaultCursorShapeToAX
    147147    CALL_DISPLAY_LIBRARY SetCursorShapeFromAX
    148148    CALL_DISPLAY_LIBRARY SynchronizeDisplayContextToHardware
Note: See TracChangeset for help on using the changeset viewer.