Hey all, first post here, this is my problem using a Macro:
Cls - Create Linux String
%macro Cls 1, 2+
%1 db %2, 10
%1Length Equ $-%1
%endmacro
I get an error at this line:
Cls Message, "Hello World!"
The error message:
hello.asm:7: error: parser: instruction expected
Here is the whole code if anyone is interested, thanks all! :)
%macro Cls 1, 2+
%1 db %2, 10
%1Length Equ $-%1
%endmacro
SECTION .Data
Cls Message, "Hello World!"
SECTION .Text
Global Main
Main:
Mov Edx, MessageLength
Mov Ecx, Message
Mov Ebx, 1
Mov Eax, 4
Int 0x80
Mov Ebx, 0
Mov Eax, 1
Int 0x80