1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 21:32:19 +00:00
Commit Graph

8144 Commits

Author SHA1 Message Date
jede
7f9e73a1ce Add textcolor and bgcolor.s 2019-07-21 14:11:51 -04:00
jede
14ac1a7ff6 Fix bug : gotoxy does not working because Y does not update the adress on the screen 2019-07-21 14:11:51 -04:00
Lauri Kasanen
5cbbb4597f Document binary literals 2019-07-20 17:21:42 +02:00
Lauri Kasanen
1bfdce55ed binlit: Add a few random leading zeros 2019-07-20 17:21:42 +02:00
Lauri Kasanen
925ea9d544 cc65: Add support for binary literals
Binary literals, 0b001, are a GCC extension in C and a C++14 feature.
2019-07-20 17:21:42 +02:00
jede
76fe064e03 Add XSCROH & XSCROB value 2019-07-20 17:10:00 +02:00
jede
99de3cb6ea Add page 0 variables from Telemon 2.4 2019-07-20 17:10:00 +02:00
Greg King
88c6dd2da8 Changed empty parameter lists into (void) lists on functions with asm() statements.
The fix avoids any possible problems with how cc65 will handle old-style (K & R) function declarations, in the future.
2019-07-16 13:16:02 -04:00
Björn Esser
2f3955dbc7 src/Makefile: Simplify BUILD_ID logic. 2019-07-15 12:42:48 +02:00
Oliver Schmidt
9be25dab9c Minor URL update. 2019-07-15 12:29:25 +02:00
Greg King
28584b31f1 Made the ld65 configure file's segment offset attribute accept zero as a value.
Expressions are allowed as values.  Therefore, zero might be set explicitly by some conditions.
2019-06-30 22:44:10 -04:00
Björn Esser
93b6efcb2f zlib: Use correct (un)signedness of char in prototypes and functions.
Also ensure we are using the same constness qualifiers.
2019-06-19 19:01:30 +02:00
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