1
0
mirror of https://github.com/cc65/cc65.git synced 2026-03-10 17:21:49 +00:00
Commit Graph

930 Commits

Author SHA1 Message Date
rumbledethumps
4b561acea5 all dir commands 2025-10-16 16:20:23 -07:00
rumbledethumps
815135f716 chdir and friends 2025-10-15 23:41:44 -07:00
rumbledethumps
f744f0b8a0 dir seeking 2025-10-15 14:12:12 -07:00
rumbledethumps
e6c138dc03 directory ops 2025-10-14 23:11:23 -07:00
rumbledethumps
23b8bafbf6 no need to expose errno_opt 2025-09-27 23:27:02 -07:00
rumbledethumps
fdcb890bfd remove oserror from rp6502 2025-09-26 17:19:50 -07:00
rumbledethumps
b5ff68a952 Merge branch 'cc65:master' into master 2025-09-15 20:57:21 -07:00
Colin Leroy-Mira
86bcf32580 Apple2: Add file_set_type() and file_set_auxtype()
MLI wrapper to be able to update existing ProDOS
files' type and auxtype.
2025-08-26 15:11:15 +02:00
rumbledethumps
02cb5d23f7 add xreg_ria_gamepad 2025-07-19 23:13:53 -07:00
Bob Andrews
fd973cd544 Merge pull request #2769 from colinleroy/add-strndup
Add strndup
2025-07-04 17:01:28 +02:00
Colin Leroy-Mira
90e1ac374b Add strndup
char* __fastcall__ strndup (const char* S, size_t maxlen);
2025-07-03 23:46:28 +02:00
rumbledethumps
aa042f57d8 Merge branch 'cc65:master' into master 2025-06-29 20:16:27 -07:00
rumbledethumps
77e325507e settable codepage() on RP6502 2025-06-29 20:16:07 -07:00
mrdudz
f8b1691eff prepare vic3 header 2025-06-25 21:48:25 +02:00
mrdudz
a37a88d5bf std cbm tgi colors 2025-06-24 21:19:38 +02:00
mrdudz
681b49a111 initial target header files for c65 and mega65 2025-06-24 19:55:28 +02:00
Bob Andrews
4863a3e29b Merge pull request #2705 from Russell-S-Harper/add-conio-cgets
Implement conio cgets
2025-06-23 16:10:51 +02:00
Russell-S-Harper
7f40affb59 Adding documentation and some minor reformatting to ensure consistency 2025-06-21 08:48:41 -04:00
Russell-S-Harper
8bfaaa60ba Revising to align with stdio fgets 2025-06-21 06:01:13 -04:00
Russell-S-Harper
00bb9d5376 Edits to more closely match standard cgets 2025-06-20 18:48:51 -04:00
mrdudz
55742003d6 add some more comments 2025-06-17 21:40:04 +02:00
Bob Andrews
3486cd7830 Merge pull request #967 from rhalkyard/feature/plus4-tgi-driver
TGI driver and IRQ-handler fix for plus4
2025-06-17 20:49:09 +02:00
Bob Andrews
bae58ae419 Update cbm264.h - fix misunderstanding about TGI colors 2025-06-17 20:29:01 +02:00
Russell-S-Harper
17a8c92ba1 Implement conio cgets 2025-06-16 16:45:46 -04:00
Bob Andrews
b9eeec0c51 Merge pull request #2677 from sintech/agat-support
Agat support
2025-06-13 17:59:40 +02:00
Konstantin
8202b520b2 add Agat to samples 2025-06-13 12:51:41 +03:00
Konstantin
c28bafa581 add chline, cvline functions 2025-06-13 12:50:39 +03:00
Colin Leroy-Mira
149b2b69ef Use new CPU macro to optimize ntohs on 65c02 2025-06-12 19:33:54 +02:00
Bob Andrews
cd769b3a9f Update cbm264.h - TGI_COLOR defines should be indices into the default palette 2025-06-12 00:32:09 +02:00
Konstantin
1a109c0b34 Fix codestyle 2025-06-07 12:36:49 +03:00
Konstantin
5ff18c1ebc Updates 2025-06-04 23:11:13 +03:00
Konstantin
de524a6561 Initial Agat support 2025-06-04 22:51:17 +03:00
Bob Andrews
aa4a791cc3 Merge branch 'master' into feature/plus4-tgi-driver 2025-06-01 23:12:27 +02:00
Colin Leroy-Mira
0122307399 Apple2: Dynamic IIe check on a2_lo_tgi 2025-06-01 12:53:36 +02:00
Colin Leroy-Mira
d3ef3e1b62 Apple2: Don't depend on apple2enh definition for characters
Up, Down and Del, as well as Open-Apple, exist on
non-enhanced Apple //e.
2025-05-31 19:43:53 +02:00
Colin Leroy-Mira
816666615b Apple2: Make 80-columns support dynamic on apple2 target
Add a machinetype identifier to help us quickly identify
Apple //e (bit 7) and //e enhanced (bit 6).

