1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-13 09:31:53 +00:00

311 Commits

Author SHA1 Message Date
mrdudz
734a76c158 added missing directories to "install" target 2025-01-12 19:03:39 +01:00
mrdudz
67da1e7123 add makefile for simulator samples 2025-01-12 18:57:31 +01:00
Sidney Cadot
aacd64b2bc Shorteded is_65c02 routine. 2025-01-05 22:29:51 +01:00
sidney
aca6b33af7 Fixed printf format types, and don't act like a test. 2025-01-05 16:16:13 +01:00
sidney
988260c699 sim65: add C/assembly support, docs, and samples for the new peripheral functionality.
This PR is the second of two PRs that replaces earlier PRs #2589 and #2590. Due to a git branching mishap it was decided to re-partition the new functionality in two sequential PRs that offer self-contained, new functionality to sim65.

The functionality in this second and last PR provides the following things in relation to the new "peripheral" support:

* C support: there is now an include/sim65.h that can be included from C. It provides access to the memory-mapped peripheral addresses.

* Asm support: there is now an asminc/sim65.inc that can be included from assembly. It provides symbolic labels for the memory-mapped peripheral addresses.

Note: the two items above are implemented by adding a "_peripherals" symbol to cfg/sim6502.cfg and cfg/sim65c02.cfg, with the fixed base address of the peripherals memory aperture (0xffc0).

* Updated the sim65 documentation to describe the peripherals in some detail, with examples that show to use the new features from within C.

* Some examples in the new samples/sim5/ directory. These are currently not integrated in the build system (in other words, there's no Makefile there), because I don't know how to do that. I will happily implement that after #2582 is taken care of.

If that is not acceptable, the next best thing will be for somebody else (who understands how the Makefiles are set up) to take care of this.

If that's not going to happen, and we don't want examples that are not properly integrated with the build system, there's always the option of removing these samples from the PR.
2025-01-05 15:58:05 +01:00
Stefan
cf470dd0df
Update sieve.c 2024-12-09 18:26:00 +01:00
Stefan
5f2c5b58ab
Update overlaydemo.c 2024-12-09 18:25:34 +01:00
Stefan
5d2730f4b4
Update multidemo.c 2024-12-09 00:44:44 +01:00
Stefan
8b008052cb
Update mandelbrot.c 2024-12-09 00:43:35 +01:00
Stefan
26e6717102
Update mandelbrot.c 2024-12-09 00:43:05 +01:00
Stefan
316ee4ad5b
Update overlay-demo.c 2024-12-09 00:42:28 +01:00
Stefan
be6819ca1f
Update plasma.c 2024-12-09 00:41:03 +01:00
Stefan
3612d90c8e
Update fire.c 2024-12-09 00:40:41 +01:00
lcvgit
c41eb007e4
Update checkversion.c
Add missing shifts.
2024-10-21 10:09:00 -05:00
lcvgit
02840d503c
Fix checkversion.c
Add missing shifts for checking version from __CC65__.
2024-10-21 10:00:48 -05:00
Olli Savia
4989ce485c Build hello-asm.s on C16 & Plus/4 2024-06-16 19:15:54 +03:00
Olli Savia
a1ca451e69 Renamed: hello.s -> hello-asm.s 2024-06-16 09:35:44 +03:00
Olli Savia
5976e3b85d Add sample assembly program for Commodore machines 2024-06-13 16:22:42 +03:00
mrdudz
934de685bc this is pr #2194 - removed ramfont.o 2024-02-03 01:34:21 +01:00
Jeff Tranter
3a5fbd34da Add KIM-1 functions to write to the 7-segment LED display and get
keypresses from the keypad.
Includes sample program illustrating how to use them.
Tested on real KIM-1 hardware.
2023-03-29 18:40:10 -04:00
polluks2
a5a8225a58
Create disk of GEOS samples
You don't need to convert anymore.
2023-01-14 13:49:16 +01:00
polluks2
e4d9dbf0c0
Wrong file "geover.cvt"
See line 106
2023-01-08 17:47:04 +01:00
Rutger van Bergen
a8c6409689
Delete kimHello 2022-12-26 19:54:00 +01:00
Rutger van Bergen
ae23e47eb5
Merge branch 'cc65:master' into master 2022-12-26 13:57:10 +01:00
Oliver Schmidt
de30a57c0c Added minimalistic terminal program.
So far there was no sample code at all making use of the serial drivers.
2022-12-23 16:20:26 +01:00
mrdudz
bf924395fb fix some bashisms, hopefully makes "check" work again in cmd.exe 2022-11-05 19:41:02 +01:00
Rutger van Bergen
3b431d9fa3 Remove trailing whitespace 2022-09-19 23:57:26 +02:00
Rutger van Bergen
cb8cb876ec Add documentation, make capitalization uniform 2022-09-19 19:56:57 +02:00
Bob Andrews
6239fbe18c
Revert "rename '_poserror' to '__poserror'" 2022-07-24 18:14:21 +02:00
Christian Groessler
758d9466c0 rename '_poserror' to '__poserror'
The old name could be non-conforming to the C standard. The new name
is definitely in the "implementation name space".

See issue #1796.
2022-07-24 00:33:56 +02:00
Dave Plummer
8f9777d9e0 Fix ushot overflow, capitalization 2022-06-06 15:14:01 -07:00
Dave Plummer
799aec23a6 Add KIM-1 Support 2022-06-04 13:00:48 -07: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
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
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
mrdudz
ece6f10588 remove dangling spaces
when changing the checker scripts and/or directly comitting to git head, please make sure to also run the checks first so you don't break the autobuilds
2022-04-18 17:43:56 +02:00
mrdudz
299f967527 remove dangling spaces 2022-04-17 16:06:45 +02:00
mrdudz
2eb20b3e8a remove a bunch of TABs 2022-04-16 18:16:14 +02:00
Greg King
9f2d27d9c1 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-03-19 01:21:52 -04:00
Greg King
266f35ee37 Made tgidemo draw circles in blue instead of orange.
That change lets it be built on two more platforms (Atmos, Telestrat).
2022-03-18 01:06:48 -04:00
Wayne Parham
3cb85fd5e8 Minor updates 2022-03-04 06:23:06 -06:00
Wayne Parham
dc9c0fe90b unsigned int format specifier 2022-03-03 19:57:43 -06:00
Wayne Parham
81338a61c3 Added Sym-1 extended memory sample program and documentation 2022-03-03 17:47:31 -06:00
Jeff Tranter
2bf8be5b3b Fix some commonly made spelling errors in comments. 2022-02-21 15:44:31 -05: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
mrdudz
d23c9b6aa5 use gamate-fixcart from util dir 2022-02-05 17:34:22 +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