1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-20 02:17:07 +00:00
Commit Graph

8152 Commits

Author SHA1 Message Date
Lauri Kasanen c2f3421dee Document using inline asm with SoA, structs with array members 2019-05-15 11:17:45 +02:00
bbbradsmith 9299e550a5 fix NearAddr case in comment 2019-05-11 12:32:44 +02:00
bbbradsmith 7d14cff6bb o65.c: missed a link time resolution of EXPR_NEARADDR 2019-05-11 12:32:44 +02:00
bbbradsmith 10cefdb456 move EXPR_NEARADDR to end of enum list to avoid invalidation of existing object binaries? 2019-05-11 12:32:44 +02:00
bbbradsmith ac2ecb0b2c 65816 now generate EXPR_NEARADDR instead of EXPR_WORD0 for default assumed address mode, which will be validated by the linker's range check rather than blindly truncated. Assuming the assembler correctly validated this, the linker is allowed to truncate. 2019-05-11 12:32:44 +02:00
Oliver Schmidt a01c4231f2 Fixed _textcolor definition.
The _textcolor() macro doesn't just turn on the macro optimization. It defines the return value of textcolor() - and that is supposed to be a COLOR_... value.
2019-05-08 10:22:12 +02:00
Christian Groessler a24e3d9e72 ld65.sgml: document '--allow-multiple-definition' switch 2019-05-01 10:57:48 +02:00
Christian Groessler dd53c2ddc3 src/ld65/main.c: fix copy'n'paste error in comment 2019-05-01 10:57:48 +02:00
Christian Groessler 5a05acf936 ld65: implement '--allow-multiple-definition' command line parameter 2019-05-01 10:57:48 +02:00
Christian Groessler c248c14075 src/ld65/exports.c: Issue an error instead of a warning for duplicate global symbols. 2019-05-01 10:57:48 +02:00
Brad Smith 1a5fa6dc51 goto.c warning fix for implicit truncation 2019-05-01 10:53:41 +02:00
Christian Groessler 392e6e10fc again, some TABs slipped into the code... 2019-04-30 18:21:13 +02:00
Oliver Schmidt 7b234d4497 Adjusted doc to code.
The requirement in question was lifted with https://github.com/cc65/cc65/commit/6ead4abf244abfab4bd52eff55da5cefe4d4a98f back in 2011.
2019-04-30 17:55:26 +02:00
IrgendwerA8 37f80534c9 Fix for #830 supplied by UvB 2019-04-25 15:19:53 +02:00
Christian Groessler 14d8f3d81d cfg/atari-xex.cfg: fix typo in comment 2019-04-24 13:17:11 +02:00
Greg King 214c90f957 Made the code that logs indirect-goto referals be a little more efficient. 2019-04-23 19:12:02 -04:00
Lauri Kasanen 55ce618bf2 Document computed gotos 2019-04-21 12:46:03 -04:00
Lauri Kasanen f328481a48 Replace hard returns with an "else", add an error for non-IDENT tokens, and test for static 2019-04-21 12:46:03 -04:00
Lauri Kasanen 60d8559372 Return after errors, move left bracket consumption down 2019-04-21 12:46:03 -04:00
Lauri Kasanen 654d972288 C90 param, void 2019-04-21 12:46:03 -04:00
Lauri Kasanen a9cbb5305c Fix missing spaces 2019-04-21 12:46:03 -04:00
Lauri Kasanen 304473d857 Adjustment for '816 2019-04-21 12:46:03 -04:00
Lauri Kasanen 3b3b16ee9c Add support for computed gotos
This is a GCC extension that allows C to use fast jump tables.
2019-04-21 12:46:03 -04:00
Lauri Kasanen c2220f3c30 Add a goto indirect jump from pointer 2019-04-21 12:46:03 -04:00
Lauri Kasanen 37f00e6644 Export the label symbol table 2019-04-21 12:46:03 -04:00
Lauri Kasanen 2af76c7cff Only for jumps, the lib uses named asm labels in branches 2019-04-21 12:46:03 -04:00
Lauri Kasanen c3d809b129 Fix jmp-callax.c bug 2019-04-21 12:46:03 -04:00
Lauri Kasanen f29220be1b Add test showing optimizer failure, OptUnusedLoads removes needed loads 2019-04-21 12:46:03 -04:00
Oliver Schmidt ac0b452834 Added '_' prefix to sin and cos.
Users complained that otherwise the names might clash with their functions.
2019-04-13 11:25:54 +02:00
Christian Groessler cb7882a202 atari5200.sgml: small fix for last change 2019-04-13 11:07:06 +02:00
Christian Groessler 03311e7268 atari5200: update docs for recent conio changes
also renames libsrc/atari5200/extra/conioscreen_20x12.s to
libsrc/atari5200/extra/conioscreen-20x12.s to be in line with
other optional link modules
2019-04-13 11:07:06 +02:00
Christian Groessler 78daf84f12 atari5200: name conio constructor 'initconio' 2019-04-12 12:49:38 +02:00
Christian Groessler 34942a2da5 atari5200: testcode/lib/atari5200/hello.c: adapt to changed COLOR_xxx defines 2019-04-12 12:49:38 +02:00
Christian Groessler 8590de5cf3 Revert "atari5200: fix COLOR defines' names"
This reverts commit 87e653f47b.
2019-04-12 12:49:38 +02:00
Christian Groessler e1e6bec9ff atari5200: changes from discussions in #870
- rename screen_setup to initconio
- use Greg King's version of bgcolor()
2019-04-12 12:49:38 +02:00
Christian Groessler d7eecb57f8 atari5200: get rid of conio_colors table
use system color variables instead; improve testcode/lib/atari5200/hello.c
test program
2019-04-12 12:49:38 +02:00
Christian Groessler dfb7c0f24d atari5200: fix COLOR defines' names
COLOR_RED -> COLOR_LIGHTRED and COLOR_GREEN -> COLOR_LIGHTGREEN
2019-04-12 12:49:38 +02:00
Christian Groessler be6bba66a9 atari5200: conio now uses just four colors altogether
See discussion in PR #870.
2019-04-12 12:49:38 +02:00
Christian Groessler 79b9a8d2df atari5200: add screensize function 2019-04-12 12:49:38 +02:00
Christian Groessler db01036e2e atari5200: add alternative conio screen (20x12 resolution) 2019-04-12 12:49:38 +02:00
Christian Groessler ec5e38617a atari5200: implement bgcolor() and textcolor()
Includes some other small fixes/cleanups.
2019-04-12 12:49:38 +02:00
Christian Groessler edd596b2a4 atari: split color.s into bordercolor.s and bgcolor.s 2019-04-12 12:49:38 +02:00
Oliver Schmidt 0576fe51e7 Minor clarification. 2019-04-04 17:13:09 +02:00
Oliver Schmidt 5daed49e97 Fixed typo. 2019-04-04 16:38:40 +02:00
Oliver Schmidt fc6a63a15e Avoid unintended file "shadowing".
https://github.com/cc65/cc65/commit/3d8c3a494801e106e33fa7dcc4fd3daedad1b98a caused an unintended "shadowing" of files in /libsrc/runtime by files in /libsrc/common. Therefore the files in question are renamed (again) in /libsrc/common to make the files in /libsrc/runtime "visible" again.
2019-04-04 09:16:59 +02:00
IrgendwerA8 dcbe03f23b Adjusted to the current multiline-comment style. 2019-04-02 16:34:22 +02:00
IrgendwerA8 1530020a1f Fix for multiplication optimization issue #367 2019-04-02 16:34:22 +02:00
Steven Hugg ae261e91f2 Code cleanup per code review 2019-03-31 22:33:22 -04:00
Steven Hugg 9faaa0689b cleaned up code per review 2019-03-31 22:33:22 -04:00
Steven Hugg a71f764c33 fixed optimization bug where array index is 16-bit, e.g. arr16[i & 0x7f7f] 2019-03-31 22:33:22 -04:00