[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).

svn path=/trunk/; revision=68004
This commit is contained in:
Hermès Bélusca-Maïto 2015-06-04 01:53:22 +00:00
parent e1aecc4b70
commit 77f9846093

View file

@ -141,8 +141,12 @@ ENDM
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