Greg King
33b1d82791
Added the WDC65c02S WAI and STP mnemonics to the disassembler.
2016-08-02 16:38:39 -04:00
Chris Cacciatore
9accf983e1
Reporting sym name for incompatible pointer types.
2016-08-02 11:31:09 -07:00
David M. Lloyd
8f0146f14a
Add missing WDC instructions
2016-07-28 11:55:25 -05:00
Christian Groessler
85d755f214
fix indentation
2016-07-05 17:10:10 +02:00
Christian Groessler
97b517a892
sim65: add command line parameter to print number of CPU cycles at exit
2016-07-05 17:07:39 +02:00
Greg King
a6eb7d0763
Fixed how ca65 handles some debug info from cc65.
...
ca65 used to claim that an assembler error/warning was found on a C code line; and, that an Assembly line is only indirectly related to it.
Now, ca65 says that the Assembly line has the problem; and, that the Assembly line was produced from the C line.
2016-07-03 07:07:09 -04:00
Greg King
90b2f5aff8
Fixed some code that adjusts an index after a deletion from a collection.
2016-07-02 10:26:33 -04:00
Greg King
573381a340
Allowed character code zero to be remapped with other character codes.
2016-06-11 06:43:19 -04:00
Oliver Schmidt
6f0b57fe51
Added chrcvt65 to the Visual Studio project.
2016-06-03 11:37:15 +02:00
Oliver Schmidt
8dd003d2b3
Added --print-target-path option.
...
If cc65 is installed and used as designed there's no need whatsoever for CC65_HOME (both on *IX and Windows) from the perspective of the cc65 binaries. If the user however has to access files from the 'target' directory thenhe ends up with some assumption on the cc65 installation path nevertheless :-(
In order to avoid this I added the --print-target-path option. It "exports" the logic used by the cc65 binaries to locate their files to the user thus allowing him to leverage the same logic to locate the target files in his build scripts / Makefiles.
2016-06-03 11:08:53 +02:00
Lauri Kasanen
8951e74ba7
ld65: Be more verbose in token errors
2016-05-27 20:03:58 +03:00
Greg King
8d5717b57a
Small optimization of some cc65-generated loops.
...
"bne" means also branch-on-not-zero. Therefore, this optimization doesn't put a compare-to-zero between an increment and a "bne".
2016-05-24 15:52:12 -04:00
Greg King
2c7ccca210
Added the optional C keyword "volatile" to the __asm__ statement grammar.
...
It prevents the statement's Assembly code from being optimized (e.g., moved or removed). Optimization is disabled for that statement's entire function (other functions aren't affected).
2016-04-22 11:33:52 -04:00
Oliver Schmidt
62c2177599
Merge pull request #283 from polluks/sp65
...
Fixed CPU definition of Lynx.
2016-04-14 11:28:25 +02:00
Polluks
b14021e9ac
Fixed CPU definition of Lynx. Removed nonsense target vc20.
2016-04-12 23:58:30 +02:00
Oliver Schmidt
e809d6bf0d
Merge pull request #281 from polluks/sp65
...
sp65: A forgotten option. Empty arguments are not silent anymore.
2016-04-10 21:13:02 +02:00
KORISNIK
7f06405bdb
A forgotten option. Empty arguments are not silent anymore.
2016-04-10 02:21:36 +02:00
Greg King
fac246c799
Moved a warning message, about misaligned segments, to a configuration function.
...
It used to be shown only if the segment was written into a binary file. Now, it's shown for all badly-aligned segments.
2016-03-29 05:40:12 -04:00
Oliver Schmidt
8b685763d4
Renamed chrcvt to chrcvt65 and added it to the build.
...
The /Makefile presumes that all binaries are are named *65 so chrcvt had to be renamed in order to be added to the build.
2016-03-27 19:09:00 +02:00
Oliver Schmidt
ab1600b346
Merge pull request #269 from jbrandwood/squarebracket
...
New ".feature" to use brackets instead of parens for 6502 indirect addressing.
2016-03-03 09:07:21 +01:00
mrdudz
0dc85268c4
fix merge fxxxup
2016-02-28 19:11:04 +01:00
Oliver Schmidt
54e09fdd03
Added basic frame for new target 'creativision'.
...
Kym Greenshields <kym.greenshields@gmail.com> has expressed interest
in contributing and maintaining support for the VTech CreatiVision system.
this resembles commit 8e6b8dd0af
from oliver
2016-02-28 19:05:40 +01:00
Bob Andrews
25f4482641
Merge pull request #238 from mrdudz/gamate
...
Bit Corporation 'Gamate' support
2016-02-27 18:44:26 +01:00
John Brandwood
d23db09f7f
Add optional feature to use brackets instead of parens for 6502 indirect addressing.
2016-02-25 12:40:31 -08:00
Greg King
7a39b85e30
Fixed how ca65's CONDES-type pseudo-instructions save line numbers (for error messages).
2016-01-15 17:18:09 -05:00
polluks
cb3700ef66
Changed stdout to stderr to separate sim65's output streams. Suggested doc edit.
2016-01-05 17:45:18 +01:00
Greg King
7e14dde07b
Fixed the cc65 code that handled an addition of a pointer to a 32-bit offset.
...
It didn't demote the offset to int because it looked at the pointer (instead of the offset) which already was 16 bits.
2015-12-31 17:41:48 -05:00
Greg King
3b303396bf
Made cc65 accept comparisons between pointers with different qualifiers (similarly to subtractions between pointers).
2015-12-29 04:18:17 -05:00
Oliver Schmidt
02e4b5bfe3
Merge pull request #249 from polluks/master
...
My first PR
2015-12-27 13:40:20 +01:00
polluks
11786b198e
Amiga support #192
2015-12-27 01:26:28 +01:00
Greg King
bdbf75372c
Added another op-code to the test pattern for a right-shift optimizer in cc65.
2015-12-14 11:50:43 -05:00
Greg King
651b1b40ec
Extended a signed char shift optimization, to handle shifts that are longer than 4 bits.
2015-12-13 17:10:31 -05:00
Greg King
4716083f3f
Fixed a signed char shift optimization so that it won't be used on signed int also.
...
(It would lose significant bits from the high byte.)
2015-12-13 17:04:43 -05:00
mrdudz
8a499fdf4e
fixup conio.c some more. also includes merge of upstream/master because git is retarded.
2015-12-02 00:13:32 +01:00
mrdudz
9fbf8a4299
conio and most other stuff working now
2015-11-29 01:14:59 +01:00
f
4dc4ea60ee
Implemented escaping of spaces in ca65 dependency files. Largely based on input.c from cc65 (WriteEscaped was copied verbatim).
2015-11-26 19:00:47 +02:00
mrdudz
88e7b5776a
some more fiddling
2015-11-22 19:02:47 +01:00
Greg King
3c8c62c6ab
Fixed the ca65 Assembly-code variable ".paramcount".
...
Fixed how it's described in the ca65 document.
2015-11-17 14:21:40 -05:00
mrdudz
60285097e3
initial import of the gamate stuff
2015-11-14 13:15:29 +01:00
Oliver Schmidt
202ad62419
Merge pull request #224 from greg-king5/ld65-segstart
...
Change the way that ld65 handles bad offset/start segment-attributes.
2015-10-24 17:12:49 +02:00
Marcus Rowe
25e0b157be
Fixed code style
2015-10-24 01:07:47 +10:00
Greg King
8e9bf4d419
Changed the way that ld65 handles bad offset/start segment attributes, and reports memory area overflows.
...
1. Offset/start attributes within a memory area are ignored after an overflow.
2. If a previous segment ends past an offset/start address, then that address is not used.
3. Short map files were generated for memory overflows; now, they are generated for bad offset/start addresses, too.
2015-10-22 19:24:08 -04:00
Marcus Rowe
67cd0c2197
Added .asize and .isize pseudo variables
...
These pseudo variables will return the size of the accumulator/index
in bits.
For the 65816 instruction set .ASIZE/.ISIZE will return either 8 or 16,
depending on the current size of the operand in immediate addressing
mode.
For all other CPU instruction sets, .ASIZE/.ISIZE will always return 8.
For example:
; Reverse Subtract with Accumulator
; A = memory - A
.macro rsb param
.if .asize = 8
eor #$ff
.else
eor #$ffff
.endif
sec
adc param
.endmacro
2015-10-20 09:30:25 +10:00
Greg King
ed2b8a1609
Fixed a warning message.
2015-09-25 02:31:17 -04:00
Oliver Schmidt
b2657ecef5
Merge pull request #177 from mrdudz/pcenginetarget
...
new target: PC Engine (TurboGrafx16)
2015-09-24 09:58:28 +02:00
Greg King
a555f121fd
Fixed the " til " typos.
2015-09-06 12:25:00 -04:00
mrdudz
d0a1dc73b8
Merge remote-tracking branch 'upstream/master' into pcenginetarget
2015-09-04 13:40:52 +02:00
Oliver Schmidt
8d5f6b89ae
Merge pull request #203 from greg-king5/multi-comments
...
Change multi-line C comments in files that were missed by a previous pull request.
2015-08-31 17:36:02 +02:00
Greg King
58e56ba24d
Changed multi-line C comments in files that I missed in commit 0390c34e88
.
2015-08-30 08:43:54 -04:00
Greg King
d280d2610e
Don't count the NULL (doh!).
2015-08-30 07:55:35 -04:00
Greg King
a132bc4b28
Fixed a comparison operator; so that the NULL at the end of argv[] is copied by InitCmdLine().
...
Most POSIX function libraries hid that long-time bug by putting zeroes in their dynamic RAM; but, MinGW's library doesn't do it. Therefore, a command like
cl65 foo.c -l
would crash with a "Segmentation fault" -- it should give a nice error message about "-l"; and, quit neatly.
2015-08-30 05:16:38 -04:00
Greg King
6032849e60
Added warning diagnostics for conflicts between extern/public and static declarations.
2015-08-10 13:39:17 -04:00
Greg King
4e9842ef33
Stopped extern declarations from changing previous static, but otherwise identical, declarations.
2015-08-09 06:27:05 -04:00
Greg King
d36f31dcff
Improved the format of the global symbols' lists of flags, in cc65's debugging output.
2015-08-08 22:04:38 -04:00
JT
cacc5e2ace
Style again
2015-07-20 19:16:48 -04:00
JT
10579d0421
Fix style
2015-07-20 19:12:30 -04:00
JT
c3d083fe33
Fix bug #182
2015-07-20 18:55:25 -04:00
mrdudz
0e29a0993f
Merge remote-tracking branch 'upstream/master' into pcenginetarget
2015-07-20 18:42:04 +02:00
JT
b79687da2b
Fix base 10 bug (ca65 allows 'a' or 'A' in base10 value)
2015-07-19 18:56:42 -04:00
mrdudz
21d7729ad1
Merge remote-tracking branch 'upstream/master' into pcenginetarget
2015-07-16 16:46:24 +02:00
Oliver Schmidt
d3eebc8fcf
Merge branch 'pointer' of https://github.com/mrdudz/cc65 into mrdudz-pointer
2015-07-15 12:24:09 +02:00
Oliver Schmidt
a79b17515e
Merge pull request #158 from Movax12/definedmacro
...
Added .DEFINEDMACRO psuedo function
2015-07-12 13:32:03 +02:00
JT
55adf03bdf
Move FuncIsMnemonic
2015-07-11 19:09:42 -04:00
mrdudz
877fd532c2
Merge remote-tracking branch 'upstream/master' into pcenginetarget
2015-07-11 13:05:26 +02:00
mrdudz
6ab197f364
patch from Uz that makes some illegal operations on pointers error out
2015-07-10 14:27:49 +02:00
Greg King
8189339e7d
Added special-case compiler code that handles a pointer-to-array dereference.
...
The type needs to change (to array); but, the address shouldn't be changed -- it already points to the first element.
Based on a bug analysis by Daniel Serpell.
2015-07-01 06:55:57 -04:00
JT
e7fca18798
Added .DEFINEDMACRO psuedo function
...
Fixed typo/fomatting
Formatting fix
Refactor the code to test for a macro
Remove .FEATURE requirement for .DEFINEDMACRO
2015-06-27 01:39:11 -04:00
Oliver Schmidt
d0e0b98b43
Revert "Equality problem (Ullrich von Bassewitz)".
...
Uz classifies his own fix as broken:
http://www.cc65.org/mailarchive/2015-01/11721.html
Although the original issue fixed seemed rather significant looking
back now the regression caused by the (broken) fix seems even more
significant :-(
(reverted from commit 55815ea10c
)
======================================================================
Equality problem (Ullrich von Bassewitz)
Neil Stockbridge reported a problem with equality comparisons on
cc65.org's mailing list:
http://www.cc65.org/mailarchive/2014-10/11680.html
Uz provided a fix for it:
http://www.cc65.org/mailarchive/2014-10/11683.html
This pull request ask to add the fix to cc65 on github.
2015-06-27 01:09:20 +02:00
Oliver Schmidt
8bdbc00ba3
Bumped version.
...
As suggested the incompatibility resulting form changing the default calling convention makes a new version appropriate - from user perspective.
2015-06-25 09:23:27 +02:00
Oliver Schmidt
a13284a792
Merge pull request #160 from Movax12/definedinstr
...
.DEFINEDINSTR
2015-06-04 22:05:00 +02:00
Oliver Schmidt
fe023a1218
Merge pull request #151 from greg-king5/fastcall
...
Make __fastcall__ be the default calling convention.
2015-05-26 22:39:33 +02:00
Greg King
bbb6f89731
Made cc65 properly test calling conventions when it compares forward declarations to function definitions.
2015-05-24 18:31:50 -04:00
Greg King
e72132c8ae
Made cc65 properly test variadic-function pointer assignments.
...
Improved some error messages.
2015-05-24 08:32:15 -04:00
JT
63325a90d1
Added needed changes to pseudo.c
2015-05-19 20:45:49 -04:00
JT
1e3234f370
changed name of function to .ISMNEMONIC, small fixes
2015-05-19 19:50:51 -04:00
JT
9ee5adc190
Remove .FEATURE requirement and add documentation
2015-05-19 00:06:12 -04:00
Christian Groessler
41d19074e7
Fix verbose symbol dumping in ca65.
2015-05-16 05:20:15 +02:00
JT
5ed3a1a6dc
Added pseudo function .DEFINEDINSTR
2015-05-12 19:28:57 -04:00
Greg King
0bb3bafb3e
Made cc65 catch an assignment of a function pointer to a pointer with a different calling convention.
2015-05-12 04:15:00 -04:00
Greg King
8743e9911d
Added a command-line option to compile a program, with __cdecl__ as the default calling convention.
2015-04-22 09:59:23 -04:00
JT
ffa52863b3
Small changes to coding style and to ca65 documentation for .ADDRSIZE
2015-04-21 16:09:01 -04:00
JT
dfddf8f9d2
Improved on funciton .ADDRSIZE. Conform to coding style.
2015-04-20 17:20:54 -04:00
JT
c6f45a338c
Added function .ADDRSIZE to ca65
2015-04-19 23:21:56 -04:00
Greg King
2842b68a04
Reverted one of the changes in how function prototypes look, in cc65's assembly output.
2015-03-19 06:27:25 -04:00
Greg King
b452bdc5e4
Catch fastcall pointers to variadic functions.
2015-03-13 12:18:43 -04:00
Greg King
a798b1d648
Made __fastcall__ be the default calling convention for non-variadic functions.
2015-03-10 05:53:52 -04:00
Greg King
6230b6a813
Completed the cc65 code that recognizes __CDECL__ as a calling convention qualifier.
2015-03-09 19:39:04 -04:00
Greg King
ba871635de
Added a font translation table because Ohio Scientific machines have three misplaced characters.
2015-03-05 12:45:50 -05:00
Stephan Mühlstrasser
de3df033d3
Remove tabs, fixed accidental insertion of stdio.h.
2015-02-08 17:21:23 +01:00
Stephan Mühlstrasser
4e03d7448c
Merge branch 'master' of https://github.com/cc65/cc65 into c1p
2015-02-08 15:58:42 +01:00
Stephan Mühlstrasser
01b0e10fc3
Remove tab character.
2015-02-03 22:56:04 +01:00
Stephan Mühlstrasser
14c7e9fd16
Rename c1p target to osic1p
2015-02-03 22:42:35 +01:00
Wayne LaBelle
d3b2b3df6b
Move SBC to correct location in 6280 instruction table
2015-01-11 16:10:34 -05:00
Stephan Mühlstrasser
50164a9d68
Removed c1p65 object file converter.
...
Now using srec_cat from the srecord package.
2015-01-05 20:55:45 +01:00
Oliver Schmidt
83549e2321
Merge pull request #142 from greg-king5/disassemble-segment
...
da65's segments feature
2014-12-03 14:07:12 +01:00
Stephan Mühlstrasser
91e21ae024
Merge branch 'master' of https://github.com/cc65/cc65 into c1p
2014-12-02 20:42:54 +01:00
Greg King
1446d99b14
Clarified a segment error message.
2014-11-30 00:51:09 -05:00
Greg King
155f00f25e
Fixed the detection of where to start and stop segments.
2014-11-30 00:40:45 -05:00
Stephan Mühlstrasser
67707f342d
Set default start address to 0x200
2014-11-29 20:56:49 +01:00
mrdudz
4275b82117
added compiler/assembler target, lib compiles
2014-11-29 15:35:20 +01:00