summaryrefslogtreecommitdiff
path: root/modules/parsers/tasm
Commit message (Collapse)AuthorAgeFilesLines
* tasm parser: Support "not" keyword.Peter Johnson2009-04-172-0/+2
| | | | | | Requested by: Rugxulo <rugxulo@gmail.com> svn path=/trunk/yasm/; revision=2196
* Remove directory EXTRA_DIST; it seems to be making distcheck on ctn die.Peter Johnson2008-10-081-1/+0
| | | | svn path=/trunk/yasm/; revision=2140
* Add core TASM syntax support.Peter Johnson2008-10-0743-0/+735
Contributed by: Samuel Thibault <samuel.thibault@ens-lyon.org> It is built on top of the NASM parser and preproc, with the following notable extensions for TASM syntax: - case insensitive symbols and filenames, - support for segment and size of labels, which permits to avoid giving them on each memory dereference, - support for data reservation (i.e. e.g. "var dd ?"), - support for multiples (i.e. e.g. "var dd 1 dup 10"), - little endian string integer constants, - additional expression operators: shl, shr, and, or, low, high, - additional offset keyword, - additional fword and df, - support for doubled quotes within quotes, - support for array-like and structure-like notations: t[eax] and [var].field, - support for tasm directives: macro, rept, irp, locals, proc, struc, segment, assume. Notes: - Almost all extensions are only effective when tasm_compatible_mode is set, so we should have very reduced possible breakage. - Because the "and" keyword can be an expression operator and an instruction name, the data pseudo-instructions explicitly switch the lexer state to INSTRUCTION state to fix the ambiguity. - In gen_x86_insn.py, several instructions (namely lds and lea) now take relaxed memory sizes. The reason is that in the case of tasm, the size of the actual pointed data is passed up to there, and thus any type of data should be accepted. With all of this, loadlin can be compiled by yasm with quite reduced modifications. A new TASM-like frontend is also included. svn path=/trunk/yasm/; revision=2130