1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-16 02:10:52 +00:00
Commit Graph

10689 Commits

Author SHA1 Message Date
Colin Leroy-Mira
3c17c13357 Address latest comments 2023-10-03 18:34:22 +02:00
Colin Leroy-Mira
996a2659d5 Address code review comments 2023-10-03 18:34:22 +02:00
Colin Leroy-Mira
e16a5e0dbe Add Apple IIgs serial driver 2023-10-03 18:34:22 +02:00
Colin Leroy-Mira
330b1ab3f9 Remove useless comments 2023-10-03 13:55:10 +02:00
Colin Leroy-Mira
df4902157a Cleanup coding style a bit 2023-10-03 13:55:10 +02:00
Colin Leroy-Mira
4ff917816e Apple2: Always copy cmdline
Otherwise, the last exec() cmdline lingers around for the next exec("file", NULL).
2023-09-29 10:51:53 +02:00
Bob Andrews
4944c92f9a
Merge pull request #2202 from polluks/patch-8
Update funcref cx16
2023-09-22 23:10:34 +02:00
Stefan
b81e5d00f2
Update funcref cx16 2023-09-22 16:43:03 +02:00
Colin Leroy-Mira
e3bc143f27 Another two bytes saved 2023-09-22 11:51:29 +02:00
Bob Andrews
dd833125a8
Merge pull request #2198 from acqn/DeclFix
[cc65] Fixed check for conflicting extern vs no-linkage/static declarations in functions
2023-09-21 00:35:35 +02:00
Bob Andrews
c82e877451
Merge pull request #2188 from colinleroy/serial-kernel-fix-driver-lifecycle
Serial kernel: Fix driver lifecycle
2023-09-21 00:34:09 +02:00
Bob Andrews
6bc68b9763
Merge pull request #2195 from polluks/kim
Added KIM-1 refs
2023-09-21 00:19:22 +02:00
Bob Andrews
40b0315be9
Merge pull request #2196 from ToboterXP/add_fx
Added FX registers to cx16.h
2023-09-21 00:18:00 +02:00
ToboterXP
0815c8890b Added semicolon 2023-09-17 22:57:42 +02:00
ToboterXP
d251bd46c8 Removed dangling spaces 2023-09-17 22:54:48 +02:00
ToboterXP
3626c94c97 Added FX registers to cx16.h 2023-09-17 22:48:47 +02:00
acqn
39abd233fe Fixed check for conflicting extern vs no-linkage/static declarations in functions. 2023-09-17 23:47:22 +08:00
Stefan
e145145fbb
Added KIM-1 refs
some clean-up
2023-09-16 21:01:37 +02:00
Bob Andrews
5ed3108eea
Merge pull request #2190 from polluks2/patch-12
optimisation scandisplay
2023-09-15 15:49:11 +02:00
polluks2
2e9843b32d
optimisation scandisplay 2023-09-15 10:35:36 +02:00
Colin Leroy-Mira
3fc074014e Serial kernel: Fix driver lifecycle
- Make sure we don't install a driver on top of another one
- Make sure we don't uninstall a driver twice
- Make sure we uninstall a driver if needed at exit
2023-09-12 20:58:21 +02:00
Colin Leroy-Mira
aa5ee8423a Clearer wording for the firmware check 2023-09-11 08:31:15 +02:00
Colin Leroy-Mira
38f7daf40e Make sure not to load ACIA driver on IIgs' Z8530
The Pascal Firmware Protocol Bytes ID are not enough to differentiate an SSC card from a IIgs serial firmware:
http://www.1000bit.it/support/manuali/apple/technotes/misc/tn.misc.08.html

Loading a2(e).ssc.ser on a IIgs succeeds, then goes to limbo when one tries to use the serial port.

