Commit Graph

218 Commits

Author SHA1 Message Date
Colin Leroy-Mira
90e1ac374b Add strndup
char* __fastcall__ strndup (const char* S, size_t maxlen);
2025-07-03 23:46:28 +02:00
Russell-S-Harper
450898513c Updated doc'n with cscanf 2025-06-23 22:07:09 -04:00
Russell-S-Harper
7f40affb59 Adding documentation and some minor reformatting to ensure consistency 2025-06-21 08:48:41 -04: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
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
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
Stefan
0d8cbbc38b Fixed typos 2025-01-01 18:30:23 +01: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
Stefan
033fd9e0dc Update funcref.sgml 2024-09-07 17:19:21 +02:00
Oliver Schmidt
feb5026823 Added option to disable the force-to-uppercase behavior of the apple2 target. (#2474)
* Added option to disable the force-to-uppercase behavior of the apple2 target.

* Fixed dangling spaces.
2024-08-07 18:27:09 +02:00
Colin Leroy-Mira
793aa48a49 Add doc 2024-04-19 08:13:41 +02:00
Colin Leroy-Mira
2ba176372e Add beep for apple2 2024-01-23 23:04:50 +01:00
Colin Leroy-Mira
166a4b25f7 Apple2: implement sleep using MONWAIT
Also publish detect_iigs(), set_iigs_speed() and get_iigs_speed(). Refactor to only store one ostype variable.
2024-01-18 16:17:10 +01:00
Colin Leroy-Mira
75461e1319 Apple2: implement stat(2) and statvfs(3) 2024-01-01 19:12:51 +01:00
Stefan
b81e5d00f2 Update funcref cx16 2023-09-22 16:43:03 +02:00
Bob Andrews
c82e877451 Merge pull request #2188 from colinleroy/serial-kernel-fix-driver-lifecycle
Serial kernel: Fix driver lifecycle
2023-09-21 00:34:09 +02:00
Stefan
e145145fbb Added KIM-1 refs
some clean-up
2023-09-16 21:01:37 +02:00
Colin Leroy-Mira
3fc074014e Serial kernel: Fix driver lifecycle
- Make sure we don't install a driver on top of another one
- Make sure we don't uninstall a driver twice
- Make sure we uninstall a driver if needed at exit
2023-09-12 20:58:21 +02:00
Colin Leroy-Mira
a90aa57510 Address Oliver's comments 2023-09-07 16:48:56 +02:00
Colin Leroy-Mira
dfe7562f76 Add ntohs, htons, ntohl, htons. 2023-09-07 07:03:34 +02:00
polluks2
40ff9281c6 Fixed typo 2023-05-19 16:36:19 +02:00
Christian Groessler
60f56c43c7 some documentation fixes 2023-01-18 11:55:52 +01:00
Mariano Dominguez
c6d183c31b add documentation for _sound. 2023-01-16 19:09:01 -08: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
Jeff Tranter
2bf8be5b3b Fix some commonly made spelling errors in comments. 2022-02-21 15:44:31 -05:00
Wayne Parham
9cb005c98f Correction of link typos 2022-02-08 14:22:09 -06:00
Wayne Parham
470b648b9f Added note about return value being function status. 2022-02-07 19:51:03 -06:00
Wayne Parham
84d639e40c Typo correction. 2022-02-07 19:46:16 -06:00
Wayne Parham
e488d7b2a6 Documentation updates for Sym-1. 2022-02-07 19:14:02 -06:00
polluks
f7fa81b244 Fixed many typos 2022-02-03 01:01:10 +01:00
Christian Groessler
c3e01062ea put Atari 20-column note to where it belongs... 2022-01-24 20:13:49 +01:00
Scott Prive
91920f807e document special case on sub 40-col modes 2022-01-23 18:53:14 -05:00
Spiro Trikaliotis
62da869e49 doc: psg_silence: Remove empty notes
The notes section of psg_silence (Creativision funcref) contained an
empty Notes section, consisting of an empty <itemize> only.

Newer sgmltools fail on this, as they insist on having an <item>
element, or they fail compilation:

[  225s] Processing file ../doc/funcref.sgml
[  225s] onsgmls:/tmp/linuxdoc-tools.NfxbjODQbW/sgmltmp.funcref.01.precmdout:5884:9:E:end tag for "ITEMIZE" which is not finished

Fixed this by removing the (empty) Notes section altogether.
2021-06-21 22:10:31 +02:00
Greg King
c0f29993e0 Fixed the descriptions of the Creativision's functions.
Fixed bios_playsound()'s position in the alphabetical list of functions.
2021-05-29 08:53:13 -04:00
Polluks
30830e1348 Added missing Creativision functions 2021-05-25 10:42:21 +02:00
mrdudz
c53059468e fix documentation for the driver _init calls 2021-05-17 14:25:18 +02:00
Greg King
5d198d6842 Fixed some URL links in a couple of documents. 2021-05-12 05:05:39 -04:00
Greg King
0f1386ff4c Added documentation about the slightly different behavior of cpeekcolor() on the cx16 platform. 2021-03-25 08:28:15 -04:00
Greg King
8b5a2f135c Added missing <tag> and <itemize> Linuxdoc tags to some ctype.h function descriptions. 2020-03-27 00:59:15 -04:00
IrgendwerA8
ce80624f62 ctype size optimization 2020-02-03 20:45:09 +01:00
Greg King
b66f7272af Updated the cx16 library to the ROM's prerelease 36. 2020-01-11 02:20:52 -05:00
Greg King
f75657d7e2 Added <cx16.h> to the function reference document. 2019-11-20 12:11:47 -05:00
Stefan
c08f1e4bfd Update funcref.sgml 2019-11-20 12:54:47 +01:00
Greg King
4dda5d2173 Changed a "See also" link in the abort() and assert() descriptions from raise() to signal().
Programmers might want to use signal() to catch the SIGABRT that's sent by abort() and assert().
2019-11-12 11:57:38 -05:00