Changeset 407 in xtideuniversalbios for trunk/Assembly_Library/Src/Display/DisplayCursor.asm


Ignore:
Timestamp:
Apr 25, 2012, 8:55:11 PM (12 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;--------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.