Oliver Schmidt
01857cd4de
Updated Visual Studio solution files to VS 2017.
2018-11-24 14:10:58 +01:00
Greg King
554448a1f1
.byt "" emits no data; avoid a ca65 crash.
...
Fixes #775 on GitHub.
2018-10-20 13:41:52 -04:00
Evgeny Vrublevsky
f73aa2af71
'--no-std-lib' was renamed to '--no-target-lib'
2018-10-19 10:57:10 +02:00
Evgeny Vrublevsky
d4088f9eee
Don't output a warning about alignment when section address is defined by START or OFFSET and fits required alignment requirements
2018-10-18 15:37:14 +02:00
Oliver Schmidt
96196f00e9
Adjusted library name.
2018-10-18 13:22:26 +02:00
Evgeny Vrublevsky
8084702a58
Renamed to '--no-std-lib'
2018-10-18 13:08:56 +02:00
Evgeny Vrublevsky
23b5cc870e
Renamed to '--no-crt-lib'
2018-10-18 13:08:56 +02:00
Evgeny Vrublevsky
2a9bb0d8de
CL65: --no-rtl option for disabling default runtime library
2018-10-18 13:08:56 +02:00
laubzega
5fa79be997
Post-review tweaks.
2018-10-16 09:55:02 +02:00
laubzega
7d9485f6bc
Typo
2018-10-16 09:55:02 +02:00
laubzega
cf7f3abadd
Even more optimization, cleanup, bugfix, comments.
2018-10-16 09:55:02 +02:00
laubzega
d3665b263e
Stack adjustment code optimizations.
2018-10-16 09:55:02 +02:00
laubzega
249248ccc8
Formatting tweaks.
2018-10-16 09:45:30 +02:00
laubzega
8eb9f4a8aa
Fix for issue #735
2018-10-16 09:45:30 +02:00
Greg King
03e43d1fbf
Changed a comment and an error message into more specific text.
2018-10-08 20:39:46 -04:00
laubzega
92defb7a2b
Fix crash due to mistaken symbol identity.
2018-10-08 16:27:00 +02:00
Egor
0149de4da7
da65: properly scan empty strings
...
Previously, doing something like `LABEL { NAME ""; ADDR $1000; };` would
result in $1000 being labeled as NAME: instead of being unnamed.
2018-10-06 21:55:42 +03:00
Greg King
f11ae87ada
Always put goto stack-adjustments in the RODATA segment.
2018-10-02 23:19:38 -04:00
Oliver Schmidt
88d1d20cd0
Minor style adjustment.
2018-10-02 18:53:01 +02:00
laubzega
02a914625b
Formatting fixes.
2018-10-02 18:49:53 +02:00
laubzega
2ec21c5b7f
Fix non-goto jumps (i.e. inline assembly).
2018-10-02 18:49:53 +02:00
laubzega
8845e71161
Another warning.
2018-10-02 18:49:53 +02:00
laubzega
6ad79067ac
Fix a warning.
2018-10-02 18:49:53 +02:00
laubzega
c797b3b376
Proper warnings for "risky" gotos.
2018-10-02 18:49:53 +02:00
laubzega
c835f49913
Clean-up
2018-10-02 18:49:53 +02:00
laubzega
2ac2ffcd43
Adjust SP on gotos between blocks with local variables.
2018-10-02 18:49:53 +02:00
laubzega
a48bbc4be0
Switched from warning to error. Tightened the testcase.
2018-10-02 18:49:53 +02:00
Laubzega
a4b6bb63c0
Minor changes after review.
2018-10-02 18:49:53 +02:00
Laubzega
f5b3c5351e
Fix for variableless main().
2018-10-02 18:49:53 +02:00
Laubzega
581c46c213
Add checks for risky goto statements.
2018-10-02 18:49:53 +02:00
Laubzega
d293d766ef
New segment type renamed to "overwrite".
2018-09-08 19:18:41 -07:00
Laubzega
c7bb27bac9
Rename more stuff from "overlay" to "replace".
2018-09-06 00:18:39 -07:00
Laubzega
cd9efd53fe
Segment OVERLAY renamed to REPLACE. Bugfix for read-only segments. Formatting.
2018-09-04 00:34:28 -07:00
Laubzega
1b0e2cf783
Fix for multiple overlay segments.
2018-08-25 20:21:12 -07:00
Laubzega
8b584cb89f
Add segment type "overlay".
2018-08-25 10:18:23 -07:00
Greg King
31461aaf02
Made cc65's "Illegal escaped character" diagnostic show which code was escaped.
2018-08-21 08:58:21 -04:00
Greg King
a76dcdc419
Removed the compiler's recovery code for illegal escaped characters.
...
It caused the error cascade that it was supposed to prevent.
2018-08-20 17:51:22 -04:00
Stefan
b93b88211c
WDM support ( #721 )
...
WDM support
2018-08-19 10:29:25 -04:00
Oliver Schmidt
3598fb505d
Fixed Visual C++ build (and some style adjustments).
2018-08-19 00:01:40 +02:00
Patrick Pelletier
e549e23a87
Use non-POSIX values for S_IREAD and S_IWRITE.
...
(As requested in the PR.)
2018-08-17 23:28:45 +02:00
Patrick Pelletier
f72d355b18
sim65: Use mode_t for OMode.
2018-08-17 23:28:45 +02:00
Patrick Pelletier
b30f790587
sim65: Blindly guessing to get Travis build to pass.
2018-08-17 23:28:45 +02:00
Patrick Pelletier
a7d158e077
sim65: Build was failing on Windows, too.
...
Microsoft loves putting underscores in front of everything!
2018-08-17 23:28:45 +02:00
Patrick Pelletier
12fbdbf418
sim65: S_IREAD and S_IWRITE are nonstandard.
...
The Linux build was failing with:
sim65/paravirt.c: In function ‘PVOpen’:
sim65/paravirt.c:217:18: error: ‘S_IREAD’ undeclared (first use in this function)
OMode |= S_IREAD;
^
sim65/paravirt.c:217:18: note: each undeclared identifier is reported only once for each function it appears in
sim65/paravirt.c:220:18: error: ‘S_IWRITE’ undeclared (first use in this function)
OMode |= S_IWRITE;
^
make[1]: *** [../wrk/sim65/paravirt.o] Error 1
2018-08-17 23:28:45 +02:00
Patrick Pelletier
974188796c
sim65: If mode argument is omitted, use a reasonable default.
2018-08-17 23:28:45 +02:00
Patrick Pelletier
aba320eade
Allow "mode" argument to open() to be passed from 6502 code.
...
Implements this suggestion:
https://github.com/cc65/cc65/pull/719#issuecomment-413809096
2018-08-17 23:28:45 +02:00
Patrick Pelletier
d602572bbe
Fix permissions for files created by sim65.
...
Files created by my programs running under sim65 had really weird permissions:
--w-r--r-x 1 ppelleti staff 19 Aug 16 23:22 json.test.print.tmp
So, for example, my program running under sim65 was not able to read
the file it had just written.
This is because the third argument to open (mode) was not being
specified in paravirt.c, so it was just picking up random crud off the
stack to use as the mode.
I added a mode of 0666, and now my program runs correctly.
2018-08-17 23:28:45 +02:00
Greg King
d13d068e71
Fixed the generation of the opcode byte when BRK is given an operand, in 65816 CPU mode.
...
The bug was created by commit 7e8bb7b700572a50ed4f1e87ebeea4fd35177459.
2018-08-16 23:51:04 -04:00
Patrick Pelletier
5cdaa96e4c
sim65: Fix "$2C: BIT abs" to access the correct address.
...
Bug is documented here:
http://forum.6502.org/viewtopic.php?f=2&t=5242
2018-08-10 12:58:48 -07:00
Greg King
ad6c2dbe7b
Added code to make the 65816's MVN and MVP instructions handle both immediate (bank) and far-address operands.
2018-07-29 03:50:02 -04:00