Commit Graph

  • e373aa2d3f Merge branch 'cc65:master' into master rumbledethumps 2024-09-29 18:36:34 -07:00
  • 41951a1345 updated customizing documentation Sven Oliver Moll 2024-09-26 19:33:26 +02:00
  • 9c69aac097 Fix some issues with signedness in preprocessor expressions. Do also disallow comma expressions since the aren't compliant and collide with macro invocations. Kugel Fuhr 2024-09-17 11:45:46 +02:00
  • 16258d812b Merge pull request #2521 from kugelfuhr/kugelfuhr/fix-2520 Bob Andrews 2024-09-15 19:24:22 +02:00
  • 7dc09fdb05 add test related to bug#2515 / pr#2518 mrdudz 2024-09-15 19:22:16 +02:00
  • 175ec65af1 Fix #2520. Kugel Fuhr 2024-09-14 21:12:19 +02:00
  • fe6afa621b Merge pull request #2516 from kugelfuhr/kugelfuhr/fix-2514 Bob Andrews 2024-09-14 01:41:16 +02:00
  • e7c735ed8c Merge pull request #2513 from kugelfuhr/kugelfuhr/fix-2505 Bob Andrews 2024-09-14 01:38:46 +02:00
  • 231ab4169b Added a test. Kugel Fuhr 2024-09-07 17:20:27 +02:00
  • f43cfd1ad0 Fix the check for CPU flags being used after an instruction that gets removed. Previously only the next instruction was checked for usage of the CPU flags but this fails for certain code. Kugel Fuhr 2024-09-07 17:19:13 +02:00
  • 6e18e0880a Added/improved the optimizations: * Added a new pass that optimizes PHA/PLA sequences * Added a new pass that optimizes AND/EOR/ORA when an operand is known * Added a run of an existing pass at later stages to remove code that otherwise goes unchanged. * Handle binary operations in OptUnusedLoads in addition to real loads. Kugel Fuhr 2024-09-05 19:59:02 +02:00
  • 001fa05d48 Move the test to the test/standard directory. Kugel Fuhr 2024-09-13 19:18:31 +02:00
  • 3f83cf81f3 Revert the change to .gitignore so git status doesn't report a clean status as before. Kugel Fuhr 2024-09-13 19:02:13 +02:00
  • 7260c10062 Merge pull request #2518 from kugelfuhr/kugelfuhr/fix-2515 Bob Andrews 2024-09-13 17:53:20 +02:00
  • 34d8c3ef0a Merge pull request #2517 from kugelfuhr/kugelfuhr/time-improvements Bob Andrews 2024-09-13 17:47:14 +02:00
  • b5135b3ae0 Merge pull request #2502 from kugelfuhr/kugelfuhr/fix-2461 Bob Andrews 2024-09-13 15:53:49 +02:00
  • efa2020d93 Improved/fixed the time() function: - When the underlying clock_gettime function returned an error, the value returned via *timep was wrong. - Reduced code size by 7 bytes. - Don't suck in ldeaxi. Kugel Fuhr 2024-09-12 09:14:57 +02:00
  • 36a810cdb2 Make lastline.sh ignore empty files. Fixes #2514. Kugel Fuhr 2024-09-12 09:10:37 +02:00
  • 70ca6d4200 Fixed a standard noncompliance: In C99 and above there must be whitespace between a name of an object like macro and its replacement list. Kugel Fuhr 2024-09-11 19:21:19 +02:00
  • 2f6f5f0da1 Fix problem with #line when there is no whitespace between line number and filename. y Kugel Fuhr 2024-09-11 19:20:01 +02:00
  • 6113dc5995 Removed casts from stdint.h. Added a test. Fixes #2505. Kugel Fuhr 2024-09-10 08:12:31 +02:00
  • aff8248341 add comment on function prototypes Bob Andrews 2024-09-08 17:08:40 +02:00
  • 31a0d5cc40 Merge pull request #2503 from colinleroy/master Bob Andrews 2024-09-08 16:17:14 +02:00
  • 0be5f8f9e1 Merge pull request #2508 from polluks/waitvsync Bob Andrews 2024-09-08 16:14:51 +02:00
  • 3a7f0e2d18 Merge pull request #2509 from polluks/extern Bob Andrews 2024-09-08 16:13:55 +02:00
  • e6ff8d9301 Merge pull request #2510 from polluks/better_waitvsync Bob Andrews 2024-09-08 16:09:23 +02:00
  • 38038fd0d3 Merge pull request #2512 from kugelfuhr/kugelfuhr/fix-2134 Bob Andrews 2024-09-08 16:05:58 +02:00
  • 1771cb6fbd Merge pull request #2511 from coronax/fix-gettime-in-time.s Bob Andrews 2024-09-08 16:04:27 +02:00
  • d825a40add The test needs a main() function. Kugel Fuhr 2024-09-08 09:36:40 +02:00
  • 3c5269dede Warn for braces around a pointer initializer. Kugel Fuhr 2024-09-08 09:11:47 +02:00
  • 838c8b48b7 Set the clock id to CLOCK_REALTIME when calling clock_gettime. coronax 2024-09-07 22:16:22 -05:00
  • 55d3a6ea39 Optimize stpcpy's size and speed Colin Leroy-Mira 2024-09-04 22:52:52 +02:00
  • 461554e616 Update waitvsync.s Stefan 2024-09-07 19:17:00 +02:00
  • f5e434c6c8 Update waitvsync.s Stefan 2024-09-07 19:14:59 +02:00
  • be5a9f92ec oops Stefan 2024-09-07 18:51:20 +02:00
  • b355620939 Optimise waitvsync.s Stefan 2024-09-07 18:49:53 +02:00
  • 44aa5dca91 Update atari.h Stefan 2024-09-07 18:12:37 +02:00
  • c9fa9f0002 Update atari5200.h Stefan 2024-09-07 18:08:18 +02:00
  • ab4cdafacb Update atari7800.h Stefan 2024-09-07 18:07:35 +02:00
  • f430341d5d Update atmos.h Stefan 2024-09-07 17:23:17 +02:00
  • 033fd9e0dc Update funcref.sgml Stefan 2024-09-07 17:19:21 +02:00
  • 38f54875d0 Add files via upload Stefan 2024-09-07 17:06:45 +02:00
  • 4e2a3bde92 Merge pull request #2499 from kugelfuhr/kugelfuhr/disable-recursive-calls-to-main Bob Andrews 2024-09-07 14:39:28 +02:00
  • 7bd0a1d7f0 Merge pull request #2500 from kugelfuhr/kugelfuhr/better-help-for-W Bob Andrews 2024-09-07 14:37:30 +02:00
  • d996e20c5f Fix issues #2461. This was always wrong even in cases where it seemed to work. If it did, it was by coincidence. Kugel Fuhr 2024-09-03 20:21:48 +02:00
  • 79606c4d20 Overlooked a few target tests that take the address of main(). Kugel Fuhr 2024-09-02 16:55:58 +02:00
  • cd4357057f The change from #2495 didn't take into account that recursive calls to main() are legal in C. With the changes from #2495, such calls will usually crash the machine. But recursive calls to main() are rare and on the 6502 every byte saved is precious. So this change limits the effect of #2495 to cc65 mode and at the same time disallows recursive calls to main() in this mode. If recursive calls to main() are actually required, the code must be compiled in c89 or c99 mode. Kugel Fuhr 2024-09-02 10:39:42 +02:00
  • e2014611ef Improve the usage output for the '-W' option. Kugel Fuhr 2024-09-02 07:02:41 +02:00
  • 5e5dd1d6c4 Merge pull request #2498 from kugelfuhr/kugelfuhr/fix-include-in-macros Bob Andrews 2024-09-01 23:26:33 +02:00
  • 2680bc8dec Merge pull request #2495 from kugelfuhr/kugelfuhr/dont-save-stuff-in-main Bob Andrews 2024-09-01 22:54:45 +02:00
  • cc0db26e20 Added some tests. Kugel Fuhr 2024-09-01 20:22:29 +02:00
  • b2aceaea24 Fix behavior of .INCLUDE within a macro or .REPEAT. In the original code .INCLUDE was executed after expansion of the macro or .REPEAT - which was wrong and caused all sorts of unexpected behavior. Related issues/PRs are #231, #1473, #2159 and maybe others. Kugel Fuhr 2024-09-01 19:58:07 +02:00
  • 7a578be724 Merge pull request #2491 from kugelfuhr/kugelfuhr/fix-2431 Bob Andrews 2024-09-01 19:35:32 +02:00
  • a712fbb8f9 Merge pull request #2493 from kugelfuhr/kugelfuhr/fix-1663 Bob Andrews 2024-09-01 18:07:14 +02:00
  • 601deab3a2 Merge pull request #2492 from kugelfuhr/kugelfuhr/alternative-pragma-names Bob Andrews 2024-09-01 17:57:38 +02:00
  • 4b38974918 Merge pull request #2496 from kugelfuhr/kugelfuhr/fix-2458 Bob Andrews 2024-09-01 17:54:36 +02:00
  • 8c1047529f Merge pull request #2497 from kugelfuhr/kugelfuhr/fix-2044 Bob Andrews 2024-09-01 17:48:45 +02:00
  • b4aef6eac4 Fix macro preprocessing for #include. Arguments enclosed in "" or <> must not be preprocessed. See ISO/IEC 9899 1990 (E) section 6.8.2. Kugel Fuhr 2024-09-01 13:16:35 +02:00
  • b5cc68d6e2 Do not save any register variables when entering main(). Do not restore the C stack when leaving main(). Both are unnecessary and just bloat the executable. Kugel Fuhr 2024-09-01 12:41:25 +02:00
  • 4b68d19993 Fix issue #1663. Kugel Fuhr 2024-09-01 10:42:18 +02:00
  • 35c3fe5d0a Fix issue #2044. While doing so, cleanup copy&pasted code. Kugel Fuhr 2024-09-01 10:29:59 +02:00
  • ef17250c64 Fixed a compiler warning. Kugel Fuhr 2024-09-01 10:26:45 +02:00
  • e40058257e Added a test for the available #pragmas. Kugel Fuhr 2024-09-01 10:23:29 +02:00
  • 4008ec5814 Document the new #pragma names. Kugel Fuhr 2024-09-01 10:23:10 +02:00
  • ba263d13a7 Allow alternative #pragma names using underscores. Kugel Fuhr 2024-09-01 10:22:57 +02:00
  • 58b1c21996 Removed #pragma names that have been obsolete for over a decade. Kugel Fuhr 2024-09-01 10:22:40 +02:00
  • 622793e343 Apple II: Move _exit out of STARTUP segment Colin Leroy-Mira 2024-08-24 17:03:27 +02:00
  • 3f618d7de9 Add Plus/4 wrapper for KERNAL's GETIN. Sven Michael Klose 2024-08-18 21:57:06 +02:00
  • b688cfa0c0 Merge pull request #2480 from polluks/patch-9 Bob Andrews 2024-08-11 01:16:38 +02:00
  • b86ac99982 Merge pull request #2479 from polluks/patch-8 Bob Andrews 2024-08-11 01:15:43 +02:00
  • 86611f1c9c Some clarification Stefan 2024-08-10 15:29:50 +02:00
  • bf2b522478 Added company name and warning Stefan 2024-08-10 15:12:34 +02:00
  • 0126b34d20 Fixed README.md Stefan 2024-08-10 14:53:29 +02:00
  • feb5026823 Added option to disable the force-to-uppercase behavior of the apple2 target. (#2474) Oliver Schmidt 2024-08-07 18:27:09 +02:00
  • 925a589b90 Merge pull request #2467 from SvenMichaelKlose/updated_readme Bob Andrews 2024-07-28 16:08:28 +02:00
  • 8b3625847d Merge pull request #2466 from SvenMichaelKlose/reformatted_doc_contributing Bob Andrews 2024-07-28 15:56:58 +02:00
  • 91f908f55a Merge pull request #2468 from karrika/fix-joystick Bob Andrews 2024-07-28 15:49:42 +02:00
  • 8a1e060b13 Fix function comment example. Sven Michael Klose 2024-07-22 23:51:16 +02:00
  • 2ea216a521 Merge branch 'fix-joystick' of ssh://github/karrika/cc65 into fix-joystick karri 2024-07-20 13:18:16 +03:00
  • 19899022af Add support for different joysticks karri 2024-07-20 13:14:22 +03:00
  • d5fecbf10b Add project origin and people and table of supported targets. Sven Michael Klose 2024-07-18 11:24:36 +02:00
  • d3e0f7b392 Make document human-readable and split out name clashes section. Sven Michael Klose 2024-07-18 10:00:16 +02:00
  • 03d824e13b Merge pull request #2464 from SvenMichaelKlose/stpcpy Bob Andrews 2024-07-16 01:47:11 +02:00
  • aed94d2dae Fix code style. Sven Michael Klose 2024-07-16 01:33:48 +02:00
  • 6551d455b1 Merge pull request #2463 from SvenMichaelKlose/test_strtok Bob Andrews 2024-07-15 22:56:10 +02:00
  • 677cd8ff4e Use standard library's exit() code constants. Sven Michael Klose 2024-07-15 17:54:43 +02:00
  • 9558ebad62 Add test for stpcpy(). Sven Michael Klose 2024-07-15 17:35:28 +02:00
  • 816bcabe5a Move strtok() test to correct section. Sven Michael Klose 2024-07-14 23:12:59 +02:00
  • c385e52c12 Merge branch 'master' into test_strtok Sven Michael Klose 2024-07-14 13:59:18 +02:00
  • 1d1dd425c1 Merge pull request #2448 from Commodore64128/master Bob Andrews 2024-07-12 12:40:43 +02:00
  • af3ac42373 Move stpcpy() to non-standard section. Sven Michael Klose 2024-07-07 19:48:44 +02:00
  • 581b79e0b9 Add stpcpy(). Sven Michael Klose 2024-07-07 14:04:49 +02:00
  • 2f25b18074 Merge pull request #2462 from SvenMichaelKlose/gcc14_make_test_fix Bob Andrews 2024-07-07 13:49:45 +02:00
  • cdb2d49e3a Test strtok(). Sven Michael Klose 2024-07-07 01:02:32 +02:00
  • 871bafa5b3 Keep gcc-14 from aborting with errors due to new defaults. Sven Michael Klose 2024-07-07 00:48:15 +02:00
  • 0541b65aa4 Merge pull request #2434 from colinleroy/strcasestr Bob Andrews 2024-06-22 15:00:17 +02:00
  • 3d5fd0489e replaced constant xlar54 2024-06-19 23:52:25 -05:00
  • 3b494ad6f2 alignment fixes xlar54 2024-06-19 23:50:54 -05:00
  • 6098ac2788 fix for getdefpalette xlar54 2024-06-16 16:06:38 -05:00
  • 6dbf5f528a argh dangling spaces xlar54 2024-06-16 14:51:53 -05:00