Commit Graph

3741 Commits

Author SHA1 Message Date
Colin Leroy-Mira
3b8531a422 Apple2: -5 bytes on open() 2025-11-02 21:24:59 +01:00
Colin Leroy-Mira
707e317bb8 Apple2: spare 10 bytes on I/O 2025-11-02 21:24:59 +01:00
Colin Leroy-Mira
25c1223f02 Apple2: spare 2 bytes on read 2025-11-02 21:24:59 +01:00
Oliver
759884ddd4 Allow to backspace with 'Delete' (and some optimization) 2025-11-02 20:52:50 +01:00
Daniel Gimpelevich
6be0731247 Fix uncatalogued name clash with libsrc/runtime/leave.s
Even though these labels are not exported, they can show up in linker
maps and thus break o65 modules.
2025-09-29 18:22:53 -07:00
Colin Leroy-Mira
357f64e4e3 Address Oliver's comments 2025-08-26 15:11:15 +02: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
Bob Andrews
d06e0d9a16 Merge pull request #2812 from colinleroy/Opt-ldptr1
Optimize ldax?sp/sta/stx to ldptr1?sp
2025-07-27 00:22:21 +02:00
Colin Leroy-Mira
aa936b6d12 Fix copyright 2025-07-26 23:59:02 +02:00
Bob Andrews
b0e10e1f9a Merge pull request #2814 from jedeoric/master
telestrat target : lseek now returns position as it should
2025-07-26 00:18:38 +02:00
Bob Andrews
0a4af6df92 Merge pull request #2808 from kugelfuhr/kugelfuhr/flowanalysis
Simple flow analysis to find unreachable code
2025-07-26 00:10:21 +02:00
Bob Andrews
5809eaf037 Update libsrc/telestrat/lseek.s
Co-authored-by: kugelfuhr <98353208+kugelfuhr@users.noreply.github.com>
2025-07-26 00:01:07 +02:00
jedeoric
87ce45ba01 telestrat target : lseek now returns position as it should 2025-07-23 22:49:15 +02:00
Colin Leroy-Mira
8ba1cef550 Merge branch 'master' into Opt-ldptr1 2025-07-20 16:08:01 +02:00
Colin Leroy-Mira
17b8645360 Optimize ldax?sp/sta/stx to ldptr1?sp 2025-07-20 12:24:24 +02:00
jedeoric
329ec64a4b telestrat target : manage main return code 2025-07-18 00:23:44 +02:00
Kugel Fuhr
93b94d314a Implement a simple flow analysis. Tracks control flow of all statements with
the exception of "switch". Outputs warnings for unreachable code. Tracks also
"return" but doesn't currently make use of this information.
2025-07-17 15:39:45 +02:00
mrdudz
e973483cc8 DbgIsBreak() must use __cdecl__ 2025-07-11 21:55:58 +02:00
Colin Leroy-Mira
6604c5ce92 Make strndup smaller, safer, faster
First implementation was doing:
- strdup (without checking result!)
- strlen
- terminate
- realloc

New one does:
- malloc to shortest +1
- strncpy
- terminate
2025-07-05 12:11:40 +02:00
Bob Andrews
315d6c4ae3 Merge pull request #2768 from mrdudz/fix2764
disable the basic interrupt before main(), fixes #2764
2025-07-04 17:04:12 +02:00
Bob Andrews
b24560c083 Merge pull request #2759 from mrdudz/test1972
Fixed #1970 (Missing definition for ST on cbm610 with getdevice) (was #1972)
2025-07-04 17:03:47 +02:00
Bob Andrews
fd973cd544 Merge pull request #2769 from colinleroy/add-strndup
Add strndup
2025-07-04 17:01:28 +02:00
Kugel Fuhr
947eecb65c Add comments to the cputs() and cputc() sources about the former relying on
the latter not to clobber ptr1.
2025-07-04 11:20:35 +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
mrdudz
a19e00d304 disable the basic interrupt before main(), fixes #2764 2025-07-03 21:49:31 +02:00
Kugel Fuhr
59e7158512 Make the CPU_xxx constants from cpu.mac internal to the assembler and replace
cpu.mac by a file that just emits a warning when used.
2025-07-01 08:29:42 +02:00
Kugel Fuhr
c72126e68f Changed most of the library sources to use .CAP instead of .CPU. 2025-07-01 08:04:00 +02:00
mrdudz
81da8b2107 fix getdevice 2025-06-30 20:34:59 +02:00
mrdudz
d91f4f0b82 adjust c65/mega65 functions 2025-06-30 19:10:52 +02:00
mrdudz
26cf19642c initial patch from #1972 2025-06-30 18:39:33 +02:00
mrdudz
74a2262157 hotfix 2025-06-27 17:26:11 +02:00
Bob Andrews
d909a2c285 Merge pull request #2746 from mrdudz/bequiet
Fix -s vs QUIET in the makefiles
2025-06-27 16:43:13 +02:00
Bob Andrews
270552af48 Merge pull request #2734 from mrdudz/mega65c
C65 and Mega65 initial C support
2025-06-27 16:41:28 +02:00
mrdudz
703b166b29 handle -s and QUIET accordingly in libsrc too. those who never used make -s before might start doing it now :) 2025-06-26 23:18:35 +02:00
Colin Leroy-Mira
a028ac4140 Apple2: Fix permanently disabled IRQ
Regression introduced in 990d65e:
Pushing status, initializing IRQ handler (which enables IRQ)
then pulling status re-disables IRQ.
2025-06-26 21:52:15 +02:00
Bob Andrews
bc9ebfb077 Update ppubuf.s - fix ppu ringbuffer size as suggested in #1703 2025-06-26 16:05:12 +02:00
Kugel Fuhr
5db2aed129 Allow "sp" as an alias for "c_sp" for backwards compatibility. Using it will
work but generates a linker warning. Added a test to check for this warning.
2025-06-26 07:40:04 +02:00
mrdudz
b1a123b601 fix c65 lib, remove includes from cbm generic lib 2025-06-26 02:10:15 +02:00
mrdudz
01ba0b562d Merge branch 'master' into mega65c 2025-06-26 01:52:10 +02:00
mrdudz
0290b276ae fix sysuname for all targets, somehow this was forgotten 2025-06-26 01:21:28 +02:00
mrdudz
ad4d86bbf2 add a standard joystick driver, adapted from the c64 one 2025-06-25 23:44:07 +02:00
mrdudz
a7e509cd43 better handling of the cursor, use kernal function to read key, not the UART directly 2025-06-25 21:39:03 +02:00
mrdudz
ef1b101538 fix cursor() 2025-06-25 20:38:58 +02:00
mrdudz
2206b8d199 fix getscreensize 2025-06-25 18:52:36 +02:00
mrdudz
1e209b1f15 forgot, need sleep 2025-06-25 05:14:26 +02:00
mrdudz
4db5ac6c14 SCREEN_PTR does only contain the offset apparently (unlike on other cbm systems), so we need extra handling 2025-06-25 05:13:09 +02:00
mrdudz
955c6627c0 forgot settime... 2025-06-25 02:47:33 +02:00
mrdudz
db49432561 some more simple fixes, make targettest(s) work 2025-06-25 02:38:40 +02:00
mrdudz
23336420b1 a bunch of simple conio fixes, makes a few more samples work 2025-06-25 00:23:58 +02:00
mrdudz
f787e0857a remove non existing kernal export 2025-06-24 21:52:48 +02:00