Commit Graph

1422 Commits

Author SHA1 Message Date
mrdudz
5a3aa1fd51 fix/add missing .ifp02x and .p02x pseudo ops, update test 2025-06-17 23:34:23 +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
f16eced6fc Merge pull request #2698 from kugelfuhr/kugelfuhr/fix-1640
Implement -dD, -dM and -dN command line switches to output macro definitions
2025-06-17 19:44:19 +02:00
Kugel Fuhr
adc9ddc280 Change the available options to -dM and -dP. The former prints user macros,
the latter predefined macros. Can be combined by using -dMP or -dPM.
2025-06-16 11:30:25 +02:00
Colin Leroy-Mira
990d65e4e4 Apple2: Setup IRQ/RST vectors in LC if needed
Programs running under DOS3.3 need to setup correct
reset and IRQ vectors in the language card.
2025-06-15 14:12:01 -04:00
Bob Andrews
b9eeec0c51 Merge pull request #2677 from sintech/agat-support
Agat support
2025-06-13 17:59:40 +02:00
Kugel Fuhr
b7a5ec86c5 Remove trailing spaces. 2025-06-12 22:09:53 +02:00
Kugel Fuhr
40aced6d6d Command line switches -dD and -Dm were swapped in the usage information. 2025-06-12 22:02:35 +02:00
Kugel Fuhr
a6b94ebba2 Implement -dD, -dM and -dN command line switches to output macro definitions. 2025-06-12 21:50:20 +02:00
Kugel Fuhr
ace81bd36a Add macros to check for CPU type and supported instruction set. 2025-06-12 14:42:38 +02:00
Konstantin
fb421d7a81 Remove dangling spaces 2025-06-08 23:44:51 +03:00
Konstantin
4d5a290135 add docs and readme.md 2025-06-08 23:30:34 +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
a9ab23ad51 Make waitvsync available on apple2 2025-06-01 12:53:36 +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
Colin Leroy-Mira
cfbfaa559c Add ZX02 and LZSA (1,2) decompressors 2025-05-13 21:26:47 +02:00
Gorilla Sapiens
f48fb03540 issue #2607, enable '\e' character escape for --standard cc65 2025-05-05 17:53:42 +00: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
Max
8cf802cee3 Fix documentation about unnamed labels using an @. 2025-04-15 16:57:13 +02:00
Stefan A. Haubenthal
834388a9e1 Added doc and some refs #2613 2025-04-06 18:49:11 +02:00
Oliver Schmidt
1efe1227d6 Added apple2enh to the targets supporting waitvsync(). 2025-03-14 16:43:39 +01:00
Colin Leroy-Mira
c8eb6e2dd5 Apple II: Document BLTU alternative 2025-03-09 16:19:42 +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
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
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
Bob Andrews
a53524b9de Merge pull request #2558 from polluks/cpp
Clean-up preprocessor syntax
2024-12-15 23:02:35 +01:00
Bob Andrews
bfbf5cd250 Merge pull request #2560 from binary-sequence-forks/master
Improve description of namespace access in ca65
2024-12-15 23:01:15 +01:00
Sergio Lindo Mansilla
17e7e669c9 Fix typo in ca65 doc 2024-12-15 15:29:38 +01:00
Sergio Lindo Mansilla
3933f329c2 Improve description of namespace access in ca65
This avoid confusion with referencing global scope with the namespace
token.
2024-12-15 15:08:32 +01:00
Stefan
d993f3a766 Update cc65.sgml 2024-12-09 18:36:05 +01:00
Bob Andrews
a55d328e78 Merge pull request #2549 from clydeshaffer/debuginfo_doc_port
Port Debug Info page from Wiki to Docs
2024-12-02 00:30:24 +01:00
Clyde Shaffer
3fdb1a516c small formatting fixes, and a section rename to get it to build 2024-11-30 16:56:25 -05:00
Clyde Shaffer
12f6340878 Add section to ld65 doc about debug info 2024-11-30 16:09:50 -05:00
Colin Leroy-Mira
700c01fa8b Rename dir_file_count to dir_entry_count 2024-11-15 19:25:40 +01:00
Colin Leroy-Mira
40d9f3eed5 Apple2: Provide a way to get directory file count
The information is available in the directory key block.
Providing it to the user as soon as opendir() is done
can save them costly code.
2024-11-15 19:25:40 +01:00
Sven Oliver Moll
41951a1345 updated customizing documentation
"weak = yes" is now "type = weak"
2024-09-26 19:33:26 +02:00
Stefan
033fd9e0dc Update funcref.sgml 2024-09-07 17:19:21 +02:00
Bob Andrews
4e2a3bde92 Merge pull request #2499 from kugelfuhr/kugelfuhr/disable-recursive-calls-to-main
Disallow recursive calls to main() in cc65 mode
2024-09-07 14:39:28 +02:00
Kugel Fuhr
cd4357057f The change from #2495 didn't take into account that recursive calls to main()
are legal in C. With the changes from #2495, such calls will usually crash the
machine. But recursive calls to main() are rare and on the 6502 every byte
saved is precious. So this change limits the effect of #2495 to cc65 mode and
at the same time disallows recursive calls to main() in this mode. If
recursive calls to main() are actually required, the code must be compiled in
c89 or c99 mode.
2024-09-02 10:39:42 +02:00
Kugel Fuhr
e2014611ef Improve the usage output for the '-W' option. 2024-09-02 07:02:41 +02:00
Kugel Fuhr
4008ec5814 Document the new #pragma names. 2024-09-01 10:23:10 +02:00
Stefan
bf2b522478 Added company name and warning 2024-08-10 15:12:34 +02:00