Changeset 1190 in vbox for trunk/include/iprt/asmdefs.mac
- Timestamp:
- Mar 4, 2007 8:42:13 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asmdefs.mac
r74 r1190 115 115 116 116 ;; 117 ; Ends a C callab ke procedure.117 ; Ends a C callable procedure. 118 118 %macro ENDPROC 1 119 119 GLOBALNAME %1_EndProc … … 122 122 123 123 124 ; 125 ; Do OMF segment definitions 126 ; 127 %ifdef ASM_FORMAT_OMF 128 129 ; 16-bit segments first (OMF / OS/2 specific). 130 %ifdef RT_INCL_16BIT_SEGMENTS 131 segment DATA16 public CLASS=FAR_DATA align=16 use16 132 segment DATA16_INIT public CLASS=FAR_DATA align=16 use16 133 group DGROUP16 DATA16 DATA16_INIT 134 135 ;; 136 ; Begins 16-bit data 137 %macro BEGINDATA16 0 138 segment DATA16 139 %endmacro 140 141 ;; 142 ; Begins 16-bit init data 143 %macro BEGINDATA16INIT 0 144 segment DATA16_INIT 145 %endmacro 146 147 segment CODE16 public CLASS=FAR_CODE align=16 use16 148 segment CODE16_INIT public CLASS=FAR_CODE align=16 use16 149 group CGROUP16 CODE16 CODE16_INIT 150 151 ;; 152 ; Begins 16-bit code 153 %macro BEGINCODE16 0 154 segment CODE16 155 %endmacro 156 157 ;; 158 ; Begins 16-bit init code 159 %macro BEGINCODE16INIT 0 160 segment CODE16_INIT 161 %endmacro 162 163 %endif 164 165 ; 32-bit segments. 166 segment TEXT32 public CLASS=CODE align=16 use32 flat 167 segment DATA32 public CLASS=DATA align=16 use32 flat 168 segment BSS32 public CLASS=BSS align=16 use32 flat 169 170 ; Make the TEXT32 segment default. 171 segment TEXT32 172 %endif 173 174 124 175 ;; 125 176 ; Begins code 126 177 %ifdef ASM_FORMAT_OMF 127 178 %macro BEGINCODE 0 128 %ifndef _DONE_BEGINCODE 129 %define _DONE_BEGINCODE 1 130 segment TEXT32 public CLASS=CODE align=16 use32 flat 131 %else 132 segment TEXT32 133 %endif 179 segment TEXT32 134 180 %endmacro 135 181 %else … … 144 190 %ifdef ASM_FORMAT_OMF 145 191 %macro BEGINDATA 0 146 %ifndef _DONE_BEGINDATA 147 %define _DONE_BEGINDATA 1 148 segment DATA32 public CLASS=DATA align=16 use32 flat 149 %else 150 segment DATA32 151 %endif 192 segment DATA32 152 193 %endmacro 153 194 %else … … 161 202 %ifdef ASM_FORMAT_OMF 162 203 %macro BEGINBSS 0 163 %ifndef _DONE_BEGINBSS 164 %define _DONE_BEGINBSS 165 segment BSS32 public CLASS=BSS align=16 use32 flat 166 %else 167 segment BSS32 168 %endif 204 segment BSS32 169 205 %endmacro 170 206 %else … … 407 443 408 444 ;; @def RTHCPTR_RES 409 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 445 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 410 446 ; host physical address variable 411 447 %define RTHCPHYS_RES resq … … 426 462 427 463 ;; @def RTGCPTR_RES 428 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 464 ; The pesudo-instruction used to declare (=reserve space for) an uninitialized 429 465 ; guest physical address variable 430 466 %define RTGCPHYS_RES resd … … 516 552 517 553 ;; @def xAX 518 ; RAX or EAX depending on context. 554 ; RAX or EAX depending on context. 519 555 520 556 ;; @def xBX 521 ; RBX or EBX depending on context. 557 ; RBX or EBX depending on context. 522 558 523 559 ;; @def xCX 524 ; RCX or ECX depending on context. 560 ; RCX or ECX depending on context. 525 561 526 562 ;; @def xDX 527 ; RDX or EDX depending on context. 563 ; RDX or EDX depending on context. 528 564 529 565 ;; @def xDI 530 ; RDI or EDI depending on context. 566 ; RDI or EDI depending on context. 531 567 532 568 ;; @def xSI 533 ; RSI or ESI depending on context. 569 ; RSI or ESI depending on context. 534 570 535 571 %ifdef __AMD64__
Note:
See TracChangeset
for help on using the changeset viewer.