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

11354 Commits

Author SHA1 Message Date
Christian Groessler e5cebeda76 Merge pull request #2606 from groessler/something_to_pull
Atari: fix fallout of change of INIT segment to 'bss' type
2025-02-25 21:55:48 +01:00
Christian Groessler 04ada63935 Atari: let crt0.s always provide an (empty) INIT segment 2025-02-23 01:06:08 +01:00
Christian Groessler 0082473630 Atari: fix fallout of change of INIT segment to 'bss' type
The size of the load chunk was calculated incorrectly in exehdr.s
since the INIT segment is no longer being part of the file anymore.

While at it, change atari-cassette.cfg so that order of BSS and INIT
is the same as in the other configs. See 692f96409d why it was
in different order.
2025-02-23 00:35:23 +01:00
Christian Groessler b75f872fee Merge pull request #2602 from polluks/master
Fixed cassette boot file header #2600
2025-02-02 16:52:42 +01:00
Stefan 46b2f95ac8 comment 2025-01-31 20:56:59 +01:00
Stefan fb12363a6a Fixed cassette boot file header #2600 2025-01-31 20:26:35 +01:00
Bob Andrews d5cf8ef7ea Merge pull request #2587 from colinleroy/rewind-asm-and-fseek-paravirt
Rewrite rewind() in assembly,add lseek() to paravirt
2025-01-27 17:18:12 +01:00
Oliver Schmidt 99b113de64 Make memory between the end of the text screen and the start of the loaded program available to the linker. 2025-01-19 18:17:11 +01:00
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 9fd090ae8b Merge pull request #2593 from sidneycadot/sim65-add-peripheral-support-and-docs-and-samples
sim65: add C/assembly support, docs, and samples for the new peripheral functionality.
2025-01-11 08:50:28 +01:00
Sidney Cadot b05bb4a44f Merge pull request #2595 from sidneycadot/fix-2594
Fixed typo in color symbol definition.
2025-01-07 23:51:52 +01:00
Sidney Cadot e245ae655d Fixed typo in color symbol definition.
Fixes #2594.
2025-01-07 23:36:17 +01:00
Sidney Cadot aacd64b2bc Shorteded is_65c02 routine. 2025-01-05 22:29:51 +01:00
Bob Andrews 4e3f1ed025 Merge pull request #2559 from polluks/violet
Fixed colour #2540
2025-01-05 21:59:03 +01:00
Bob Andrews 86ed0722e4 Merge pull request #2592 from kugelfuhr/kugelfuhr/fix-2566
Fix a field alignment bug
2025-01-05 19:25:51 +01:00
Kugel Fuhr 1556c8ac7c Move the test from "todo" to "val" since it shouldn't fail any longer. 2025-01-05 17:04:31 +01:00
Kugel Fuhr 447b6e5573 More explicit solution. The first one was a bit hackish. 2025-01-05 16:45:59 +01:00
Kugel Fuhr 3a52c143fb Fix #2566. 2025-01-05 16:45:59 +01:00
Sidney Cadot 50c669d38e Merge pull request #2570 from sidneycadot/struct-assignment-bug2566
Added test to demonstrate issue #2566.
2025-01-05 16:33:27 +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
Sidney Cadot edf0ce216e Merge pull request #2591 from sidneycadot/add-tracing-and-cpumode-switching-peripheral
sim65: add tracing, and a sim65 control peripheral for sim65 runtime control
2025-01-05 15:17:17 +01:00
sidney 5be0b10b62 sim65: add tracing, and a sim65 control peripheral for sim65 runtime control.
This PR is the first 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 first PR extends the sim65 simulator in the following ways:

(1) It provides tracing functionality, i.e., the possibility of printing one line of simulator state information per instruction executed.
(2) It provides a memory mapped "sim65 control" peripheral that allows control of (a) the tracing functionality, and (b) the cpu mode.
(3) It provides command-line options to sim65 to enable the tracing, and to override the CPU mode as specified in the program file header.

