1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-20 02:17:07 +00:00
Commit Graph

9341 Commits

Author SHA1 Message Date
Spiro Trikaliotis 388ae87cb3 Reorganized test/asm 2022-02-19 12:44:20 +01:00
Greg King d006317b0e Made the snapshot-on-push Github action run on only the upstream repository. 2022-02-17 00:30:31 -05:00
Bob Andrews bfa9e77523 Merge pull request #1672 from spiro-trikaliotis/pr-1647
ca65: .constructor after .export fails
2022-02-15 22:34:04 +01:00
Bob Andrews 7c417359ec Merge pull request #1674 from spiro-trikaliotis/obs-link
Add link to DEB and RPM snapshots
2022-02-15 22:25:20 +01:00
Spiro Trikaliotis 1df61b6ec7 Add link to DEB and RPM snapshots 2022-02-15 22:16:06 +01:00
Spiro Trikaliotis 364e72921c ca65: .constructor after .export fails
The actor directives (.constructor, .destructor, .interruptor, and .condes)
can't handle a symbol that's already exported.

The relevant code does the checks in the wrong order.

For example, the following correct snippet does not assemble:

        .export         C
C:      .constructor    C, 5

The assembler outputs: test.s:2: Error: Address size mismatch for symbol 'C'

Exchanging both lines makes it work.

This fixes #1647; the patch is provided by 'kugelfuhr' and taken from there.
2022-02-15 22:03:47 +01:00
Bob Andrews 9088d66758 Merge pull request #1671 from spiro-trikaliotis/pr-1634
Invalid flagged errors if token is missing
2022-02-15 21:57:00 +01:00
Spiro Trikaliotis 3d0013ab30 Invalid flagged errors if token is missing
A missing factor in an expression causes an expected but missing token
to be skipped, leading to invalid flagged errors in the following line:

l = 3 +
lda     #$00

An error should be output for line 1, but not for line 2. Actually, both
are flagged as errors:

test.s(1): Error: Syntax error
test.s(2): Error: Unexpected trailing garbage characters

