1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00
Commit Graph

9614 Commits

Author SHA1 Message Date
Stephan Mühlstrasser
44257b9b4a Fix switched meaning of '\n' and '\r'
When conio was implemented for the osic1p target, the cbm
target was used as a blueprint. But it was overlooked that the
cbm target encodes CR as 0x0A and LF as 0x0D, while the
osic1p target uses the ASCII encoding of CR and LF. Therefore
conio output of '\n' moved the active position to the start of the
line and '\r' moved the active position to the next line.

This change implements the correct semantics of '\n' and '\r'
in conio for the osic1p target.

Fixes #1747.
2022-05-18 18:57:52 +02:00
Greg King
93e94c8dea Fixed a multi-line comment.
The left border is thicker in cc65 than it is in VICE.
2022-05-18 05:09:48 -04:00
Bob Andrews
93ee91fb4b
Merge pull request #1644 from polluks2/missing-purple
Added more purple and removed the colour violet
2022-05-17 15:54:59 +02:00
Bob Andrews
e0cc3650e4
Merge branch 'master' into missing-purple 2022-05-17 15:34:51 +02:00
mrdudz
d30fc65dd5 add check for +x flag 2022-05-17 15:28:51 +02:00
mrdudz
91199c57e8 remove +x flag 2022-05-17 15:28:51 +02:00
Bob Andrews
25efedf3e6
Merge pull request #1745 from Compyx/codeopt-unused-var-fix
Fix set but unused variable
2022-05-17 14:47:19 +02:00
mrdudz
0f291aee86 rename the actual checkstyle target too :) 2022-05-17 14:39:35 +02:00
mrdudz
75441afb71 rename the "check" target to "checkstyle".
also created a new "check" target which runs all tests, as it is common with GNU programs
2022-05-17 14:30:41 +02:00
mrdudz
1a5852ab91 don't try to build the checkversion sample for targets that do not have printf 2022-05-17 13:52:30 +02:00
mrdudz
4674b09421 clean and mostlyclean should also clean the test and targettest directories 2022-05-17 13:25:12 +02:00
compyx
2fdb1e6b0d Fix set but unused variable 2022-05-17 10:05:25 +02:00
Bob Andrews
8328bbf51d
Update README.md 2022-05-10 01:56:52 +02:00
Bob Andrews
4da7e1553f
Merge pull request #1676 from polluks2/patch-1
smarter manufacturer
2022-05-10 01:32:10 +02:00
mrdudz
8062f8d029 sample program that demonstrates how to compare the value of __CC65__ for
any version of the compiler
2022-05-10 01:16:19 +02:00
mrdudz
1b73ffb8ae document changes to __CC65__ 2022-05-10 01:13:24 +02:00
mrdudz
f67fb3b326 define __CC65__ as ((VER_MAJOR * 0x100) + VER_MINOR), fixes issue #1667 2022-05-10 01:12:13 +02:00
mrdudz
1c3d386e09 simple test related to #1678 2022-05-09 21:27:21 +02:00
mrdudz
b6ffa4af64 Fix endless loop on expanding a recursive macro, fixed issue #1678, patch by kugelfuhr 2022-05-09 21:26:45 +02:00
mrdudz
1abb5f4734 Add a directory for tests that exercise the supported C standard differences.
As a first test added the snippet given in issue #1670
2022-05-08 19:29:57 +02:00
mrdudz
3640beaa46 fix some header files to conform with C99 hopefully, should fix issue #1670 2022-05-08 19:29:57 +02:00
mrdudz
d0ac06c9b0 must include stdarg.h to use varargs 2022-05-08 19:29:57 +02:00
Bob Andrews
1c34d798be
Update Contributing.md 2022-05-08 19:27:32 +02:00
Bob Andrews
fc4faa582a
Update Contributing.md 2022-05-08 18:46:12 +02:00
mrdudz
43af562ce1 At the end of the optimizer run, remove jump cascades again. fixes the
regression reported in #1652
2022-05-08 13:22:10 +02:00
mrdudz
5813fd81d3 add extra optimizer step that replaces BRA by JMP if the target is external 2022-05-08 13:20:18 +02:00
mrdudz
e6b9a4b292 test related to issue #1652, shows regression broken by #1231 and the
case that #1231 improved.
2022-05-08 13:19:32 +02:00
mrdudz
e0ae8ddc68 add sourcelines to the generated asm for easier inspection,
redirect output of sim65, including cycle count, into a seperate .out file per program
2022-05-08 13:18:27 +02:00
Bob Andrews
8bdc3b092c
Update Contributing.md 2022-05-06 22:13:33 +02:00
Bob Andrews
2314cddb5a
Merge pull request #1718 from polluks2/patch-2
Some clean-up
2022-05-06 13:08:14 +02:00
Bob Andrews
61bd7be6be
Merge pull request #1725 from polluks2/patch-4
typo in markdown
2022-05-06 13:05:01 +02:00
Bob Andrews
9beedbafdd
Merge pull request #1735 from rofl0r/empty_prefix
build: allow empty prefix - should this break on Amiga or other non POSIX systems, please speak up
2022-05-06 13:04:00 +02:00
Bob Andrews
14c7ae6f0c
Merge pull request #1742 from jedeoric/mkdir_fix_telestrat
Mkdir : fix registers calls
2022-05-06 13:00:03 +02:00
jede
47743d5fcf fix space 2022-05-05 22:50:37 +02:00
jede
348ea815b0 fix mkdir 2022-05-05 22:43:06 +02:00
Bob Andrews
71cec58d86
Adjust comments 2022-05-05 14:24:02 +02:00
Bob Andrews
b8f7167dcd
Merge pull request #1729 from jedeoric/fix_fd_cleaning_telestrat
[Telestrat] missing fd_management and cleaning
2022-05-04 02:34:58 +02:00
Bob Andrews
0fc1fb4a36
Merge pull request #1740 from WayneParham/master
Added myself as an external contributor for the Sym-1 target
2022-05-02 18:58:22 +02:00
Wayne Parham
f34bd59660 Added myself as an external contributor for the Sym-1 target 2022-05-02 11:44:47 -05:00
rofl0r
20dd6fd872 change GetProgPath() to return full & resolved binary path
GetProgPath() now resolves the path derived from argv[0] always
via realpath(3p) to its real location in the filesystem, and returns
the path including binary name, effectively making it work like
windows' GetModuleFileName(), so we can re-use the existing code
to strip the trailing binary name.
since symlinks are now always resolved, we no longer need the
special case code for linux to use /proc/self/exe for this purpose.
2022-05-02 08:22:21 +00:00
Bob Andrews
74f92564c3
Try reading from /proc/self first on linux, this is needed to make the edgy "make avail" work 2022-04-30 15:01:58 +02:00
Greg King
a5e69e7ea6 Upgraded the cx16 library to the Commander X16 Kernal ROM's prerelease 39. 2022-04-29 16:56:54 -04:00
rofl0r
d78672a4b4 rename AddSubSearchPathFromWinBin to AddSubSearchPathFromBin 2022-04-28 18:35:05 +00:00
rofl0r
b32c12dd83 implement AddSubSearchPathFromWinBin() counterpart for unix
this looks up paths relative to the binary used to start the
specific application.
2022-04-28 18:35:05 +00:00
Bob Andrews
75ee10478e
Update Contributing.md 2022-04-28 15:14:34 +02:00
rofl0r
8669710c0f build: allow empty prefix
there was some concern that this will break windows' way of doing
file lookups relatively from the binary, rather than via hardcoded
locations, but so far each occurence adding e.g. "CA65_INC" to
the pathsearch is already shielded with an #ifndef _WIN32.

addressing #1726
2022-04-27 16:19:06 +00:00
Bob Andrews
ba5859f724
Update README.md 2022-04-27 14:25:46 +02:00
Bob Andrews
e5b08baf56
Merge pull request #1724 from mrdudz/constexpr
Constexpr
2022-04-27 11:47:41 +02:00
mrdudz
f7a5f6ed73 test some more cases that should not change size 2022-04-26 17:08:19 +02:00
mrdudz
a3ae28a81c added a test that must fail 2022-04-26 17:07:57 +02:00