Use it in conio functions for 80-columns code instead of
relying entirely on the __APPLE2ENH__ target.

Move videomode() to the apple2 target, and have it return
an error if 80-columns hardware is not available - this
is a lie for now, it is considered available on //e enhanced,
which may not be true, and not available on //e, which
may also be not true. An ulterior patch will make that
check correctly.

Adapt the box/line drawing characters so that one can use
MouseText on the apple2 target if it is available, by
defining DYN_DRAW_BOX. No change by default: MouseText is
considered available on apple2enh and not available on
apple2.
2025-05-27 19:03:20 +02:00
rumbledethumps
407a31eeaa Merge branch 'cc65:master' into master 2025-05-24 21:39:17 -07:00
rumbledethumps
b6d261ba2b change to ria_tzset 2025-05-24 21:27:05 -07:00
mrdudz
8d42c4a8c5 fix cpeekc/cpeekcolor/cpeekrevers/cpeeks for atmos, replaces what is in #532 2025-05-24 20:03:44 +02:00
rumbledethumps
795cc55e45 tzset() 2025-05-23 19:26:27 -07:00
rumbledethumps
096095840f fix RIA.errno macro conflict 2025-05-23 19:25:46 -07:00
Colin Leroy-Mira
cfbfaa559c Add ZX02 and LZSA (1,2) decompressors 2025-05-13 21:26:47 +02:00
Jimmy Dansbo
d4a37f7777 Changed tabs to spaces 2025-05-06 09:16:12 +02:00
Jimmy Dansbo
c5a3dbdf38 Add additional video modes that were added in ROM Pre Release 43 2025-05-06 09:09:07 +02:00
Colin Leroy-Mira
2085646e57 Apple2: implement get_tv()
get_tv() will return TV_NTSC or TV_PAL for any Apple II model
with a way of checking vblank. For Apple ][ and ][+ it will
return TV_OTHER and let the user figure it out in another way.
2025-04-28 11:58:53 +02:00
Oliver Schmidt
fd4c1e193d Completely disable/enable 80 column firmware.
The //e 80 column firmware allows to switch between 80 and 40 clumns without clearing the screen. So far, I made that feature available via videomode(). However thinking about it once more, I don't see a C program making use of it. A C program rather benefits from the consistent behavior of videomode() always clearing the screen.
Apart from that, the (default) 40 column display and the 40 column display with 80 column firmware active, behave differently (CH vs. OURCH) which causes subtile issues. Those issues can be avoid altogether by simply always deactivating the 80 column firmware when switching from 80 column display to 40 column display.
Of course, those issues are also relevant, if the 40 column display with 80 column firmware is already active when the C program starts. However, I have reasons to believe that running the Apple II in that mode was/is very unpopular.
2025-03-13 22:22:28 +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
e245ae655d Fixed typo in color symbol definition.
Fixes #2594.
2025-01-07 23:36:17 +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
0e640877c2 Fixed colour #2540 2024-12-11 14:30:56 +01:00