Stefan
46b2f95ac8
comment
2025-01-31 20:56:59 +01:00
Stefan
fb12363a6a
Fixed cassette boot file header #2600
2025-01-31 20:26:35 +01:00
Colin Leroy-Mira
adfb42bfa6
Rewrite rewind in assembly
2025-01-01 14:32:07 +01:00
Colin Leroy-Mira
50cccc2c3a
Add lseek to sim6502 paravirt
2025-01-01 14:32:03 +01:00
Sidney Cadot
8ee93f7e5f
Fixed indentation inside comment.
2024-12-18 09:04:20 +01:00
Sidney Cadot
ceac9f87ba
Temporary fix for fgets() not using target-specific newline.
...
This patch provides a temporary fix for the issue where the fgets()
function did not use the target-specific newline character to
decide if it has reached the end of the line. It defaulted to the
value $0a, which is the newline character on only some targets.
The Atari, for example, has newline character $9b instead.
This patch is ugly, because the ca65 assembler that is used for
fgets doesn't currently accept C-type character escape sequences
as values. Ideally we'd be able to write:
cmp #'\n'
And this would end up being translated to a compare-immediate
to the target-specific newline character.
Since that is impossible, this patch substitutes the equivalent,
but ugly, code:
.byte $c9, "\n"
This works because $c9 is the opcode for cmp #imm, and the "\n"
string /is/ translated to the platform-specific newline character,
at least when the 'string_escapes' feature is enabled.
2024-12-18 07:44:52 +01:00
Bob Andrews
a53524b9de
Merge pull request #2558 from polluks/cpp
...
Clean-up preprocessor syntax
2024-12-15 23:02:35 +01:00
Colin Leroy-Mira
852b622c43
Apple2: Don't forcefully re-enable IRQ
...
Avoid enabling IRQ after disabling them in driver code, remember
previous state instead (in case user had them disabled already).
2024-12-09 19:01:00 +01:00
Stefan
0f6b427170
Update strftime.c
2024-12-09 18:37:02 +01:00
Colin Leroy-Mira
21030c22a0
Apple2: Rewrite rewinddir() in assembly
2024-11-17 11:03:58 +01:00
Colin Leroy-Mira
f663ee428d
Apple2: Rewrite readdir() and closedir() to assembly
2024-11-17 11:03:58 +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
Colin Leroy-Mira
819a314508
Apple2: Rewrite opendir in assembly
...
58 bytes size gain
2024-11-09 18:17:30 +01:00
rumbledethumps
e373aa2d3f
Merge branch 'cc65:master' into master
2024-09-29 18:36:34 -07:00
Kugel Fuhr
efa2020d93
Improved/fixed the time() function:
...
- When the underlying clock_gettime function returned an error, the value
returned via *timep was wrong.
- Reduced code size by 7 bytes.
- Don't suck in ldeaxi.
2024-09-12 09:14:57 +02:00
Bob Andrews
31a0d5cc40
Merge pull request #2503 from colinleroy/master
...
Optimize stpcpy's size and speed
2024-09-08 16:17:14 +02:00
Bob Andrews
0be5f8f9e1
Merge pull request #2508 from polluks/waitvsync
...
[ATMOS] waitvsync
2024-09-08 16:14:51 +02:00
Bob Andrews
e6ff8d9301
Merge pull request #2510 from polluks/better_waitvsync
...
Faster waitvsync
2024-09-08 16:09:23 +02:00
coronax
838c8b48b7
Set the clock id to CLOCK_REALTIME when calling clock_gettime.
...
Previously, time() allocated stack space for the clock id argument, but didn't actually set a value.
2024-09-07 23:27:54 -05:00
Colin Leroy-Mira
55d3a6ea39
Optimize stpcpy's size and speed
2024-09-07 21:24:53 +02:00
Stefan
461554e616
Update waitvsync.s
2024-09-07 19:17:00 +02:00
Stefan
f5e434c6c8
Update waitvsync.s
2024-09-07 19:14:59 +02:00
Stefan
be5a9f92ec
oops
2024-09-07 18:51:20 +02:00
Stefan
b355620939
Optimise waitvsync.s
2024-09-07 18:49:53 +02:00
Stefan
38f54875d0
Add files via upload
2024-09-07 17:06:45 +02:00
Colin Leroy-Mira
622793e343
Apple II: Move _exit out of STARTUP segment
2024-08-25 22:14:45 +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
Bob Andrews
8b3625847d
Merge pull request #2466 from SvenMichaelKlose/reformatted_doc_contributing
...
Make document human-readable and split out name clashes section.
2024-07-28 15:56:58 +02:00
karri
2ea216a521
Merge branch 'fix-joystick' of ssh://github/karrika/cc65 into fix-joystick
2024-07-20 13:18:16 +03:00
karri
19899022af
Add support for different joysticks
2024-07-20 13:14:22 +03:00
Sven Michael Klose
d3e0f7b392
Make document human-readable and split out name clashes section.
...
In hope to reduce the pull request comment ping-pong.
2024-07-18 10:00:16 +02:00
Bob Andrews
03d824e13b
Merge pull request #2464 from SvenMichaelKlose/stpcpy
...
Add stpcpy().
2024-07-16 01:47:11 +02:00
Sven Michael Klose
aed94d2dae
Fix code style.
...
Have type, function name and argument declaration on a single line.
2024-07-16 01:33:48 +02:00
Bob Andrews
1d1dd425c1
Merge pull request #2448 from Commodore64128/master
...
Commander X16 640x480 tgi loadable graphics driver
2024-07-12 12:40:43 +02:00
Sven Michael Klose
581b79e0b9
Add stpcpy().
...
Like strcpy() but returning pointer to ending zero of copied string.
2024-07-07 14:04:49 +02:00
Bob Andrews
0541b65aa4
Merge pull request #2434 from colinleroy/strcasestr
...
Implement strcasestr
2024-06-22 15:00:17 +02:00
xlar54
3d5fd0489e
replaced constant
2024-06-19 23:52:25 -05:00
xlar54
3b494ad6f2
alignment fixes
2024-06-19 23:50:54 -05:00
xlar54
6098ac2788
fix for getdefpalette
2024-06-16 16:06:38 -05:00
xlar54
6dbf5f528a
argh dangling spaces
2024-06-16 14:51:53 -05:00
xlar54
5caed9a15f
fixed setpalette
2024-06-16 14:46:00 -05:00
xlar54
550f94b773
make setpalette return error
2024-06-13 23:13:05 -05:00
xlar54
60f9081ea4
some comment alignment
2024-06-13 21:40:51 -05:00
xlar54
0837f9c25f
spaces
2024-06-13 21:29:37 -05:00
xlar54
b7f4c17460
dangling spaces
2024-06-13 21:23:50 -05:00
xlar54
d24a8d7e61
fixed newline
2024-06-13 21:09:02 -05:00
xlar54
91cdc0d705
removed unneeded code
2024-06-12 16:45:24 -05:00
xlar54
2c4aca43df
fixed some text alignment
2024-06-12 16:40:23 -05:00
xlar54
3ea0ded65d
initial
2024-06-12 16:23:30 -05:00