Commit Graph
1045 Commits
Author SHA1 Message Date
Rangi e73bad7413 Add RGBLINK truncation warnings for add sp, e8 and ld hl, sp + e8 (#2179) 2026-09-27 20:08:26 -04:00
Rangi 30974be312 Add -Wsingle-union warning for UNION without NEXTU (#2170) 2026-09-27 20:02:42 -04:00
Rangi 4f4800f385 Add __CYCLES__ variable to count cycles used by instructions (#2171) 2026-09-27 19:59:32 -04:00
Rangi ab600acdff Add %A/%a uppercase/lowercase string format specifiers (#2165) 2026-09-26 19:30:05 -04:00
Rangi 477daf099f Make STRCMP and STRICMP tests more precise 2026-09-26 18:31:53 -04:00
Rangi ab9650bcfa Allow RSSET to take a negative value (#2167) 2026-09-26 18:24:39 -04:00
Rangi 95206f24a0 Add STRICMP case-insensitive string compare function (#2164) 2026-09-26 18:19:10 -04:00
Rangi ab0d81591d Add POPCOUNT function (#2166) 2026-09-26 18:17:31 -04:00
RangiandEldred Habert 8328b0364b Make the comma after assert warn/fail/fatal optional (#2160)
Co-authored-by: Eldred Habert <[email protected]>
2026-09-26 13:55:35 -04:00
Rangi fabc276a92 Implement compound assignment operators **= and >>>= (#2158) 2026-09-26 13:10:39 -04:00
Rangi 2de2747389 Allow STARTOF(SECTTYPE) and SIZEOF(SECTTYPE) to be constant when possible (#2131) 2026-09-26 13:08:28 -04:00
Rangi 8bb0fbf8ae Add STRSTARTS and STRENDS functions (#2159) 2026-09-26 13:04:14 -04:00
Rangi 1e9e2ad5fa Fix reversing an image with an empty -c/--colors spec file (#2228) 2026-10-22 15:30:43 -04:00
Rangi b99069e25d Fix reversing an image with an empty -p/--palette file (#2227) 2026-10-22 14:41:11 -04:00
Rangi 44b55dce69 Fix parsing of SDCC .rel objects' "b_" magic bank symbols (#2226)
This was a regression from 48b2e94aa3
swapping where `+ 1` applies when converting `strcmp` to `ends_with`.
2026-10-22 13:42:09 -04:00
Rangi ada6be082e Add error check for empty OPT string 2026-10-21 17:25:21 -04:00
Rangi 129b4dabee Fix an off-by-one overflow bug in SDCC object parsing (#2222) 2026-10-21 15:59:00 -04:00
Rangi 85f96d671f Allow empty one-past-the-end sections (#2221) 2026-10-21 15:58:30 -04:00
Rangi 72c9171216 Output UINT16_MAX for unused grayscale palette slots (#2219) 2026-10-21 10:01:41 -04:00
Rangi 4864f37662 Do not allow -c embedded for non-indexed PNGs even with PLTE chunks 2026-10-20 11:17:26 -04:00
ISSOtm d766efe95d Use a vector for emitting section patches
Turns out this makes errors be emitted in source order,
which is far more intuitive and pleasant-looking!
2026-10-17 14:39:51 -04:00
Rangi d1fb662501 Fix rgbgfx -c/--colors to read GBC palettes with less than 4 colors (#2216) 2026-10-16 01:47:23 +02:00
Rangi 7d00c170a5 Use more static_assert in place of assert 2026-10-15 10:18:12 -04:00
Rangi 12698e0596 Consistently use ON, not TRUE or True, in CMakeLists.txt 2026-10-14 19:31:02 -04:00
Rangi 586bd2eec8 Non-constant expressions do not fail a static_assert (#2215) 2026-10-14 19:24:47 -04:00
Eldred HabertandRangi ddd4ba9952 Always link asm tests (#2151)
We don't want to accidentally have a test pass because an
`assert` gets deferred to a linker invocation that never happens!

---------

Co-authored-by: Rangi <[email protected]>
2026-10-14 18:01:12 -04:00
Rangi 85fdb3b111 Use static_assert in RGBASM tests whenever possible (#2213) 2026-10-14 14:39:59 -04:00
Rangi af192a95b1 Do not output unreferenced unexported symbols in object files 2026-10-11 03:44:39 +02:00
Rangi 9d6dab13d8 Sort linked sections by alignment before size (#2201)
Note that Libbet has no canonical hash and is sensitive to floating section placement
2026-10-11 03:40:15 +02:00
Rangi d73a05aa78 Fix backtraces for REPT nodes with quiet non-REPT ancestors (#2196) 2026-10-03 22:16:58 +02:00
Rangi 1d4c741975 Test division and modulo at link time as well as asm time 2026-09-27 14:01:36 -04:00
Rangi 093024c534 Verify that successful RGBLINK runs have no stderr output 2026-09-27 13:50:49 -04:00
Rangi 32a9d3a01b Consistently compare outputs for RGBGFX tests even when .err exists (#2177) 2026-09-27 13:21:06 -04:00
Rangi ac7d7edf4d Consistently compare .out.bin test results for RGBLINK tests (#2176)
Tests with variant flags or linker scripts were not checking ROM output
2026-09-27 13:02:37 -04:00
Rangi 721df27ae1 Use Bash array for run-tests.sh args to make (#2175) 2026-09-27 12:08:32 -04:00
Rangi e06140be46 Actually use -C for reverse_curve test now that #2110 supports it 2026-09-27 11:51:58 -04:00
Rangi 877ce79a39 Remove non-functioning and unused --installed-rgbds flag from run-tests.sh (#2174) 2026-09-27 11:51:24 -04:00
Rangi 74ee2b217f Fix RGBFIX test harness's special tests (#2173) 2026-09-27 11:37:31 -04:00
Rangi 6df932c010 Fix rgbgfx_test.cpp 8-to-5 bit color conversion (#2172) 2026-09-27 09:16:07 -04:00
Rangi 321ad497fa Fix RGBFIX --output with a pre-existing or same-as-input file (#2145) 2026-09-27 01:31:53 +02:00
Rangi fdd819d0ea Fix typo ("implict" -> "implicit") 2026-09-26 19:20:18 +02:00
Rangi fd7715dcb0 Fix inconsistent handling of transparent colors in the middle of palettes 2026-09-26 19:20:18 +02:00
Rangi e6e5133bcf RGBGFX honors -c/--colors in -r/--reverse mode (#2144)
f4463b17 (#1254) was an incomplete fix for #1166
2026-09-26 19:13:34 +02:00
Rangi 03c71ced93 Fix FLOATING in linker scripts conflicting with section constraints (#2148) 2026-09-26 07:54:48 -04:00
ISSOtm 6a08e809b5 Mark an asm test as failed if linking fails 2026-09-25 13:48:10 -04:00
Rangi 646cb05faf Fix BANK(@) discrepancy within LOAD blocks (#2149)
RGBASM and RGBLINK disagreed on which section to consider `@` to be in;
we have decided that the latter is correct.

The `assume` change is known to be suspicious; for more discussion, see
https://github.com/gbdev/rgbds/pull/2149#discussion_r4106902830
2026-09-25 19:18:52 +02:00
Rangi42 dc701294f8 Add an additional check to the jr-@ test (ported from rsgbds) 2026-09-25 12:59:00 -04:00
Rangi 6e5d7a9823 Correct the ROM hash for gb-starter-kit
I hadn't set the right `SOURCE_DATE_EPOCH`...
2026-09-22 12:33:10 -04:00
Rangi 4d5b38ebfe Update external test commits 2026-09-22 12:29:08 -04:00
Rangi eca8c1f3e7 Do not deprecate implicit transparent color 0 2026-09-22 12:03:33 -04:00