210 Commits (a6e5b3e16601e258c570dc48aed0128d931d2e4c)

Author SHA1 Message Date
Peter Johnson 90625f71e1 Add semicolon at end of error handling code to fix syntax errors. Only seen 23 years ago
Peter Johnson ef3eff4f62 Enhance error/warning framework by allowing specific warnings to be disabled, 23 years ago
Peter Johnson f61b5746f1 Don't compact into a short form if one's not available. 23 years ago
Peter Johnson 044cc90233 Make jcc's default to JR_SHORT in NASM syntax, and test for this possibility 23 years ago
Peter Johnson 056b3fc52c Finish bc_calc_len(), with fixes to x86_bc_calc_len_insn()'s EA sizing calcs, 23 years ago
Peter Johnson 760e3c4d11 In optimize_bytecode(), calculate bc->offset *before* calling bc_calc_len(). 23 years ago
Peter Johnson 5b2166d50a Don't store "determined" immediate len and neg. Both will be determined from 23 years ago
Peter Johnson 4949569151 Fix memory leak. 23 years ago
Peter Johnson 3c0a749084 Rework resolve_label() and add a second pass. 23 years ago
Peter Johnson ee74365f05 Add new bc_resolve() family, and rewrite calc_len to /just/ calculate the 23 years ago
Peter Johnson cc635cc237 Change return type of calc_len() family back to int from unsigned long. 23 years ago
Peter Johnson 0276a2db37 - Use new symrec_get_label(). 23 years ago
Peter Johnson 985d4e9b59 LCLint cleanups. 23 years ago
Peter Johnson f243b4d652 Be nice for debugging purposes and set effaddr sib=0 even when it's not valid. 23 years ago
Peter Johnson e23d88b957 Make resolve_label() take a symrec * instead of a section * and bytecode *. 23 years ago
Peter Johnson e2f2ede90c bc_calc_len() family should return unsigned long, not int. 23 years ago
Peter Johnson 3f2186c1bf Change from current file/line dual storage to a monotonically-increasing line 23 years ago
Peter Johnson 73e3e69375 Add tests/Makefile.inc to EXTRA_DIST. 23 years ago
Peter Johnson f5358bb32e Change EXTRA_DIST to reflect movement of strsep.c and mergesort.c. 23 years ago
Peter Johnson ac056aa1fc Fix issues with yy->nasm_parser_ renaming. AM_YFLAGS/AM_LFLAGS are not an 23 years ago
Peter Johnson 90864f6793 Bring up-to-date with new generated files (due to new build structure). 23 years ago
Peter Johnson ca6a1c8167 Massive build system change: single Makefile instead of recursive. 23 years ago
Peter Johnson 0caf84d85f Massive build system change: single Makefile instead of recursive. 23 years ago
Peter Johnson 2727869bd8 Start work on optimizer module. Moved all "post-parser-finalization" code 23 years ago
Peter Johnson ae85d1edb1 Add support for incbin pseudo-instruction. 23 years ago
Peter Johnson b3cb8c0292 Move assert.h include to util.h 23 years ago
Peter Johnson c42294ab0a Fix a few LCLint errors. 23 years ago
Peter Johnson 8043dbfc16 Generate smaller code where possible (eg, when op_len=1, it's not necessary to 23 years ago
Peter Johnson 758edc89e7 Allow overrides (a32/a16/rep/etc) to appear on their own line. The way this 23 years ago
Peter Johnson 7b4e6c09dc Add support for NASM's %line. 23 years ago
Peter Johnson 83b996e8f4 Remove definition of line_number; it was overriding the global variable. 23 years ago
Peter Johnson a9a74064b4 Fix so "0h" works. 23 years ago
Peter Johnson cf84bbf503 Change REG_SOMEREG -> reg_somereg and add rules that allow BYTE/WORD/DWORD 23 years ago
Peter Johnson 2aec833b07 Don't free EA when simplifying shift_op case. Not only is this code completely 23 years ago
Peter Johnson ff1fba3feb Fix bug with ONE generation (overwrote both [0] and [1] indexes with opcode 23 years ago
Peter Johnson a7ce9bf2d1 Delete dbg optimizer (won't be useful) and add "basic" (equiv. to NASM 2-pass) 23 years ago
Peter Johnson 825eaa5823 Massive cleanup of debugging output (via _print() functions). All now take 23 years ago
Peter Johnson b930d117d3 Polish up most directive support. This necessitated adding objfmt-specific 23 years ago
Peter Johnson bd921434cb Don't do REG_E?AX combining with reg8/reg8x instructions, to allow things like 23 years ago
Peter Johnson 9f63877c07 In bytecode_print(), fix checks for short/near opcode printouts. 23 years ago
Peter Johnson d894c27cca Fix hexidecimal number handling. It was only allowing numbers starting with 0. 23 years ago
Peter Johnson 94a5e7fe03 Revert previous changes (which turned on -v), it was accidentally committed. 23 years ago
Peter Johnson 9a84b66d1c Don't try to redefine a label for an already existing segment. Thus, add a 23 years ago
Peter Johnson 9c7469116d Fix a memory re-free issue in nasm_parser_directive(). vp->param was passed 23 years ago
Peter Johnson 8cbf2c2312 - Greatly enhance capabilities of directives (they're actually parsed now). 23 years ago
Peter Johnson ac65ee8770 Better LCLint settings for x86_bc_insn_get_ea(). 23 years ago
Peter Johnson c7e3ad29e9 Don't set nasm_parser_debug (as we'll soon not define YYDEBUG in bison.y.in). 23 years ago
Peter Johnson 8178f883a5 Modify so that almost everything passes LCLint with the options in lclint.sh. 23 years ago
Peter Johnson d7fe402fb9 Split away x86-specific parts of expression handling (eg, effective address -> 23 years ago
Peter Johnson a2bc46cb54 Fix file comment. 23 years ago