Changeset 258 in xtideuniversalbios for trunk/Assembly_Library
- Timestamp:
- Feb 22, 2012, 7:01:53 PM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Assembly_Library/Inc/Macros.inc
r119 r258 52 52 ; when stack usage is undesirable (ie speed is critical). 53 53 ; 54 ; The PRESERVE_FLAGS version will zero the register with a MOV instead 55 ; of an XOR, thus preserving the flags. It is one byte larger on 56 ; non-186 or higher systems. 57 ; 54 58 ; LOAD_BDA_SEGMENT_TO 59 ; LOAD_BDA_SEGMENT_PRESERVE_FLAGS_TO 55 60 ; Parameters: 56 61 ; %1: Destination Segment Register … … 68 73 %elifidn %3, ! 69 74 xor %2, %2 75 mov %1, %2 76 %else 77 push BYTE 0 78 pop %1 79 %endif 80 %endmacro 81 82 %macro LOAD_BDA_SEGMENT_PRESERVE_FLAGS_TO 2-3 83 %ifndef USE_186 84 mov %2, 0 85 mov %1, %2 86 %elifidn %3, ! 87 mov %2, 0 70 88 mov %1, %2 71 89 %else
Note:
See TracChangeset
for help on using the changeset viewer.