1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-29 02:55:20 +00:00
Commit Graph

3552 Commits

Author SHA1 Message Date
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
Colin Leroy-Mira
a823d90082 Separated versions 2024-04-19 07:57:47 +02:00
Colin Leroy-Mira
71d82ab5d9 Use common naming scheme for tolowerdirect 2024-03-22 17:19:26 +01:00
Colin Leroy-Mira
0c681b42ef Factorize to save 20 bytes 2024-03-19 18:07:17 +01:00
Colin Leroy-Mira
b5d259bafb Implement strcasestr as part of strstr 2024-03-18 19:52:04 +01:00
Colin Leroy-Mira
82165c1a77 Implement strcasestr 2024-03-18 19:51:50 +01:00
Bob Andrews
a372ead4de
Merge pull request #2334 from carlo-bramini/fix-sim65-1
[SIM65] Support undocumented opcodes for 6502
2024-03-10 00:37:18 +01:00
Colin Leroy-Mira
86317711e0 IIgs SCC: Rework branches to X-indexed variables
and general cleanup/commenting
2024-02-23 01:20:47 +01:00
Colin Leroy-Mira
8b71fafb84 IIgs SCC: Allow choosing 115200bps as the card allows it
Of course, that won't work full speed with the standard
IRQ-based RX. But that will allow users to setup the port
at this speed without duplicating the setup part of the
code. Up to them to add hooks to disable IRQs and read
directly in a tight asm loop.
2024-02-23 01:20:47 +01:00
Colin Leroy-Mira
3fd78208ba Disable IRQ if opening at 115200 bps 2024-02-19 19:31:47 +01:00
Colin Leroy-Mira
7a12399b39 Allow choosing 115200bps as the card allows it
Of course, that won't work full speed with the
standard IRQ-based RX. But that will allow users
to setup the port at this speed without duplicating
the setup part of the code. Up to them to add hooks
to disable IRQs and read directly in a tight asm
loop.
2024-02-19 19:31:47 +01:00
Alex Thissen
7d6f3d24d4 Changed sta (ptr1,x) to sta (ptr1)
Reset serial status on ser_close
Fixed error for saving serial state
2024-02-11 23:12:27 +00:00
Alex Thissen
8b172e05bc Applied optimization as per review 42Bastian 2024-02-11 20:59:08 +00:00
Alex Thissen
1deb9e52ae Replaced last literal value for SERCTL 2024-02-11 15:46:23 +00:00
Alex Thissen
acff429eb8 Added redeye check for SER_HS_SW handshake 2024-02-11 15:33:22 +00:00
Alex Thissen
6cf8ee8eb5 Removed baud rates from 150 and lower.
Fixed tab
Replaced uploader references to SERIAL_INTERRUPT
2024-02-10 23:19:05 +00:00
Alex Thissen
65bce9ecde Implemented mark and space checks. 2024-02-10 23:19:04 +00:00
Alex Thissen
014f85f226 Fixed baud rates 2024-02-10 23:19:04 +00:00
Alex Thissen
788ae82d30 Fixes to serial driver implementation 2024-02-10 23:19:02 +00:00
Carlo Bramini
b04d79b1da [SIM65] Support undocumented opcodes for 6502
This PR is mostly a complete rewrite of the emulator for 6502/65c02 opcodes.
It provides an easier to maintain implementation of the instructions, by using few macros rather than having hand-written code for each function.
All undocumented, previously missing opcodes for 6502 are also implemented.
The patch also includes a detailed documentation of those opcodes, for reference to developers.
This PR should fix one of the milestones listed here for the next version of CC65:

https://github.com/cc65/wiki/wiki/Before-the-next-release
2024-02-08 12:13:17 +01:00
Bob Andrews
a06431a8f9
Merge pull request #2402 from colinleroy/a-bit-of-65c02-optimisations
a BIT of 65C02 optimisations
2024-02-02 21:58:04 +01:00
Bob Andrews
eb503cc542
Merge pull request #2390 from colinleroy/implement-shifts-by-7
Implement aslax7/shlax7/asrax7/shrax7
2024-02-02 20:17:48 +01:00
Colin Leroy-Mira
1fab179cb4 a BIT of 65C02 optimisations
Use BIT immediate instead of AND when reloading A is required
afterwards.
Add an fread unit test as the optimisation touches fread.
Sprinkle a few zero page indexed while we're at it.
2024-02-02 19:45:49 +01:00
Colin Leroy-Mira
afd8ee627e Remove useless branching code in fgets 2024-01-30 19:52:48 +01:00
Colin Leroy-Mira
2b97735d5d Factorize file pointer check 2024-01-30 19:40:28 +01:00
Colin Leroy-Mira
1a5a7d67a7 Rewrite fputc in assembly
-36 bytes, -12% cycles
2024-01-30 17:19:13 +01:00
Colin Leroy-Mira
ba36071022 Rewrite fputs in assembly
-28 bytes, -1% cycles
2024-01-30 17:12:52 +01:00
Colin Leroy-Mira
7d7cf2d1e0 Implement aslax7/shlax7/asrax7/shrax7 2024-01-29 07:59:11 +01:00
Bob Andrews
51b946bf25
Merge pull request #2387 from colinleroy/sim65-implement-remove
Implement __sysremove for sim65
2024-01-28 16:53:29 +01:00
Colin Leroy-Mira
0dd7b0c3a5 Implement __sysremove for sim65
This will allow using unlink()/remove() in sim65 programs
Use it to unlink fgets' test output file
2024-01-28 13:58:57 +01:00
Bob Andrews
8682095f9f
Merge pull request #2384 from colinleroy/asm-realloc
Rewrite realloc in asm
2024-01-27 00:28:17 +01:00
Colin Leroy-Mira
aa6f850b8d Rewrite gets in assembler
+19 bytes if used alone, because it pulls in fgets, but as code is
factorized, -128 bytes in programs using both fgets and gets.
2024-01-26 20:29:17 +01:00
Colin Leroy-Mira
a8b870555e Rewrite realloc in asm
-80 bytes, -39% cycles
2024-01-26 20:25:59 +01:00