Commit Graph

  • 62d3b44768 Add test for UNION without NEXTU Rangi42 2025-08-24 13:08:27 -04:00
  • ead5337fe0 Use scoped blocks for case-specific variables Rangi42 2025-08-23 21:52:22 -04:00
  • 0d509aa65c Suggest DEF when undefined macros look like definitions Rangi42 2025-08-23 21:40:51 -04:00
  • fcfc931867 Shorten lexing of simple tokens Rangi42 2025-08-20 22:37:03 -04:00
  • 3d155d5695 Some refactoring and cleanup (#1806) Rangi 2025-08-20 16:09:04 -04:00
  • 92ed6ece53 Support 32-bit addresses ("XL4") as of SDCC 4.4.0 Rangi42 2025-08-20 09:15:26 -04:00
  • e0e9ef190a Clarify DAA documentation Rangi42 2025-08-20 08:57:32 -04:00
  • 386fb5f398 Add more character utility functions Rangi42 2025-08-19 19:12:58 -04:00
  • 94e9ef5213 Factor shared code out of lexer_CaptureRept and lexer_CaptureMacro Rangi42 2025-08-19 18:11:50 -04:00
  • 0c4c25b2d2 Add a little more test coverage (#1805) Rangi 2025-08-19 15:26:23 -04:00
  • f7167d8115 More consistent documentation for NP-complete heuristics Rangi42 2025-08-18 21:45:26 -04:00
  • b7e0783ae7 Implement ? suffix to "quiet" a context and exclude it from backtraces (#1800) Rangi 2025-08-18 21:34:58 -04:00
  • 77a105e189 Mention the "first-fit bin packing" algorithm of RGBLINK Rangi42 2025-08-18 11:51:01 -04:00
  • a16dcc0ea5 Downgrade FreeBSD release used for testing from 15 to 14.3 Rangi42 2025-08-17 14:09:39 -04:00
  • 9f373d49ac Add more tests for edge-case macro and interpolation expansion behavior Rangi42 2025-08-17 13:52:58 -04:00
  • 272019beb0 Fix line numbers from nested expansions (#1802) Rangi 2025-08-14 11:13:50 -04:00
  • db6793f444 Don't count single quote ' as garbage (#1801) Rangi 2025-08-14 10:10:59 -04:00
  • ea1358bbe6 Predef std::pair to two-element std::tuple Rangi42 2025-08-13 20:48:54 -04:00
  • 2bdf61da70 Increase RGBASM test coverage Rangi42 2025-08-13 10:56:32 -04:00
  • 92826a726a Move some static variables into the only functions that use them Rangi42 2025-08-13 09:34:49 -04:00
  • 9c3ce69180 Factor out shared backtrace code (#1793) Rangi 2025-08-12 17:56:54 -04:00
  • 50d0b101c3 Format linker script error backtraces the same way as others (#1792) Rangi 2025-08-12 16:58:17 -04:00
  • 1bf1219e07 Factor out shared --color-parsing code Rangi42 2025-08-12 15:53:57 -04:00
  • 7b405513d9 Make quote marks consistent in error/warning messages (#1791) Rangi 2025-08-12 15:24:21 -04:00
  • 7df9c12a6c Fix division and modulo for very large negative numbers (#1790) Rangi 2025-08-11 20:46:47 -04:00
  • 30a8503dcd Format RGBFIX and RGBGFX warnings/errors the same way as RGBASM and RGBLINK Rangi42 2025-08-11 15:16:00 -04:00
  • 02310489c6 Suggest ld and call when failing to link ldh and rst Rangi42 2025-08-11 15:02:18 -04:00
  • 5f8b7474b4 Add -B/--backtrace option to RGBASM and RGBLINK (#1787) Rangi 2025-08-11 14:30:14 -04:00
  • 92a9c73ee7 Deprecate __DATE__ and __TIME__ (#1786) Rangi 2025-08-11 09:48:18 -04:00
  • 7ade3e74b3 Avoid the need to repeat -Weverything in test .flags Rangi42 2025-08-11 08:11:32 -04:00
  • 978e832914 Allow :: to join instructions *and* data declarations (#1785) Rangi 2025-08-11 08:04:42 -04:00
  • 2130a5ba1f Error messages refer to "undefined" symbols and sections Rangi42 2025-08-08 19:22:13 -04:00
  • 9fc83efe06 Make rgbasm -Wlarge-constant enabled by default Rangi42 2025-08-08 19:00:13 -04:00
  • e41ce49698 Only print one warning for too-large integer constants, not one per digit (#1781) Rangi 2025-08-08 18:58:38 -04:00
  • 1574b5b1f7 Test the behavior of ds N, @ Rangi42 2025-08-07 09:41:33 -04:00
  • 3f6db080b4 Ensure that alignment is at most 16 and we do not cause UB Rangi42 2025-08-06 15:18:35 -04:00
  • f9a55bd5cd Allow OPT to accept optional dashes before flags Rangi42 2025-08-06 10:19:01 -04:00
  • a4a830776b Deprecate treating strings as numbers (#1780) Rangi 2025-08-06 10:13:22 -04:00
  • 34d99b273c Add zsh completions for --color flag Rangi42 2025-08-06 09:26:22 -04:00
  • feb8365812 Document the deprecated rgbfix -O and string functions Rangi42 2025-08-06 09:07:35 -04:00
  • bf66e346f0 Add -Wobsolete to RGBFIX and RGBGFX, and deprecate rgbfix -O Rangi42 2025-08-05 17:12:29 -04:00
  • 3a0a4b7f90 Deprecate 1-indexed string functions Rangi42 2025-08-05 16:46:09 -04:00
  • 39f0f9edc0 Remove previously deprecated features (#1777) Rangi 2025-08-05 16:24:10 -04:00
  • a3983b7b0f Support rgbgfx -c dmg to imply -c dmg=e4 Rangi42 2025-08-05 14:18:25 -04:00
  • 504a45a4ed Reuse isWhitespace and isNewline, also refactoring readAtFile Rangi42 2025-08-05 13:46:53 -04:00
  • 98c5c7f776 Support rgbgfx -c auto for automatic palette generation Rangi42 2025-08-05 13:05:21 -04:00
  • 7020cf7188 Make struct Uppercase have constexpr methods Rangi42 2025-08-05 12:11:23 -04:00
  • 70d129fcd7 Color "warning:" yellow in warnx Rangi42 2025-08-05 11:26:21 -04:00
  • 2d5f4d8910 More consistent missing-input error messages Rangi42 2025-08-05 11:22:58 -04:00
  • 26c6911c8f More consistent man pages Rangi42 2025-08-05 11:16:00 -04:00
  • f1fd3abcff Don't bother searching the keywordDict for local labels Rangi42 2025-08-05 10:49:09 -04:00
  • 2cae47a5a2 Color verbose output as magenta Rangi42 2025-08-05 00:00:57 -04:00
  • ac75a085fa Refactor lexer_CaptureRept and lexer_CaptureMacro Rangi42 2025-08-04 23:21:11 -04:00
  • 0c1b422c36 Refactor some redundant lexer code Rangi42 2025-08-04 19:06:57 -04:00
  • 23ce888d65 Use colored/styled text output for diagnostics and usage info (#1775) Rangi 2025-08-04 17:02:24 -04:00
  • d992b21141 Fix man page syntax for Flags Rangi42 2025-08-03 13:22:22 -04:00
  • 903492cce2 Fully support rgbasm -MC in Bash completion script Rangi42 2025-08-03 13:08:36 -04:00
  • fc9b614225 Allow the index of CHARVAL to be optional Rangi42 2025-08-03 08:44:06 -04:00
  • 543b7fa6c2 Use std::nothrow for the only new expression Rangi42 2025-08-02 22:52:20 -04:00
  • 5a7ffd19b0 Move or remove some redundant information from the README Rangi42 2025-08-02 22:07:18 -04:00
  • 7be7483571 Move more RGBASM parser action code out of the Bison file Rangi42 2025-08-02 20:52:09 -04:00
  • 2eeb333be0 Factor out more shared math operations between RGBASM and RGBLINK Rangi42 2025-08-02 19:35:26 -04:00
  • fe8baaec50 Show contributors' avatars with contrib.rocks Rangi42 2025-08-02 17:12:29 -04:00
  • 752b273aec Extend RGBASM and RGBLINK verbosity flags to have multiple levels like RGBGFX (#1772) Rangi 2025-08-02 17:10:10 -04:00
  • b51056f743 Fix "while expanding symbol" error message Rangi42 2025-08-01 16:25:44 -04:00
  • ee1aed51d8 Use std::numbers::pi instead of nonstandard M_PI Rangi42 2025-08-01 13:07:02 -04:00
  • db2cda790c Factor out a single consumeChar function Rangi42 2025-08-01 12:12:22 -04:00
  • 86b43ea14f Fix interpolation after empty string literal Rangi42 2025-07-31 15:17:11 -04:00
  • d1829ed923 Release v0.9.4 v0.9.4 Rangi42 2025-07-31 07:41:49 -04:00
  • 6d53bc4121 Simplify toggling of enabling/disabling expansions Rangi42 2025-07-31 06:36:22 -04:00
  • 32b5ef5095 Expand the test for {interpolation} after two double quotes Rangi42 2025-07-31 07:07:49 -04:00
  • a36f2b3b7d Add test for {interpolation} after two double quotes Rangi42 2025-07-31 03:31:13 -04:00
  • cd4be6aa07 Update test dependencies Rangi42 2025-07-30 14:49:11 -04:00
  • 499edaecd0 Exclude verboseOutputAssignments from LCOV coverage testing Rangi42 2025-07-29 14:53:30 -04:00
  • 225490163e Fix RGBGFX "decanting" on "components" (color sets sharing colors) (#1768) Rangi 2025-07-29 14:52:20 -04:00
  • d388a60daa Reduce deep nesting in gfx/pal_packing.cpp Rangi42 2025-07-29 13:45:19 -04:00
  • 6d05de9d4d Remove a little no-longer-necessary header boilerplate Rangi42 2025-07-29 11:08:23 -04:00
  • 5d6e571338 Mention palette filenames in rgbgfx -c error messages Rangi42 2025-07-29 06:44:33 -04:00
  • 308d488833 Use UpperMap for rgblink -S scramble spec matching Rangi42 2025-07-29 03:37:32 -04:00
  • cecbf0aa0e Add test case for some macro+interpolation behavior Rangi42 2025-07-29 01:34:55 -04:00
  • d21e6669ce Unrefactor peek() to use tail recursion instead of a loop Rangi42 2025-07-29 00:17:10 -04:00
  • 2341d1ee50 Replace platform-specific mmap with reading the entire .asm file Rangi42 2025-07-28 15:15:40 -04:00
  • 53949761a7 Factor out our manual std::filesystem::path.replace_extension replacement into its own function Rangi42 2025-07-28 13:11:47 -04:00
  • f7eb986313 Encapsulate access to sectionList and currentSection Rangi42 2025-07-28 11:22:28 -04:00
  • 75aed1afd5 Factor out an UpperMap for case-insensitive matching Rangi42 2025-07-27 23:14:52 -04:00
  • d16751f56a Avoid hard-coding a redundant "FATAL:" in RGBLINK Rangi42 2025-07-27 20:07:53 -04:00
  • 8b1a5244f7 Avoid hard-coding a redundant "FATAL:" in RGBFIX Rangi42 2025-07-27 19:35:08 -04:00
  • b2747dfbd8 Factor out common usage-help code Rangi42 2025-07-27 19:20:04 -04:00
  • 16e16cdf51 Split up the linkerscript lexer and layout actions Rangi42 2025-07-27 13:03:28 -04:00
  • a353637a90 Split RGBLINK linkerscript parser functions into their own file Rangi42 2025-07-27 10:53:12 -04:00
  • f3cbfcecf4 Split RGBASM parser action functions into their own file Rangi42 2025-07-26 15:35:48 -04:00
  • 3bc8b1ff7c Handle unknown MBCs, since raw numeric values are accepted Rangi42 2025-07-26 14:15:05 -04:00
  • aa46c79db6 Use unordered_map lookups instead of manual switches for MbcType data Rangi42 2025-07-26 13:30:56 -04:00
  • 92acb6e547 Implement a single nbErrors counter inside generic diagnostic code Rangi42 2025-07-26 12:48:25 -04:00
  • ac632d9223 RGBFIX returns 1 if there was a -Werror before processing any files Rangi42 2025-07-26 12:29:57 -04:00
  • 0df5b7b86d Implement warning diagnostic flags for RGBFIX (#1766) Rangi 2025-07-26 12:11:52 -04:00
  • 87c10988ed Add test case for block comments after line continuations Rangi42 2025-07-25 07:47:19 -04:00
  • d6a28a6259 Prefer pre-increment/decrement operators in for loops Rangi42 2025-07-24 18:08:17 -04:00
  • c6d0e8de63 Improve some error messages Rangi42 2025-07-24 11:19:04 -04:00
  • ded4ef4072 Avoid non-ASCII characters when not necessary Rangi42 2025-07-23 21:18:21 -04:00