Author: tkreuzer
Date: Wed Jun 8 19:06:01 2011
New Revision: 52151
URL:
http://svn.reactos.org/svn/reactos?rev=52151&view=rev
Log:
[ASM]
Add some more protability macros
Modified:
trunk/reactos/include/asm/asm.inc
Modified: trunk/reactos/include/asm/asm.inc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/asm/asm.inc?rev=52…
==============================================================================
--- trunk/reactos/include/asm/asm.inc [iso-8859-1] (original)
+++ trunk/reactos/include/asm/asm.inc [iso-8859-1] Wed Jun 8 19:06:01 2011
@@ -47,15 +47,16 @@
.ASCII MACRO text
DB text
ENDM
+.ascii MACRO text
+ DB text
+ENDM
/* MASM doesn't have an ASCIZ macro */
.ASCIZ MACRO text
DB text, 0
ENDM
-#define asciz ASCIZ
-
-ljmp MACRO segment, offset
- DB 0
+.asciz MACRO text
+ DB text, 0
ENDM
.code64 MACRO
@@ -69,11 +70,12 @@
.code16 MACRO
ASSUME nothing
- .text16 SEGMENT use16
+ .text SEGMENT use16
+ .586
ENDM
.endcode16 MACRO
- .text16 ENDS
+ .text ENDS
ENDM
.bss MACRO
@@ -144,6 +146,16 @@
UNIMPLEMENTED MACRO name
ENDM
+absolute MACRO address
+ __absolute__address__ = address
+ENDM
+
+resb MACRO name, size
+ name = __absolute__address__
+ __absolute__address__ = __absolute__address__ + size
+ENDM
+
+
/* We need this to distinguish repeat from macros */
#define ENDR ENDM
@@ -261,6 +273,15 @@
.macro .endprolog
.endm
+
+.macro absolute address
+ __absolute__address__ = \address
+ENDM
+
+.macro resb name, size
+ \name = __absolute__address__
+ __absolute__address__ = __absolute__address__ + \size
+ENDM
.macro UNIMPLEMENTED2 file, line, func