Commit Graph

11837 Commits

Author SHA1 Message Date
mrdudz
73869a6f38 make propagating QUIET=1 down actually work, also set --no-print-directory depending on QUIET 2025-06-26 19:45:52 +02:00
mrdudz
75aa45d41e when -s was used, implicitly use QUIET=1. also explicitly propagate QUIET to submakefile(s) 2025-06-26 18:42:01 +02:00
mrdudz
4f5fc898d7 someone accidently checked this in, i guess 2025-06-26 18:40:32 +02:00
Bob Andrews
bc9ebfb077 Update ppubuf.s - fix ppu ringbuffer size as suggested in #1703 2025-06-26 16:05:12 +02:00
Bob Andrews
c5fccb2c7e Merge pull request #2742 from kugelfuhr/kugelfuhr/sp-backwards-compat
Allow "sp" as an alias for "c_sp" to avoid breaking old code
2025-06-26 15:43:54 +02:00
Kugel Fuhr
d5e7c94eb2 Introduce an optimization for (header) files containing include guards: If
such an include guard exists, the file is not read and parsed multiple times
(as before) but duplicate inclusion is detected before opening the file and
the additional overhead is avoided.
2025-06-26 10:10:11 +02:00
Kugel Fuhr
e2a39d076d Renamed the assembler test. 2025-06-26 09:00:03 +02:00
Kugel Fuhr
399f5aaab7 Check that there are no library modules that use the old "sp" symbol instead
of "c_sp".
2025-06-26 08:23:51 +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
2de056167a fix warnings 2025-06-26 02:16:05 +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
Bob Andrews
3a6766d0a0 Merge pull request #2737 from mrdudz/asmversion
fix version in sysuname for all targets
2025-06-26 01:47:47 +02:00
mrdudz
8bf6bb606c make sure "make platforms" actually checks all targets 2025-06-26 01:34:32 +02:00
mrdudz
0290b276ae fix sysuname for all targets, somehow this was forgotten 2025-06-26 01:21:28 +02:00
Bob Andrews
801508aecf Merge pull request #2735 from kugelfuhr/kugelfuhr/fix-2025
Add an optimization that removes compare instructions preceeding RTS or function calls
2025-06-26 00:29:29 +02:00
mrdudz
1b815d4148 add joydemo to c65/mega65 samples, it works when driver is statically linked 2025-06-25 23:52:59 +02:00
mrdudz
ad4d86bbf2 add a standard joystick driver, adapted from the c64 one 2025-06-25 23:44:07 +02:00
mrdudz
38bdb2326b added a simple joystick api example, since we didn't have one. 2025-06-25 23:14:08 +02:00
mrdudz
f8b1691eff prepare vic3 header 2025-06-25 21:48:25 +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
Kugel Fuhr
fa81f14cbf Add an explicit "exit 0" to the shell scripts. This worked more or less by
coincidence before since shell scripts return the exit code of the last
command run if there is no explicit exit statement.
2025-06-25 20:34:41 +02:00
Kugel Fuhr
55d9b2dbd0 Rewrite the optimization step from c0a1b1b887 to
remove compares not only before RTS but also befoire function calls that don't
use the flags but destroy all of them. The latter is currently the case for
all functions called. This way the optimization covers a lot more cases than
just checking for RTS.
2025-06-25 20:07:36 +02:00
mrdudz
2206b8d199 fix getscreensize 2025-06-25 18:52:36 +02:00
Kugel Fuhr
1feeee9ce0 Do only check .c and .h files. 2025-06-25 09:37:58 +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
79b2d25840 name the SIDs 1 and 2 just like the CIAs 2025-06-25 02:32:46 +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
fa6d72cae5 move zp range to a somewhat safer place 2025-06-25 00:14:19 +02:00
mrdudz
4d1fbe3f90 fix refs (remove 652SC02) 2025-06-24 21:59:35 +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
d6cc893940 fix instruction set bits set by the compiler. in particular do not set the 65SC02 bit for 4510/45GS02, else we get clashes with sta(zp) 2025-06-24 21:39:39 +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
mrdudz
bfb16888d1 simple linker config for c65 and mega65 2025-06-24 21:20:31 +02:00
mrdudz
a37a88d5bf std cbm tgi colors 2025-06-24 21:19:38 +02:00
Kugel Fuhr
7a6c60ade4 Do also sort variables to satisfy sorted_codeopt.sh. 2025-06-24 20:21:43 +02:00
mrdudz
681b49a111 initial target header files for c65 and mega65 2025-06-24 19:55:28 +02:00
mrdudz
7be14a951c initial asm includes for c65 and mega65 2025-06-24 19:33:49 +02:00
Kugel Fuhr
c0a1b1b887 Add an optimization step that removes compare instructions preceeding an RTS.
Since nothing is passed back in the flags, these instructions have no effect.
Fixes #2025.
2025-06-24 18:02:24 +02:00
mrdudz
358167556c Merge remote-tracking branch 'upstream' into tryrenaming 2025-06-24 17:51:48 +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
Bob Andrews
cd96ce96a1 Merge pull request #2733 from Russell-S-Harper/update-docn-with-cscanf
Updated documentation with cscanf
2025-06-24 17:27:08 +02:00
Russell-S-Harper
450898513c Updated doc'n with cscanf 2025-06-23 22:07:09 -04:00
Gorilla Sapiens
b2e5d3cd25 insipid formatting whack-a-mole 2025-06-23 17:51:44 +00:00