1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-19 09:28:25 +00:00
Commit Graph

9336 Commits

Author SHA1 Message Date
Karri Kaksonen e653204ffe Add target atari7800 2022-07-21 03:20:44 +02:00
Karri Kaksonen 89716ac831 Add target atari7800 2022-07-21 03:20:44 +02:00
empathicqubit 06ddd042f2 Documentation 2022-07-21 03:20:44 +02:00
empathicqubit 2bd30afdeb Add --debug-tables <filename> option and output struct and union fields 2022-07-21 03:20:44 +02:00
Greg King 314cdd7feb Added Atari Lynx versions of three sample programs.
The Lynx target can't build the usual versions because its library doesn't have conio output and stdio.
2022-07-21 03:20:44 +02:00
Greg King 1951e84505 Made tgidemo draw circles in blue instead of orange.
That change lets it be built on two more platforms (Atmos, Telestrat).
2022-07-21 03:20:44 +02:00
Greg King c6c199bd59 Added a URL to the snapshot's commit history as a comment in the Windows snapshot ZIPs. 2022-07-21 03:20:44 +02:00
nyanpasu64 aebf61464d Replace #include "inttypes.h" with <inttypes.h> 2022-07-21 03:20:44 +02:00
nyanpasu64 8afbf3f5ff Fix format strings to properly format uintptr_t 2022-07-21 03:20:44 +02:00
nyanpasu64 190e04b0ce Remove broken inttypes.h
src/common/inttypes.h is a shim to fix building cc65 on
non-C99-compliant compilers missing inttypes.h (like VS2012 and
earlier). The shim is actually incomplete and does not define the PRI...
macros supplied by the actual compiler headers. Since we're planning to
use those macros, delete this header so cc65's source files instead use
host-supplied inttypes.h containing macro definitions.
2022-07-21 03:20:44 +02:00
nyanpasu64 b9651e4b06 Fix segfault on 64-bit LLP64 Windows builds
There are many occurrences of unsigned long in codegen.h's function
arguments. Changing g_getimmed and g_defdata makes `make` succeed
without segfaulting. I don't know if it makes cc65 behave correctly in
all cases, or if there are more unsigned long that need to be changed.
2022-07-21 03:20:44 +02:00
mrdudz eb2f2a2fca fix #warning directive so the test could actually compile :) 2022-07-21 03:20:44 +02:00
Wayne Parham eb25027f7b Minor updates 2022-07-21 03:20:44 +02:00
Wayne Parham cb322551e5 Documentation clarifications 2022-07-21 03:20:44 +02:00
Wayne Parham d6fe34107e unsigned int format specifier 2022-07-21 03:20:44 +02:00
Wayne Parham 5dd952ba8c Added Sym-1 extended memory sample program and documentation 2022-07-21 03:20:44 +02:00
Karri Kaksonen 4f9b30d50d Fix black index in tgi_colors.s 2022-07-21 03:20:44 +02:00
Karri Kaksonen b252059369 Mark index 0 as TRANSPARENT. Let palette start from index 1 2022-07-21 03:20:40 +02:00
Wayne Parham 12aa8693b8 Corrected size of BASROM definition 2022-07-21 03:18:13 +02:00
acqn 43abc5b01f Fixed signed long comparisons with smaller unsigned types. 2022-07-21 03:18:13 +02:00
acqn 0dc82c0d11 Fixed test/asm/listing/Makefile with mingw32-make.exe that has problems with comments lead with tabulators. 2022-07-21 03:18:13 +02:00
acqn e95184e20e Testcase for #1675. 2022-07-21 03:18:13 +02:00
acqn f0242fb7d5 Fixed LimitExprValue() for 64-bit long env. 2022-07-21 03:18:13 +02:00
acqn 7e3aaf199a Fixed bitwise shift with numeric constant operand(s). 2022-07-21 03:18:13 +02:00
Greg King 74bdc06529 Added a more general test to test/val/bug1690.c 2022-07-21 03:18:13 +02:00
acqn 1579d2ec41 Fixed OptCmp1 with certain code patterns with labels. 2022-07-21 03:18:13 +02:00
Jeff Tranter 93291add05 A couple of addtional fixes. 2022-07-21 03:18:13 +02:00
Jeff Tranter ba13ba32a1 Fix some commonly made spelling errors in comments. 2022-07-21 03:18:13 +02:00
Greg King cac1e26372 Made the c128, not the c64, target build the c128 version of "c64-c128-scpu-test.c".
Its placement in the wrong list caused a parallel race condition that sometimes led to failed test builds.
2022-07-21 03:18:13 +02:00
Greg King 9dcd7f8858 Reverted "do not use cl65 to prevent tests from failing randomly because of one process deleting the temp files from another".
This reverted commit 02a46e0237.  That commit didn't fix the real bug (a program name in the wrong list).
2022-07-21 03:18:13 +02:00
Spiro Trikaliotis 49bf32dc06 Add proper readmes 2022-07-21 03:18:13 +02:00
Spiro Trikaliotis e85d7756a6 Rename target test to asm 2022-07-21 03:18:13 +02:00
Spiro Trikaliotis 2edd9543ce Reorganized test/asm 2022-07-21 03:18:13 +02:00
mrdudz 14b27f8317 do not use cl65 to prevent tests from failing randomly because of one process deleting the temp files from another 2022-07-21 03:18:13 +02:00
Greg King e4f38f4476 Made the snapshot-on-push Github action run on only the upstream repository. 2022-07-21 03:18:13 +02:00
Spiro Trikaliotis 77fa71994f 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-07-21 03:18:13 +02:00
Spiro Trikaliotis bfaa2b37e0 Add link to DEB and RPM snapshots 2022-07-21 03:18:13 +02:00
Spiro Trikaliotis e35f4fb48f 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-07-21 03:18:13 +02:00
mrdudz 3b964c9674 add hint on VICE -moncommands 2022-07-21 03:18:13 +02:00
acqn 479f450d11 Testcase for #1662. 2022-07-21 03:18:13 +02:00
acqn ace0bc414b Fixed anonymous bit-fields declared with typedef'ed type names. 2022-07-21 03:18:13 +02:00
acqn 879ed5bb95 Fixed crash with labels in non-function/block scopes. 2022-07-21 03:18:13 +02:00
Greg King 800568dd58 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-07-21 03:18:13 +02:00
mrdudz 2628a176f9 attempt to prevent utils being compiled with cc65 2022-07-21 03:18:13 +02:00
mrdudz 648c8e21e3 build utilities in a seperate step 2022-07-21 03:18:13 +02:00
Greg King c138454bcc 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-07-21 03:18:13 +02:00
Greg King bc46c90cfa Added '+' to another SUBDIRS_recipe. 2022-07-21 03:18:13 +02:00
Greg King 9c1c1c04d8 Moved the platform-test enumerations from Github Actions over to makefiles.
Now, we can run those tests locally, as well as on Github.
2022-07-21 03:18:13 +02:00
Wayne Parham bf46abf8c5 Correction of link typos 2022-07-21 03:18:13 +02:00
Wayne Parham dd38de6263 Added note about return value being function status. 2022-07-21 03:18:13 +02:00