Changeset 154 in xtideuniversalbios for trunk/Assembly_Library/Inc


Ignore:
Timestamp:
May 1, 2011, 6:38:56 PM (14 years ago)
Author:
Tomi Tilli
google:author:
aitotat
Message:

Changes to Assembly Library:

  • Small updates to INTPACK macros.
File:
1 edited

Legend:

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

    r149 r154  
    4747; This macro must be the first thing to call on Interrupt Service Routine.
    4848;
    49 ; SAVE_AND_GET_INTPACK_TO_SSBP
     49; CREATE_INTPACK_TO_SSBP
    5050;   Parameters
    5151;       Nothing
     
    5555;       Nothing
    5656;--------------------------------------------------------------------
    57 %macro SAVE_AND_GET_INTPACK_TO_SSBP 0
     57%macro CREATE_INTPACK_TO_SSBP 0
    5858    ePUSHA
    5959    push    ds
     
    8989;--------------------------------------------------------------------
    9090; This macro must be the first thing to call on Interrupt Service Routine.
    91 ; Extra words will be initialized to zero.
    9291;
    93 ; SAVE_AND_GET_INTPACK_WITH_EXTRA_WORDS_TO_SSBP
     92; CREATE_FRAME_INTPACK_TO_SSBP
    9493;   Parameters
    95 ;       %1:     Number of extra words to reserve before INTPACK
     94;       %1:     Number of extra bytes to reserve before INTPACK
    9695;   Returns:
    9796;       SS:BP:  Points to INTPACK
     
    9998;       Nothing
    10099;--------------------------------------------------------------------
    101 %macro SAVE_AND_GET_INTPACK_WITH_EXTRA_WORDS_TO_SSBP 1
     100%macro CREATE_FRAME_INTPACK_TO_SSBP 1
    102101    ePUSHA
    103102    push    ds
     
    107106    push    gs
    108107%endif
    109     xor     bp, bp
    110     times %1 push bp        ; Initialize to zero
     108    sub     sp, BYTE %1
    111109    mov     bp, sp
    112110%endmacro
     
    115113; This macro must be the last thing to call on Interrupt Service Routine.
    116114;
    117 ; RESTORE_INTPACK_WITH_EXTRA_WORDS_FROM_SSBP
     115; RESTORE_FRAME_INTPACK_FROM_SSBP
    118116;   Parameters
    119 ;       %1:     Number of extra words in INTPACK
     117;       %1:     Number of extra bytes in INTPACK
    120118;       SS:BP:  Ptr to INTPACK
    121119;   Returns:
    122120;       All Registers will be loaded from INTPACK
    123121;--------------------------------------------------------------------
    124 %macro RESTORE_INTPACK_WITH_EXTRA_WORDS_FROM_SSBP 1
    125     add     sp, BYTE (%1)*2
     122%macro RESTORE_FRAME_INTPACK_FROM_SSBP 1
     123    add     sp, BYTE %1
    126124%ifdef USE_386
    127125    pop     gs
Note: See TracChangeset for help on using the changeset viewer.