I want to recognize an assembler sourcecode (as text) in my texteditor.
Wich words are always in an assember source, very sure?

Posted on 2002-11-15 15:53:03 by Sm?rebr?d
None, but if I had to bet, then it'd be RET.
Posted on 2002-11-15 16:42:46 by Maverick
"Include" files don't need to have anything in them. One file may have only macros, another file may have only prototypes and EQUs.

Perhaps a better question is: I know I have an assembler file -- what words are special?
Posted on 2002-11-15 17:03:10 by tenkey

I'need it for syntax highlightning for some multiple program-languages...

Posted on 2002-11-15 17:38:15 by Sm?rebr?d
Iirc Iczelion's IczEdit has an .ini file with all (or most) of the asm keywords.
Posted on 2002-11-15 18:03:40 by Will
.code .data
Posted on 2002-11-15 20:59:23 by Axial

(where ? is 3, 4, 5, 6 etc)
It would be the first instruction (except for a comment)
Posted on 2002-11-16 05:34:14 by bazik
He didn't specify which assembler is in use (if any) ;)

For example, none of the proposed .code / .data / .?86* would work for FAsm sources.

So RET may be his best chance.. hardly an asm source doesn't have any RET.
One may wish to add ExitProcess, INT and MOV to the list of searched words.
Posted on 2002-11-16 06:44:53 by Maverick
Or look for ".asm" file extension :grin:
Posted on 2002-11-16 07:13:09 by bazik

Maverick: An editor should handle any assemblerssources...

basik: What about file extension in a new created text... .?86 is good !

Axial: .code and .data are good, too !

Thanks to all !

Posted on 2002-11-16 07:39:24 by Sm?rebr?d