Commit Graph

  • 88048cdcd7 Clarify the character encoding example in rgbasm.5 Rangi 2021-03-05 10:08:43 -05:00
  • c878ff8775 Report slack totals at the end of the .map file (#781) Rangi 2021-03-05 05:53:27 -08:00
  • a4049a3f1b rgbasm(5): Clarify charmap behavior (#558) dannye 2021-02-27 11:29:53 -06:00
  • 8a75cc5051 Test an indented anonymous label Rangi 2021-03-03 12:26:35 -05:00
  • b674c5fcaa Comment refers to "built-in" symbols Rangi 2021-03-03 10:35:47 -05:00
  • a6d3df7ac9 Put all local symbols in object/sym/map files (#774) daid 2021-03-03 10:59:51 +01:00
  • 365484ef18 Factor out handleCRLF() Rangi 2021-03-02 23:26:43 -05:00
  • 5e2bd35239 Factor out a 'plain_directive' parser rule similar to the reverted 'last_line' Rangi 2021-03-02 20:46:17 -05:00
  • 6655e04ef0 Restore the "EOF-newline" lexer hack Rangi 2021-03-02 19:35:24 -05:00
  • 40c6b840f8 Add tests for certain directives at EOF without a newline ISSOtm 2021-02-21 03:40:29 +01:00
  • 5d6e0677d9 Fix error-related issues (#773) daid 2021-03-02 16:34:19 +01:00
  • 56071599e7 Allow trailing commas in bare lists Rangi 2021-02-28 21:19:15 -05:00
  • c637447d5d Make the "db/dw/dl directive without data in ROM" warning more specific Rangi 2021-02-28 21:17:39 -05:00
  • ac2cefdd87 Refactor some math functions into a shared file for rgbasm and rgblink Rangi 2021-02-28 16:50:47 -05:00
  • 0774f5eb9d Rename math.c/mymath.h to fixpoint.c/.h Rangi 2021-02-28 16:30:48 -05:00
  • 76d8862900 Refactor part of getSection into createSection Rangi 2021-02-28 16:12:03 -05:00
  • 1dafc1c762 Allow empty macro arguments, with a warning Rangi 2021-02-17 18:54:02 -05:00
  • 63d15ac8c9 append_yylval_tzString should always evaluate its argument Rangi 2021-02-23 23:25:58 -05:00
  • 1f579deaff Trim right whitespace from macro args before warning about length Rangi 2021-02-17 18:28:45 -05:00
  • fad48326f8 Support /* block comments */ in macro arguments Rangi 2021-02-17 16:30:03 -05:00
  • e7d6ddf593 Fix linking tiny overlay files (#755) Rangi 2021-02-24 20:04:51 -08:00
  • 953f79c0d9 Support 'MACRO mac' as well as 'mac: MACRO' for defining macros Rangi 2021-02-23 15:57:21 -05:00
  • 3c5e1caa7c Disallow "." as a local label Rangi 2021-02-23 19:31:58 -05:00
  • d4028fff10 Prevent ELIF or ELSE after an ELSE Rangi 2021-02-24 21:19:08 -05:00
  • dd892d61d8 Correct rgbasm(5) about whitespace before labels Rangi 2021-02-23 15:31:29 -05:00
  • a09f2d4115 Test an indented macro label Rangi 2021-02-23 14:48:27 -05:00
  • dafef5a953 Remove column 1 restriction for labels with colons (#635) Eldred Habert 2021-02-23 20:42:24 +01:00
  • 929e2a4490 rgbasm: Report conflicting file/line number for duplicate sections dannye 2021-02-21 23:43:44 -06:00
  • cc1129093d Add duplicate-section test dannye 2021-02-21 23:28:42 -06:00
  • 72911ada2d Prevent non-numeric symbol from overriding refs ISSOtm 2021-02-21 19:13:52 +01:00
  • 037bc7abb3 Add an rgblink test case for an $8000-byte ROM0 section with -t Rangi 2021-02-21 16:30:02 -05:00
  • 5fd636ac4b Implement floored / and divisor-sign % operators (#745) Rangi 2021-02-21 13:14:44 -08:00
  • a6d844a9a5 Add more test cases for IF, REPT, and MACRO (#748) Rangi 2021-02-19 16:34:21 -08:00
  • bee62076c6 Allow ENDC at EOF without a newline ISSOtm 2021-02-20 00:51:33 +01:00
  • cd072d5e6a Add assertion check for potential UAF trigger ISSOtm 2021-02-19 16:52:35 +01:00
  • 6ef3ee1391 Give void* ptr to %p formatter ISSOtm 2021-02-19 16:15:31 +01:00
  • c29b616f93 Fix forgotten initialization of lexerState->isReferenced ISSOtm 2021-02-18 16:33:06 +01:00
  • 39c179aa32 Fix missing newline in a dbgPrint Rangi 2021-02-17 13:14:02 -05:00
  • 5c1ae4ce22 Shorter quine test cases Rangi 2021-02-17 11:30:57 -05:00
  • efbfeca292 Avoid two peek(1) calls when lexing """multi-line strings""" Rangi 2021-02-17 10:36:36 -05:00
  • 7dd34f1572 Format INT32_MIN as '-2147483648', not '--2147483648' Rangi 2021-02-17 09:41:36 -05:00
  • 748e7dd4c7 Fix calculation of 2**30 Rangi 2021-02-17 09:25:02 -05:00
  • d049ffc0f0 Handle string literals within macro arguments (#685) Rangi 2021-02-16 19:44:25 -08:00
  • 8c0275480c Allow ds to take multiple values to repeat for a count (#725) Rangi 2021-02-16 19:01:23 -08:00
  • 76d6ef8695 Implement LOAD UNION and LOAD FRAGMENT Rangi 2021-02-14 16:55:19 -05:00
  • c67a696a87 Use macros to convert between radians and fixed-point 65536ths Rangi 2021-02-16 18:07:05 -05:00
  • ee20d9010e Make @ relative to the start of a ds even at link time Rangi 2021-02-14 20:53:44 -05:00
  • 2bc12447e2 Update rgbds(5) object file format documentation (#740) Rangi 2021-02-16 13:36:37 -08:00
  • cb61da8842 -Wmacro-shift warns about shifting macro arguments too far (#741) Rangi 2021-02-16 13:31:01 -08:00
  • 122ba6eba5 Update deprecated feature examples ISSOtm 2021-02-16 22:09:31 +01:00
  • dddff0f450 Cannot start a new section that's already on the stack Rangi 2021-02-12 15:54:15 -05:00
  • a919f922a1 Add FUNDING.yml to show the Sponsor button on the repository Antonio Vivace 2021-02-16 17:00:29 +01:00
  • 8f20620c16 Allow shifting macro arguments by a negative amount Rangi 2021-02-12 23:09:06 -05:00
  • 96bce05be2 Newlines in multi-line strings update the line number Rangi 2021-02-12 15:32:49 -05:00
  • fc2bf3d11d Prefer sizeof($$) to MAXSTRLEN + 1 Rangi 2021-02-12 15:27:21 -05:00
  • 8415ce3ed0 Correct the keywordDict size Rangi 2021-02-12 15:24:26 -05:00
  • ebb5aab6db Correct some comments Rangi 2021-02-12 15:21:23 -05:00
  • 464a3a4892 Separate extern getopt implementation from the unistd.h one Rangi 2021-02-10 13:10:43 -05:00
  • 88e1cc7302 Make EOF token name consistent across Bison versions ISSOtm 2021-02-11 13:04:43 +01:00
  • b3c0db218d Remove "EOF-newline" lexer hack ISSOtm 2021-02-11 12:48:37 +01:00
  • 76446e6d00 Change behavior of merging FRAGMENTs to constrain each fragment individually ISSOtm 2021-01-21 19:41:04 +01:00
  • 6623b1dc45 Fix CI on macOS ISSOtm 2021-01-23 01:50:17 +01:00
  • 70bbb098d3 Remove stale keywords ISSOtm 2021-01-23 00:05:15 +01:00
  • 1926065377 Enable Bison warnings ISSOtm 2021-01-23 00:02:05 +01:00
  • e3d355d976 Attempt to recover from syntax errors with bison Rangi 2021-01-21 09:36:10 -05:00
  • a679e02246 Get rid of asm.h and localasm.h ISSOtm 2021-01-22 13:34:16 +01:00
  • 592e9b3725 Reorganize and comment better main() ISSOtm 2021-01-22 11:09:27 +01:00
  • effc58241d Rework defining variables on command-line ISSOtm 2021-01-22 11:03:43 +01:00
  • 3697065afc Add asm/opt.c to CMakeLists ISSOtm 2021-01-22 11:01:33 +01:00
  • fa0fa4d5ac Significantly overhaul OPT code ISSOtm 2021-01-22 10:41:09 +01:00
  • 5acc48fa54 Error out when given several input files ISSOtm 2021-01-22 09:44:41 +01:00
  • 1487eebe79 Remove time counter ISSOtm 2021-01-22 08:49:18 +01:00
  • 993c034039 Avoid using EXPAND_AND_STR with external defines ISSOtm 2021-01-22 08:37:40 +01:00
  • 09f16bda4a Use putc instead of fputc ISSOtm 2021-01-22 08:32:28 +01:00
  • 41d544a4eb Rewrite RGBFIX ISSOtm 2020-12-26 01:53:16 +01:00
  • f28b4abafc Fix a potential buffer overflow in strrpl Rangi 2021-01-19 15:57:12 -05:00
  • ca1c934629 Have CMake use specified compiler in CI, not system default ISSOtm 2021-01-19 16:33:38 +01:00
  • d5a00cf634 Comment cites the string hash algorithm (djb2) Rangi 2021-01-15 21:12:45 -05:00
  • fb39c3a70e Consistently refer to "directives", not "pseudo-ops" Rangi 2021-01-15 20:31:22 -05:00
  • 15ec6efc28 Fix missing newline in charmap override warning ISSOtm 2021-01-17 20:13:51 +01:00
  • 93d83e17dc Don't override bison's internal 'yytnamerr' function Rangi 2021-01-14 21:15:14 -05:00
  • df16e64fc6 Handle MACRO and REPT/FOR bodies differently Rangi 2021-01-12 21:30:13 -05:00
  • a4ebb87858 Add Rangi to contributors Rangi 2021-01-11 00:32:08 -05:00
  • 5ef8e0a1f6 Use an IELR parser if available Rangi 2021-01-10 19:29:47 -05:00
  • eb4952c188 Use more verbose syntax error messages Rangi 2021-01-10 14:48:48 -05:00
  • 57b734a7df Reinstate RL into the _RS family ISSOtm 2021-01-11 01:37:36 +01:00
  • 5be1c0da62 Fix intra-section ALIGN not computing offset correctly ISSOtm 2021-01-09 23:29:08 +01:00
  • b598911e96 Enable LTO in release builds ISSOtm 2021-01-09 03:57:48 +01:00
  • cab9cb06a3 Store IF depth relative to each fstack context Rangi 2021-01-08 16:28:51 -05:00
  • 62bea23c49 Implement BREAK to exit REPT and FOR loops Rangi 2021-01-03 22:00:02 -05:00
  • 7ce5cf1595 Convert floating to fixed point by rounding, not truncation Rangi 2021-01-04 10:49:30 -05:00
  • 7e3fc1db03 Fix Actions CI for MSVC Rangi 2021-01-01 21:22:17 -05:00
  • 77279984a5 Implement STRRPL Rangi 2020-12-30 11:00:44 -05:00
  • 669a392fcd Revise the rgbasm(5) docs Rangi 2021-01-02 01:52:43 -05:00
  • 51ce0b038a Remove removed features from documentation ISSOtm 2021-01-02 02:47:13 +01:00
  • bd244e6865 Remove deprecated features ISSOtm 2021-01-02 02:42:44 +01:00
  • a70ecba06f Implement PRINT and PRINTLN (#672) Rangi 2021-01-01 20:37:32 -05:00
  • 9d2d5cfcfe Implement REDEF to allow redefining EQUS string equates Rangi 2021-01-01 14:28:59 -05:00
  • 18f3c8ff9a Un-document deprecated _PI ISSOtm 2021-01-02 01:43:49 +01:00
  • 895ec5564d Update mathematical functions (#675) Rangi 2021-01-01 19:39:20 -05:00