Check first byte on the slot's firmware in addition to the four existing ones, as it's supposed to be $2C (BIT instruction) on an SSC card, and $EF (65C816 SEP instruction) on the IIgs' serial firmware (ROM revisions 0, 1, 3).
2023-09-11 08:31:15 +02:00
Bob Andrews
043590c971
Merge pull request #2182 from colinleroy/add-ntohs
Add ntohs/htons and ntohl/htonl
2023-09-08 18:47:09 +02:00
Bob Andrews
caf8186565
Merge pull request #2166 from colinleroy/rfc-serial-optimisation
Possible serial driver optimisations
2023-09-08 18:42:39 +02:00
Bob Andrews
537aa665cf
Merge pull request #2006 from bbbradsmith/ca65_jmp_abs_wrap_error
jmp (abs) wrap warning promoted to an error, suppressed on 65C02/etc
2023-09-08 18:26:55 +02:00
Colin Leroy-Mira
9e5620f127 Fix coding-style on header 2023-09-07 23:06:51 +02:00
Colin Leroy-Mira
9669710cc3 Fix usage of __OPT_i__ 2023-09-07 21:36:39 +02:00
Colin Leroy-Mira
cbc5603d63 Inline ntohs/htons as a macro if -i is passed 2023-09-07 21:00:30 +02:00
Colin Leroy-Mira
a90aa57510 Address Oliver's comments 2023-09-07 16:48:56 +02:00
Colin Leroy-Mira
734541ee05 Serial: Optimize SER_GET
There is no need to TryToSend before getting the character. We
send bytes during SER_PUT, and if interrupted during sending, we
still try to do it at the beginning of the next SER_PUT.
2023-09-07 07:14:01 +02:00
Colin Leroy-Mira
a89a311abf Serial: Micro-optimisation for apple2enh
On 65C02 we can spare one cycle on sta (abs); we also
not have to care about the 6502 false reads
2023-09-07 07:13:59 +02:00
Colin Leroy-Mira
e8f5ad2471 Serial: Optimize SER_PUT
We don't need to reload SendFreeCnt if we don't jsr TryToSend.
2023-09-07 07:13:57 +02:00
Colin Leroy-Mira
89af42e5cb Serial: Optimize SER_IRQ
Apple2 and Atmos have Index in X, but can still use it for the
best-case path as long as we reload it in the worst-case part
(when we assert flow control).
Also, standardize the free space to trigger flow control to 32
characters left (compare with RecvFreeCnt before decrement)
2023-09-07 07:13:54 +02:00
Colin Leroy-Mira
3f3b6123b9 Serial: Optimize TryToSend
We don't need to reload SendFreeCnt each time we loop to wait
for the ACIA to be ready.
2023-09-07 07:13:48 +02:00
Colin Leroy-Mira
dfe7562f76 Add ntohs, htons, ntohl, htons. 2023-09-07 07:03:34 +02:00
Bob Andrews
c674b7ced4
Merge pull request #2183 from polluks2/patch-10
Update README.md
2023-09-06 19:40:58 +02:00
polluks2
1a6e20ca6e
Update README.md 2023-09-06 14:47:14 +02:00
polluks2
30b80548d4
Update README.md
For the sake of completeness
2023-09-06 12:16:14 +02:00
Bob Andrews
e52e350498
Merge pull request #2180 from polluks2/patch-9
Added missing detail
2023-09-05 19:51:41 +02:00
Bob Andrews
84a01816fd
Merge pull request #2181 from bbbradsmith/init-revert
change INIT back to rw for configurations that needed it
2023-09-05 19:42:57 +02:00
bbbradsmith
d4c4786ff0 undo change of INIT to bss for configurations that were also using rw to reserve space, add a comment documenting the reason 2023-09-05 00:24:18 -04:00
polluks2
e28e32129a
Added missing detail 2023-09-04 20:38:05 +02:00
Bob Andrews
7eaa5c507f
Merge pull request #2177 from polluks2/patch-11
Don't mix apple2 with apple2enh
2023-09-04 20:36:31 +02:00
Bob Andrews
870581a4d4
Merge pull request #2174 from colinleroy/conio-65c02-optimisations
Conio: 65c02 optimisations
2023-09-04 18:00:23 +02:00
Bob Andrews
980727d62d
Merge pull request #2178 from polluks2/patch-9
Fixed typo
2023-09-04 17:58:47 +02:00
polluks2
4ebc3b8b04
Don't mix apple2 and apple2enh 2023-09-03 20:47:48 +02:00
Bob Andrews
16e90187e8
Merge pull request #2163 from bbbradsmith/init-bss
INIT segment definitions should be consistent, and bss is the appropriate semantic type
2023-09-03 00:30:44 +02:00
Colin Leroy-Mira
8a140e6503 Conio: 65c02 optimisations
cputc: -2 cycles per char, -2 cycles per carriage return
cputs: -5 cycles per char, -3 cycles on cputsxy
vcprintf: -6 cycles per char
2023-09-02 12:44:53 +02:00
Bob Andrews
d70c902a02
Merge pull request #2170 from colinleroy/build-libs-with-debug-info
Build libs with debug symbols
2023-09-01 17:58:17 +02:00