Commit Graph

3730 Commits

Author SHA1 Message Date
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
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
mrdudz
faa287f578 enable building library and samples 2025-06-24 21:40:59 +02:00
mrdudz
d374ea2cde include target header to allow lib to build 2025-06-24 21:30:53 +02:00
mrdudz
450c8f7c55 startup code and minimalist kernal support for c65 and mega65 2025-06-24 21:23:04 +02:00
Bob Andrews
54a2410b5a Merge pull request #2674 from GorillaSapiens/c_sp
rename "sp" to "c_sp", avoid conflict with 4510 opcodes
2025-06-24 17:44:13 +02:00
Gorilla Sapiens
b2e5d3cd25 insipid formatting whack-a-mole 2025-06-23 17:51:44 +00: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
Bob Andrews
2e7ee0f105 Merge pull request #2711 from mrdudz/plus4tgi
TGI Documentation and Comments fix
2025-06-23 13:40:41 +02:00
mrdudz
034fc93c75 enable 4510/45GS02 in the compiler - however, the resulting asm files cant be assembled because of sp vs c_sp clash 2025-06-23 13:23:23 +02:00
Gorilla Sapiens
0489098517 restore comment alignment 2025-06-22 21:34:41 +00:00
mrdudz
44672e6281 prepared lib makefile. skip building the library while compiler support is not there 2025-06-22 21:43:21 +02:00
mrdudz
715d9c00a2 initial (identical) minimal "library" for assembly support for c65 and mega65. taken from #1792 2025-06-22 21:09:40 +02:00