bbbradsmith
df90a005cd
bug895 testing against more permutations of comparison
2019-05-27 10:03:25 +02:00
bbbradsmith
1461ad6fcc
unit test to catch regression of bug #895
2019-05-27 10:03:25 +02:00
bbbradsmith
3a3107b244
Disabling too-aggressive optimization in OptCmp8
...
Generates incorrect code for some 16-bit cases. See: #895
2019-05-27 10:03:25 +02:00
Richard Halkyard
448aa35f50
Fix realloc() bug in gr65
...
The pointer to the input buffer was not being updated after a call to
realloc(), causing the program to crash if realloc() moved the buffer.
2019-05-22 11:33:43 +02:00
Greg King
644d623d31
Reset the name of the "current bss segment" before writing bss variables into the output Assembly file.
...
Then, cc65 can notice a single "#pragma bss-name()" at the beginning of the variables list.
2019-05-18 12:16:52 -04:00
Brad Smith
d56e3adf2f
CC65 -> cc65
2019-05-15 18:19:45 +02:00
Brad Smith
0d000bb629
Document --debug-opt-output and --debug-opt
2019-05-15 18:19:45 +02:00
Lauri Kasanen
f16ce22281
doc: Rename aux member to data
2019-05-15 11:17:45 +02:00
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 6ead4abf24
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