More detailed information and some discussion can be found in the discussions with the (now retracted) PRs #2589 and #2590.

This PR provides the technical infrastructure inside the sim65 simulator program itself. Once this PR is accepted, a follow-up PR will be posted that adds C and assembly-language support for the new tracing and peripheral features so they can be easily accessed from the CC65 compiler and the CA65 assembler; some examples; and the documentation for these features. The lack of the latter, in this pull request, will be addressed then.
2025-01-03 21:39:20 +01:00
Sidney Cadot 25ed7ac6e4 Merge pull request #2588 from polluks/master
Fixed typos
2025-01-01 23:07:52 +01:00
Stefan bf8b834317 Fixed typo 2025-01-01 18:31:57 +01:00
Stefan 0d8cbbc38b Fixed typos 2025-01-01 18:30:23 +01:00
Stefan 3047439174 Fixed typo 2025-01-01 18:26:11 +01:00
Colin Leroy-Mira 21345bd6da Fix headers 2025-01-01 14:32:07 +01:00
Colin Leroy-Mira adfb42bfa6 Rewrite rewind in assembly 2025-01-01 14:32:07 +01:00
Colin Leroy-Mira 5531320b51 Fix test_fread return value on error 2025-01-01 14:32:07 +01:00
Colin Leroy-Mira 50cccc2c3a Add lseek to sim6502 paravirt 2025-01-01 14:32:03 +01:00
Sidney Cadot dbbfcd1467 Merge branch 'cc65:master' into struct-assignment-bug2566 2025-01-01 10:56:57 +01:00
Sidney Cadot 823f2045cf Merge pull request #2586 from sidneycadot/fix-snapshot-build-issue_2
Fixing snapshot build issue.
2025-01-01 09:14:31 +01:00
sidney 66594d44a5 Forget to include sys/time.h which is needed for MingGW32 builds. 2025-01-01 08:58:51 +01:00
Sidney Cadot 0f203361bb Merge pull request #2585 from sidneycadot/fix-snapshot-build-issue
Fix snapshot build failure. Hopefully this quick fix will solve the snapshot build failure for now.
2025-01-01 08:42:54 +01:00
sidney ef18d2cdd9 Added code path for for MinGW32 builds that happen during snapshot builds, but not during PR builds. 2025-01-01 08:28:17 +01:00
Sidney Cadot 380a946faa Merge branch 'cc65:master' into struct-assignment-bug2566 2024-12-31 23:02:08 +01:00
Sidney Cadot b95e8b2ae0 Merge pull request #2577 from sidneycadot/feature-add-timer
sim65: add memory-mapped cycle/instruction/wallclock timer.
2024-12-31 23:00:22 +01:00
sidney a8581d042f Improved description. 2024-12-31 18:32:11 +01:00
sidney b2851be340 Fixed several typos. 2024-12-31 18:20:11 +01:00
sidney 915416dc66 Added example. 2024-12-31 18:11:35 +01:00
sidney d8df73c36d Improved counter peripheral documentation, and moved its documentation to the end
of the page just before the copyright notice.
2024-12-31 17:54:58 +01:00
sidney f95a60d5ad Updating sim65 docs. 2024-12-31 13:48:45 +01:00
sidney e37a2b1559 Updated documentation with counter documentation. 2024-12-31 13:35:16 +01:00
Sidney Cadot cd1e9f6729 Merge branch 'cc65:master' into struct-assignment-bug2566 2024-12-31 12:41:29 +01:00
Sidney Cadot acb8eae032 Merge branch 'master' into feature-add-timer 2024-12-31 12:37:55 +01:00
Sidney Cadot ef385c78cc Merge pull request #2580 from sidneycadot/fix-sim65-cosmetics
Fixed style issues in sim65 code.
2024-12-31 12:32:19 +01:00
sidney 511f4478de Fixed style issues. 2024-12-29 22:26:38 +01:00
sidney 7576f59e6a Visual Studio compiler demands an explicit cast from uint64_t to uint8_t. 2024-12-28 06:57:37 +01:00