This patch (as proposed in issue #1634 by kugelfuhr) fixes this.
2022-02-15 21:46:07 +01:00
mrdudz ad82392428 add hint on VICE -moncommands 2022-02-15 21:25:24 +01:00
Bob Andrews 24c8de87c2 Merge pull request #1662 from acqn/StructFix
[cc65] Fixed ICE on unnamed bit-fields declared with typedef'ed types
2022-02-14 17:31:45 +01:00
acqn 6dbafda53f Testcase for #1662. 2022-02-14 22:28:22 +08:00
Greg King 86b6514c16 Added code that avoids infinite loops that were caused by circular references
(a symbol that was defined by referring to itself directly or indirectly).  Patch by kugelfuhr.
2022-02-13 07:38:00 -05:00
mrdudz 30b00ed076 attempt to prevent utils being compiled with cc65 2022-02-11 16:53:34 +01:00
mrdudz 118e73ddf9 build utilities in a seperate step 2022-02-11 16:38:40 +01:00
Greg King 1f51a9f587 Removed geos_apple and geos_cbm from the lists of targets.
They need resource files to go with the program source files.  The top-level samples and targettest programs don't have those resources.
2022-02-09 04:05:35 -05:00
Greg King 5747fa4df3 Added '+' to another SUBDIRS_recipe. 2022-02-09 04:05:35 -05:00
Greg King 9dd13d7047 Moved the platform-test enumerations from Github Actions over to makefiles.
Now, we can run those tests locally, as well as on Github.
2022-02-09 04:05:35 -05:00
Bob Andrews ee345600b4 Merge pull request #1658 from WayneParham/master
Correction of link typos
2022-02-08 22:42:21 +01:00
Wayne Parham 9cb005c98f Correction of link typos 2022-02-08 14:22:09 -06:00
Bob Andrews 449341f873 Merge pull request #1657 from WayneParham/master
Documentation updates for Sym-1.
2022-02-08 11:50:27 +01:00
Wayne Parham 470b648b9f Added note about return value being function status. 2022-02-07 19:51:03 -06:00
Wayne Parham 84d639e40c Typo correction. 2022-02-07 19:46:16 -06:00
Wayne Parham e488d7b2a6 Documentation updates for Sym-1. 2022-02-07 19:14:02 -06:00
Wayne Parham 10b8920ecc Merge https://github.com/cc65/cc65 2022-02-07 17:12:43 -06:00
mrdudz dfe478b154 upload snapshot to sourceforge 2022-02-06 18:20:09 +01:00
Bob Andrews 94d1bfc450 Merge pull request #1653 from mrdudz/movesamples
move some things from targettest to samples
2022-02-05 18:18:07 +01:00
mrdudz 0436c6e314 fix this too 2022-02-05 18:09:32 +01:00
mrdudz 1ff68e2894 Merge remote-tracking branch 'upstream/master' into movesamples 2022-02-05 17:57:00 +01:00
mrdudz e0745204b6 fix again. sigh 2022-02-05 17:56:33 +01:00
mrdudz 766e0e2144 fix 2022-02-05 17:51:48 +01:00
mrdudz 9308f5147d Merge remote-tracking branch 'upstream/master' into movesamples 2022-02-05 17:48:09 +01:00
mrdudz 096c28bb52 remove programs in util dir before making a snapshot. we might later
decide to leave them there anyway.
2022-02-05 17:47:20 +01:00
mrdudz 2ea9cf0449 cleanup 2022-02-05 17:44:54 +01:00
mrdudz 179f2d05aa utils before samples 2022-02-05 17:44:46 +01:00
mrdudz b3217ccb03 build util dir when testing 2022-02-05 17:44:32 +01:00
mrdudz d23c9b6aa5 use gamate-fixcart from util dir 2022-02-05 17:34:22 +01:00
mrdudz 61dc15cad0 Merge remote-tracking branch 'upstream/master' into movesamples 2022-02-05 17:31:20 +01:00
mrdudz afe9d6a2eb also compile the programs in the util directory by default, not only
do we want to test they can be compiled, but also samples may use/require
them. we might want to install them too, perhaps
2022-02-05 17:28:28 +01:00
mrdudz 4e5b521903 move some things from targettest to samples 2022-02-05 16:55:57 +01:00
Greg King 98bc021c5a Added the names of samples and targettest programs that the telestrat library can build now. 2022-02-03 18:23:23 -05:00
Greg King f64ee3370d Added to the telestrat library the name of the standard dynamic TGI driver. 2022-02-03 18:23:23 -05:00
Greg King bae2821d5a Added telestrat to <time.h>.
That library has clock().
2022-02-03 18:23:23 -05:00
Bob Andrews 7bbc006014 Merge pull request #1649 from polluks2/typos
Fixed many typos
2022-02-03 14:43:11 +01:00
Bob Andrews 24227482ea Merge pull request #1648 from polluks2/tco
Added tail call optimization
2022-02-03 14:42:41 +01:00
polluks f7fa81b244 Fixed many typos 2022-02-03 01:01:10 +01:00
polluks a26778744a Added tail call optimization 2022-02-02 23:02:01 +01:00
Oliver Schmidt e3ca14116d Disable double hires on exit.
A program being run afterwards might not even know about the existence of double hires. So it's our task to turn double hires off on exit.
2022-01-31 19:32:44 +01:00
Greg King 7118c9236b Fixed the cart directory build code to handle even simple programs.
Carts can be built containing programs that don't link some segments.
2022-01-31 08:14:26 -05:00
Greg King 112e216e53 Removed an obsolete command-line option from the cc65 compiler. 2022-01-30 22:10:06 -05:00
Greg King 98f862b8fb Fixed heaptest.c compiler warnings in a way that's better than PR #1621.
This fix adds "unsigned" to one line instead of removing it from several lines.
2022-01-30 20:13:04 -05:00