Author: hbelusca
Date: Thu Jun 4 01:53:22 2015
New Revision: 68004
URL:
http://svn.reactos.org/svn/reactos?rev=68004&view=rev
Log:
[INCLUDE:ASM]: fix the .space macro definition for MASM: it aims at imitating the .space
macro of GAS. Its syntax is: ".space size_in_bytes
optional_fill_byte_defaults_to_zero" . As previously declared, it was doing the
reverse: filling *just* one (zero?) bytes with 'count' interpreted as a byte
value. Also add a .skip macro that exactly does the same (and is equivalent of the same
one in GAS).
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=68…
==============================================================================
--- trunk/reactos/include/asm/asm.inc [iso-8859-1] (original)
+++ trunk/reactos/include/asm/asm.inc [iso-8859-1] Thu Jun 4 01:53:22 2015
@@ -141,8 +141,12 @@
ENDM
ENDM
-.space MACRO count
- DB 0 DUP (count)
+.skip MACRO size, fill:=<0>
+ DB size DUP (fill)
+ENDM
+
+.space MACRO size, fill:=<0>
+ .skip size, fill
ENDM
ljmp MACRO segment, offset