Commit Graph

  • bc60b85785 Support BANK() correctly when given WRAMX/SRAM/VRAM labels. Anthony J. Bentley 2015-02-22 03:33:18 -07:00
  • 9d0203a4ee Delete commented-out code. Anthony J. Bentley 2015-02-22 03:31:22 -07:00
  • a18b65de21 Update license for reallocarray. Anthony J. Bentley 2015-02-17 21:23:14 -07:00
  • 1c47ffcce8 Import reallocarray() for later use. Anthony J. Bentley 2015-02-14 00:14:39 -07:00
  • bbf60c7197 Fix _PI (define it for pass 2) Sanqui 2015-02-11 00:45:42 +01:00
  • 60c3a7e2f3 Reformat code for better spacing, and provide a more detailed error. Anthony J. Bentley 2015-01-30 20:30:33 -07:00
  • 5702995978 extern: sync strlcpy and strlcat with upstream. Anthony J. Bentley 2015-01-28 23:36:08 -07:00
  • 483d94f88b rgbasm: Fixed a dumb typo; pointed out by stag019. Anthony J. Bentley 2015-01-27 05:42:51 -07:00
  • 9b4d16b0d8 Add another crashing regression test. Anthony J. Bentley 2015-01-27 05:02:57 -07:00
  • a3e95f99d2 rgbasm: Fix a division by zero in section address specifiers. Anthony J. Bentley 2015-01-27 04:56:42 -07:00
  • e3a31d7e59 Correct test output for divzero-section-bank. Anthony J. Bentley 2015-01-27 04:48:25 -07:00
  • d9f5ce339a Add some basic regression tests. Anthony J. Bentley 2015-01-27 04:33:38 -07:00
  • 361f1ac50b Work around a crash when '@' is interpreted as a macro name. v0.2.2 Anthony J. Bentley 2015-01-22 21:12:57 -07:00
  • 4f8cf84ed4 rgbasm: improve (some) pathological spacing. Anthony J. Bentley 2015-01-22 21:09:10 -07:00
  • c75b9d4d55 Makefile: don't expand variables in a non-POSIXish way. Anthony J. Bentley 2015-01-22 20:42:27 -07:00
  • cd2af0204e rgbasm: Save some horizontal space in main.c. Anthony J. Bentley 2015-01-22 20:33:07 -07:00
  • 91241b44da rgbasm: bump MAXMACROARGS up to 256 from 9 yenatch 2015-01-19 23:28:09 -08:00
  • 1d174f37da rgbasm: Convert oDontExpandStrings to bool. Anthony J. Bentley 2015-01-07 23:52:22 -07:00
  • 2777044f70 Delete some unused functions. Anthony J. Bentley 2015-01-07 23:39:00 -07:00
  • e5e64b8cec rgbasm: trim ludicrously redundant comments. Anthony J. Bentley 2015-01-07 23:36:08 -07:00
  • 8534f3a148 Unify usage strings/functions across programs. Anthony J. Bentley 2015-01-07 23:13:18 -07:00
  • bdc6401eba rgbfix: deal with options and arguments in the right order. Anthony J. Bentley 2015-01-07 23:07:09 -07:00
  • 21d0b402d3 Don't unnecessarily initialize variables. Anthony J. Bentley 2015-01-07 22:59:06 -07:00
  • a305649557 rgbasm: Print usage if no filename is given after flags. Anthony J. Bentley 2015-01-07 22:44:28 -07:00
  • 3b0e207036 Pass -Wimplicit (implicit + implicit-function-declaration) by default. Anthony J. Bentley 2015-01-07 18:43:16 -07:00
  • 83eddb4c4e Merge branch 'haltnop' of https://github.com/stag019/rgbds Anthony J. Bentley 2015-01-07 16:47:10 -07:00
  • 57997756b6 Merge branch 'symmapfix' of https://github.com/stag019/rgbds Anthony J. Bentley 2015-01-07 16:36:37 -07:00
  • ab66b28fdf yacc_pre is no longer needed, since all the files were merged into one. stag019 2015-01-03 06:54:40 -05:00
  • 116569f54d Fix for mapfiles and symfiles. Before, you couldn't define a mapfile unless you also defined a symfile. If you did, it would segfault. stag019 2015-01-01 01:20:29 -05:00
  • 2b839fec37 Use the options parameter provided for command line options. Specifically, for haltnop. stag019 2014-12-31 13:29:24 -05:00
  • 513d451710 Tweak path for stdnoreturn.h header. v0.2.1 Anthony J. Bentley 2014-12-31 03:21:46 -07:00
  • 9399ba36f9 Check for standards‐compliant platforms first in stdnoreturn.h. Anthony J. Bentley 2014-12-31 03:20:14 -07:00
  • ef3a486845 Request POSIX 2008 for strdup(). Anthony J. Bentley 2014-12-31 03:18:01 -07:00
  • f0e5c5ccc8 Cross-compiler noreturn support. stag019 2014-12-31 04:11:06 -05:00
  • 9b4959cb75 Implement round, ceil, and floor math functions. stag019 2014-11-08 00:17:26 -05:00
  • dca82e6d95 Fix DEF() automatically converting string EQUS. stag019 2014-11-07 16:42:55 -05:00
  • 871c5ed360 We aren't kidding ourselves anymore. This is a Gameboy assembler, not any sort of generic assembler. stag019 2014-11-07 16:36:03 -05:00
  • 635014b74d On Clang, error on implicit function declaration by default. Anthony J. Bentley 2014-11-06 21:54:49 -07:00
  • 7ad634febd Don’t assign to self. Anthony J. Bentley 2014-11-06 21:42:40 -07:00
  • 1e1339467e Use POSIX 2001 as the base standard. Anthony J. Bentley 2014-11-06 21:39:36 -07:00
  • 9e24c26468 Specify _Noreturn in the err family prototypes. Anthony J. Bentley 2014-11-06 21:36:27 -07:00
  • c1213f536b Merge branch 'master' of https://github.com/stag019/rgbds v0.2.0 Anthony J. Bentley 2014-11-04 17:36:45 -07:00
  • 82de716454 Mark error functions as _Noreturn. Anthony J. Bentley 2014-11-04 17:28:30 -07:00
  • a64d725a8d The actual way the macro bug should have been fixed. stag019 2014-11-04 18:09:22 -05:00
  • 80e2129f22 Merge https://github.com/bentley/rgbds stag019 2014-11-02 01:00:20 -05:00
  • af70f03933 A few more small changes to charmap.c. stag019 2014-10-31 19:01:21 -04:00
  • 004bc2e50e Fix a few charmap bugs maybe? stag019 2014-10-31 10:48:54 -04:00
  • 25efb00769 fix a bug in the lexer involving double quote escaping and semicolons Christophe Staïesse 2014-10-10 15:22:00 +02:00
  • c6c7b99fad PATH_MAX is not exactly portable. Hack around it for now. v0.1.2 Anthony J. Bentley 2014-10-10 03:48:52 -06:00
  • e28d8384fb Merge branch 'fix-makefile' of https://github.com/chastai/rgbds Anthony J. Bentley 2014-10-06 02:01:21 -06:00
  • 27a350eaab Merge branch 'fix-uniquearg-segfault' of https://github.com/chastai/rgbds Anthony J. Bentley 2014-10-06 01:55:19 -06:00
  • cd8d895c1b Style. Anthony J. Bentley 2014-10-06 01:54:03 -06:00
  • 4577a01c68 Fix out of bounds array access on invalid macro arg references Christophe Staïesse 2014-10-05 13:42:07 +02:00
  • 6758387668 Add assertion to symFindMacroArg() to debug oob array access Christophe Staïesse 2014-10-05 16:36:57 +02:00
  • 424702b272 Fix bug: rgbasm segfault when \@ is used outside a macro Christophe Staïesse 2014-04-01 16:48:26 +02:00
  • 191f98a008 Fix incorrect dependencies in Makefile Christophe Staïesse 2014-10-05 11:37:11 +02:00
  • 00de7674af Now that install dirs are created, this error is unlikely to occur. v0.1.1 Anthony J. Bentley 2014-10-03 15:17:49 -06:00
  • 32fa032a62 Makefile: Create install directories if they don’t exist. Anthony J. Bentley 2014-10-03 15:14:40 -06:00
  • 73e44cb803 Fix dependencies for Yacc files. Improve Makefile POSIX compliance. Anthony J. Bentley 2014-09-26 15:27:52 -06:00
  • 3e4350afa4 Don't cast calls to malloc(). Anthony J. Bentley 2014-09-26 00:39:29 -06:00
  • 0d07caba60 Remove inconsistent version numbering. Anthony J. Bentley 2014-09-25 20:56:15 -06:00
  • 3992ce2502 Separate errors that shouldn't have been combined in the first place. Anthony J. Bentley 2014-09-25 20:40:25 -06:00
  • 215d6f0c5b Revert 97d431d1f4ad404e282e3781bd195be3f053734d; it breaks things. Anthony J. Bentley 2014-09-24 03:40:50 -06:00
  • f3394f46b4 Fix MinGW target. Anthony J. Bentley 2014-09-24 03:17:33 -06:00
  • e3df758897 Update license. Anthony J. Bentley 2014-09-24 03:07:43 -06:00
  • d7319ecd00 Remove rgblib. Anthony J. Bentley 2014-09-24 03:03:42 -06:00
  • d661b3a532 Now that we replace missing libc functions, switch back to err(). Anthony J. Bentley 2014-09-24 02:50:39 -06:00
  • c0be5ddbb2 Remove dead stores. Anthony J. Bentley 2014-09-24 01:19:05 -06:00
  • 97d431d1f4 rgbasm: Avoid unnecessary filename copying. Anthony J. Bentley 2014-09-24 00:52:00 -06:00
  • a849e1107e Improve POSIX compliance in the Makefile. Anthony J. Bentley 2014-09-24 00:38:19 -06:00
  • a41bdff88f Wrap Makefile to 80 characters. Anthony J. Bentley 2014-09-24 00:28:14 -06:00
  • cb383e6b1a Unclutter Makefile: use $Q instead of ${Q}. Anthony J. Bentley 2014-09-24 00:26:46 -06:00
  • 45b6872e2a rgbasm: Fix TOCTOU and reduce buffering. Anthony J. Bentley 2014-09-24 00:23:40 -06:00
  • 056109652d rgbasm: Don't allocate an unnecessary buffer. Anthony J. Bentley 2014-09-23 22:22:39 -06:00
  • 284600ef1f rgblink: Don't allocate unnecessary buffer. Delete unused flag. Anthony J. Bentley 2014-09-23 22:17:43 -06:00
  • 2bf31870a7 Cleaned up lexer - separated the lexer into multiple functions so it is more readable - fixed issue with long label names in macro arguments - added error checking code to prevent buffer overflows v0.1.0 YamaArashi 2014-08-22 21:44:18 -07:00
  • 6198cc185c Remove __LINE__ YamaArashi 2014-08-22 01:52:21 -07:00
  • e4571bc0fc Make _NARG work YamaArashi 2014-08-21 19:53:42 -07:00
  • 46269240c8 Merge branch 'update-legacy-instructions' of https://github.com/yenatch/rgbds Anthony J. Bentley 2014-08-21 11:29:34 -06:00
  • b1269ab53a Improve rgbasm performance YamaArashi 2014-08-21 02:57:43 -07:00
  • 3ecd169cd6 Revert previous commit. asmy.y is autogenerated from other .y files. Anthony J. Bentley 2014-02-21 03:20:44 -07:00
  • 2dab1474b8 asmy.y should not be in gitignore. Anthony J. Bentley 2014-02-21 00:56:34 -07:00
  • 08b1b97a45 Preserve the ability to set pad_value in rgbfix. Anthony J. Bentley 2014-02-09 02:58:00 -07:00
  • 17192ea6f0 Improve performance when padding: don't write a byte at a time. Anthony J. Bentley 2014-02-08 23:26:43 -07:00
  • af506985e5 Added license to charmap.c stag019 2014-02-03 20:46:52 -05:00
  • b2d523acde rgbasm: Evaluate BANK() arguments to verify they exist. yenatch 2014-02-01 20:50:39 -05:00
  • 0f488b6759 Remove unused alloca() implementation. Anthony J. Bentley 2014-01-31 00:01:42 -07:00
  • 240d2a7f14 Merge https://github.com/bentley/rgbds stag019 2014-01-29 00:18:10 -05:00
  • 2ff286223b add instruction "ld hl, sp+nn" yenatch 2014-01-14 11:39:57 -05:00
  • af5f889326 Merge https://github.com/yenatch/rgbds Anthony J. Bentley 2014-01-12 21:30:39 -07:00
  • 3e92f33319 Provide a friendlier error when manpage directories don’t exist. Anthony J. Bentley 2014-01-11 18:28:04 -07:00
  • 0ffa4ce9ef rgbasm: let rgblink try to import undefined symbols yenatch 2014-01-06 20:04:55 -05:00
  • 34656f9e5d Fix a bug where the first charmap entry wasn't added correctly. stag019 2013-12-28 00:35:05 -05:00
  • c61c112218 Remove GNU-specific <getopt.h>. getopt() is defined in <unistd.h> in POSIX, which adding #define _XOPEN_SOURCE 500 causes GCC to include. stag019 2013-12-23 14:57:06 -05:00
  • 55974bc743 Only define _MAX_PATH is it isn't already defined. stag019 2013-12-23 14:52:37 -05:00
  • 94005513a4 Comment out unused variable dest. stag019 2013-12-23 14:50:37 -05:00
  • 36edec6231 Add out_BinaryFileSlice() definition to output.h. stag019 2013-12-23 14:47:37 -05:00
  • 7d176245d8 Remove all implicit definitions of compiler provided functions. <strings.h> cause strncasecmp to be define. stag019 2013-12-23 14:40:53 -05:00
  • c65d58c589 Move local includes below system includes. stag019 2013-12-23 14:37:56 -05:00
  • 1f9fd0f060 This fixes an error with using long label names in macros. If the label name you're using is longer than the string length of the literal macro text, a syntax error would occur. This fix makes sure it at least allocates enough bytes for the largest allowed label name. stag019 2013-12-22 20:56:31 -05:00