Changeset 154 in xtideuniversalbios for trunk/Assembly_Library/Inc
- Timestamp:
- May 1, 2011, 6:38:56 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/Registers.inc
r149 r154 47 47 ; This macro must be the first thing to call on Interrupt Service Routine. 48 48 ; 49 ; SAVE_AND_GET_INTPACK_TO_SSBP49 ; CREATE_INTPACK_TO_SSBP 50 50 ; Parameters 51 51 ; Nothing … … 55 55 ; Nothing 56 56 ;-------------------------------------------------------------------- 57 %macro SAVE_AND_GET_INTPACK_TO_SSBP 057 %macro CREATE_INTPACK_TO_SSBP 0 58 58 ePUSHA 59 59 push ds … … 89 89 ;-------------------------------------------------------------------- 90 90 ; This macro must be the first thing to call on Interrupt Service Routine. 91 ; Extra words will be initialized to zero.92 91 ; 93 ; SAVE_AND_GET_INTPACK_WITH_EXTRA_WORDS_TO_SSBP92 ; CREATE_FRAME_INTPACK_TO_SSBP 94 93 ; Parameters 95 ; %1: Number of extra words to reserve before INTPACK94 ; %1: Number of extra bytes to reserve before INTPACK 96 95 ; Returns: 97 96 ; SS:BP: Points to INTPACK … … 99 98 ; Nothing 100 99 ;-------------------------------------------------------------------- 101 %macro SAVE_AND_GET_INTPACK_WITH_EXTRA_WORDS_TO_SSBP 1100 %macro CREATE_FRAME_INTPACK_TO_SSBP 1 102 101 ePUSHA 103 102 push ds … … 107 106 push gs 108 107 %endif 109 xor bp, bp 110 times %1 push bp ; Initialize to zero 108 sub sp, BYTE %1 111 109 mov bp, sp 112 110 %endmacro … … 115 113 ; This macro must be the last thing to call on Interrupt Service Routine. 116 114 ; 117 ; RESTORE_ INTPACK_WITH_EXTRA_WORDS_FROM_SSBP115 ; RESTORE_FRAME_INTPACK_FROM_SSBP 118 116 ; Parameters 119 ; %1: Number of extra words in INTPACK117 ; %1: Number of extra bytes in INTPACK 120 118 ; SS:BP: Ptr to INTPACK 121 119 ; Returns: 122 120 ; All Registers will be loaded from INTPACK 123 121 ;-------------------------------------------------------------------- 124 %macro RESTORE_ INTPACK_WITH_EXTRA_WORDS_FROM_SSBP 1125 add sp, BYTE (%1)*2122 %macro RESTORE_FRAME_INTPACK_FROM_SSBP 1 123 add sp, BYTE %1 126 124 %ifdef USE_386 127 125 pop gs
Note:
See TracChangeset
for help on using the changeset viewer.