Commit Graph
3834 Commits
Author SHA1 Message Date
Rangi 2bbaef0541 Call parseNumber or parseWholeNumber directly for RGBGFX's CLI args
This matches the design of the other three programs, and avoids
silent overflow of `uint16_t` or `uint8_t` bounds.
2026-11-29 13:02:53 +01:00
Rangi 84a7a69506 Check for cycles in object files' node graphs to avoid infinite loops in error messages (#2256) 2026-11-26 17:01:16 -05:00
Rangi d5812eb438 Allow trailing comma in zero-byte ds (#2258) 2026-11-26 17:01:02 -05:00
qewer 40343f7c08 Clarify that LD HL, SP+e8 does not modify SP in gbz80 man page (#2254) 2026-11-25 15:03:02 -05:00
Rangi 95792a02c2 Add a more rgbds-specific PR template than gbdev's default 2026-11-25 17:45:09 +01:00
Rangi c459913f87 Guard against invalid alignment offsets in corrupt object files 2026-11-24 20:54:46 -05:00
Rangi 18a6f8b12e Unify RGBASM and RGBLINK fstack node backtrace printing methods into one generic function (#2253)
Remove now-trivial `printBacktrace` methods; just call `trace_PrintFstackNodeBacktrace` directly.
2026-11-24 12:52:38 -05:00
Rangi edfb9c15d5 Replace platform-specific ctz/clz definitions with C++20 <bit> functions 2026-11-24 17:57:23 +01:00
Rangi 4af382101b Use CPack for uploading testing binaries for macOS static and MinGW (#2139) 2026-11-23 17:28:21 -05:00
Rangi a6a70bb7e6 Format code with clang-format 21 (#2247)
Use `ubuntu-latest` not `ubuntu-slim` for check-format.yml;
`ubuntu-slim` is still Ubuntu 24.04 with clang-format 18.
2026-11-20 23:58:53 -05:00
Rangi b47eb3128d Use CMake's add_compile_definitions instead of add_definitions (#2249)
The latter "has been superseded", and the former handles the
platform-specific `-D` or `/D` syntax.
2026-11-20 23:58:12 -05:00
Rangi d510d937e5 Replace add_definitions(/D_CRT_SECURE_NO_WARNINGS) with add_compile_definitions(_CRT_SECURE_NO_WARNINGS) 2026-11-20 22:57:34 -05:00
Rangi df84b5a4df CMake 4.5 C++ module scanning breaks with libstdc++, so set(CMAKE_CXX_SCAN_FOR_MODULES OFF) 2026-11-20 22:57:34 -05:00
Rangi 4c29408a80 Fix incorrect bank for first unoptimized tile with no tiles in bank 0 (#2244) 2026-11-18 16:24:07 -05:00
Rangi c6b6a42458 Update zlib to 1.4 2026-11-18 15:00:04 -05:00
Rangi c062624983 Disable non-target-directive diagnostic (introduced in CMake 4.5) (#2243) 2026-11-14 22:00:14 -05:00
Rangi 861baee8a5 Add test case 2026-11-15 01:58:18 +01:00
Rangi 965c298289 Escape Make special characters other than dollar signs 2026-11-15 01:58:18 +01:00
Rangi f18bdc37db Escape Make characters in -M dependency filenames, not just -MQ target filenames 2026-11-15 01:58:18 +01:00
Rangi bec11bcaa7 Validate section patch sizes in case object files are invalid (#2242) 2026-11-15 01:50:34 +01:00
Rangi a2086efa50 Ignore "inconsistent" errors from LCOV coverage checking (#2239)
By default, LCOV 2.x complains about src/gfx/png.cpp line 118
("function '<mangled name>' is not hit but line 118 is"), which
is an `auto colorTypeName` lambda only executed for verbose output.
2026-11-12 13:33:14 -05:00
Rangi 926d6d81ce Fix -B/--background with -c/--color dmg (#2237)
The background color should not count towards the used DMG colors
2026-11-06 18:13:08 -05:00
Eldred Habert 6466c167d6 Point out offsets when merging fragments bails (#2232) 2026-11-06 17:46:16 -05:00
Rangi 6054102f9e Raise the effective limit of rgbgfx --nb-tiles (#2235) 2026-10-30 23:42:00 +01:00
Rangi 27a0a6bc2a Use named constants for meaningful numbers in RGBGFX (#2233) 2026-10-29 00:19:33 +01:00
Rangi 65d730336f Factor out shared alignment sanity checks for linker scripts 2026-10-22 15:56:47 -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 cc88a7a437 Correct documentation about RGBGFX grayscale luminance ordering 2026-10-22 13:44:45 -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
ISSOtm 96fefcc562 Fix .Sq spanning across two names 2026-10-20 22:16:15 +02: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
ISSOtm 6883dd903e Omit a type name where possible
This also allows omitting a header
(though it gets included implicitly by `<queue>` instead,
but that's fine).

This also makes our code slightly more amenable to change,
of course.
2026-10-17 14:15:54 -04:00
Rangi 170b341315 Refactor unassignedSections into a flat list sorted by constraints (#2218)
Also removes the now-redundant `nbSectionsToAssign` counter
2026-10-17 14:12:58 -04:00
Rangi dfe76a12c1 Update libpng to 1.6.59 (#2217) 2026-10-16 16:32:33 -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 451cf69f7d Fix a typo 2026-10-15 10:21:42 -04:00
Rangi c5fe5f0762 Use else if in checkNBit for symmetry with checkPatchSize 2026-10-15 10:21:27 -04:00
Rangi 292f39deb3 Ensure that STRCMP is either -1, 0, or 1 2026-10-15 10:20:24 -04:00
Rangi eac993c903 Rephrase some rgbasm(5) contents 2026-10-15 10:19:57 -04:00
Rangi 5d1742ebf2 Do not list CLI diagnostic flags as being enabled by -Weverything 2026-10-15 10:19:19 -04: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