News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Writing the text of the Masm @macro in data

Started by ToutEnMasm, November 01, 2011, 09:44:21 AM

Previous topic - Next topic

ToutEnMasm

After a certain number of tests , I write this one:
Quote
WRITE@ MACRO chaine
Local etiquette,string,buffer
buffer TEXTEQU <chaine>   
   string CATSTR <">,buffer,<">
.data
   etiquette db string,0
.code   
   EXITM <etiquette>
ENDM
usage:
Quote
   invoke MessageBox,NULL,addr WRITE@(%@FileCur),addr WRITE@(%@Line),0
;useful when searching error