Björn Esser
e0ac9d5d8e
util/zlib/deflater: Fix several compiler warnings.
2019-06-19 19:01:30 +02:00
Björn Esser
9faca05e6a
test/ref/otccex: Fix ramdomly occurring segfault.
...
The variables named tab and p are used in the context of pointers
and thus must be declared as such. Determining the purpose they
serve, using char over int seems more feasible here as well.
2019-06-09 20:26:12 +02:00
Björn Esser
83e0c70de5
Replace GIT_SHA with a more versatile BUILD_ID definition.
...
When compiling cc65, it will by default place the git hash (if available) of
the checked out commit in the version string. This isn't useful when building
a package for a Linux distribution, since there either won't be an upstream
git hash if there is one at all.
Thus we replace GIT_SHA with a more versatile BUILD_ID, which can be defined
to any arbitrary string. When building, its contents will be appended to the
version string instead of the git hash.
If BUILD_ID is not defined by the user the behaviour will be exactly the same
as before. That means BUILD_ID gets automatically defined to Git <GIT_SHA>,
if it can be determined from a checkout.
2019-06-09 20:17:15 +02:00
Oliver Schmidt
e34ee32973
Reduced shadow for h2 to improve readability.
2019-06-04 11:46:15 +02:00
bbbradsmith
5269552346
sim65 common define for paravirt hooks base location
...
allows the loaded binary to take up as much space as possible
restored some documentation of the hooks but without reference to specific location
2019-05-31 10:40:04 +02:00
Oliver Schmidt
6efb71bea7
Rearranged paravirt function vector.
...
- exit right below 6502 vectors.
- keep exit addr stable as it may be called from asm.
2019-05-30 00:10:17 +02:00
Oliver Schmidt
c6bbea0bb0
Renamed program start label.
2019-05-30 00:06:31 +02:00
bbbradsmith
7e4c4ee53e
sim65/main.c spaces were requested
2019-05-29 22:56:51 +02:00
bbbradsmith
9fcd91ebe9
sim65 header comment fix
2019-05-29 22:56:51 +02:00
bbbradsmith
3612edf4fa
sim65.sgml typo: bold is bf not **
2019-05-29 22:56:51 +02:00
bbbradsmith
fb7d4acd5c
versionable header for sim65
...
load and run address now configured from header
fix error codes not to conflict with test
fix test/misc/endless.c which is supposed to fail if an endless loop does not occur
2019-05-29 22:56:51 +02:00
bbbradsmith
07ca772932
adjust literal width to match variable type
2019-05-29 22:56:51 +02:00
bbbradsmith
2f3cae0d2e
movable sp for sim65
2019-05-29 22:56:51 +02:00
Brad Smith
38d2eb7a0e
cc65.sgml incorrectly closed tt
2019-05-29 22:41:24 +02:00
Brad Smith
26d436b90d
separating standard file I/O from low-level paravirtualization
2019-05-27 21:09:19 +02:00
Brad Smith
53bfd2e8cd
added name
2019-05-27 21:09:19 +02:00
bbbradsmith
4acf011fa4
noting that standard file functions work as well
...
correcting target name
2019-05-27 21:09:19 +02:00
Brad Smith
42beb29f72
sim65.sgml syntax error unclosed tt
2019-05-27 21:09:19 +02:00
bbbradsmith
17505e2173
sim65.sgml noting sim65c02 target as well
2019-05-27 21:09:19 +02:00
bbbradsmith
69c7acb3bc
some documentation for sim65
2019-05-27 21:09:19 +02:00
bbbradsmith
4642421da4
are more specific version of the comparison removal #895
2019-05-27 10:03:25 +02:00
bbbradsmith
7a863e5cda
bug895 test: more specific description comment
2019-05-27 10:03:25 +02:00
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