1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00
Commit Graph

3496 Commits

Author SHA1 Message Date
Mariano Dominguez
658c1ad711 only missing space 2023-01-05 21:33:40 -08:00
Mariano Dominguez
85f657b35e missing space 2023-01-05 21:30:31 -08:00
Mariano Dominguez
4e8b18c035 missing tab 2023-01-05 21:29:33 -08:00
Mariano Dominguez
29a80065cc fix tab indentation 2023-01-05 21:27:54 -08:00
Mariano Dominguez
30df733c31 remove dangling spaces 2023-01-05 21:20:16 -08:00
Mariano Dominguez
fa05294054 add newline for style 2023-01-05 21:16:58 -08:00
Mariano Dominguez
f9024d132a add sound command
this behives the same as BASIC

sound(voice, pitch, distortion, volume)
2023-01-05 21:12:58 -08:00
Rutger van Bergen
ae23e47eb5
Merge branch 'cc65:master' into master 2022-12-26 13:57:10 +01:00
Oliver Schmidt
1daa445310 Fixed recently introduced addressing mode bug. 2022-12-22 22:09:23 +01:00
Oliver Schmidt
d90c7e9853 Introduced the notion of a standard serial driver.
There's no target with more than one serial driver (and I don't see that change anytime soon) so it's a no-brainer to apply the standard driver concept to serial drivers.
2022-12-22 18:13:24 +01:00
mrdudz
d6c37a757d Merge branch 'master' into underscores 2022-11-19 17:11:11 +01:00
Rutger van Bergen
2b07204952
Merge branch 'cc65:master' into kim1 2022-09-19 20:03:23 +02:00
Rutger van Bergen
cb8cb876ec Add documentation, make capitalization uniform 2022-09-19 19:56:57 +02:00
Oliver Schmidt
5493c9e7c2
Don't empty the Receive Data Register on filling the Transmit Data Register
The Receive Data Register and the Transmit Data Register share share a single address. Accessing that address with STA abs,X in order to fill the Transmit Data Register causes a 6502 false read which causes the Receive Data Register to be emptied.

The simplest way to work around that issue - which I chose here - is to move the base address for all ACIA accesses from page $C0 to page $BF. However, that adds an additional cycle to all read accesses. An alternative approach would be to only modify the single line `sta ACIA_DATA,x`.
2022-09-08 17:11:30 +02:00
polluks2
446a785f95
Don't hide errors in error handling
You don't want the low byte, see grep _ERR_ libsrc/tgi/*
2022-09-02 11:55:54 +02:00
mrdudz
5bda57de87 add extra underscore to _bzero, add a test for bzero/memset 2022-08-29 23:20:48 +02:00
mrdudz
3b03a96375 add underscores to _poserror and _stroserror 2022-08-29 21:06:48 +02:00
mrdudz
89c08dc6d4 extra underscores for _randomize and _swap 2022-08-29 20:52:35 +02:00
mrdudz
b09024aa32 add extra underscore to heap stuff 2022-08-29 19:55:48 +02:00
mrdudz
df4b6f9d14 remove extra spaces 2022-08-28 22:37:33 +02:00
mrdudz
54aff47513 fix some errno related stuff, "make all" works again 2022-08-28 22:09:44 +02:00
mrdudz
2dabb65ee0 fix errno related underscores in all libsrc/*.s files 2022-08-28 21:52:53 +02:00
mrdudz
6ba3deffa4 use __clocks_per_sec instead of _clocks_per_sec 2022-08-28 20:22:25 +02:00
mrdudz
f70020a2b8 use __sig_ign and __sig_dft instead of _sig_ign and _sig_dft 2022-08-28 20:18:34 +02:00
mrdudz
9246775ebe use __afailed instead of _afailed 2022-08-28 20:08:13 +02:00
mrdudz
8e5f6b822d fix setjmp.h 2022-08-28 20:05:11 +02:00
Bob Andrews
623f047397
Merge pull request #1509 from mrdudz/rremd
C64 Retro Replay EMD driver
2022-08-11 01:11:16 +02:00
ZeroByteOrg
582e43931d import RDTIM symbol instead of hard-wiring it here 2022-08-08 15:21:30 -05:00
ZeroByteOrg
9b3b652fa5 Switched to using tmp1 instead of self-mod to store the jiffies value 2022-08-08 15:17:28 -05:00
ZeroByteOrg
78870219a4 CX16 waitvsync uses Kernal API to retreive jiffies 2022-08-05 17:44:18 -05:00
polluks2
7a93d3c707
Shorter isascii 2022-08-04 00:25:04 +02:00
Bob Andrews
6239fbe18c
Revert "rename '_poserror' to '__poserror'" 2022-07-24 18:14:21 +02:00
Bob Andrews
c642c07ea0
Merge pull request #1808 from acqn/LibFix
[Lib] Removed an extra colon from libsrc/dbg/dbg.c
2022-07-24 17:59:57 +02:00
acqn
8485d59aa6 Removed an extra colon from libsrc/dbg/dbg/c. 2022-07-24 20:58:10 +08:00
mrdudz
8e19d84cb4 detect number of RAM pages 2022-07-24 02:47:02 +02:00
Christian Groessler
758d9466c0 rename '_poserror' to '__poserror'
The old name could be non-conforming to the C standard. The new name
is definitely in the "implementation name space".

See issue #1796.
2022-07-24 00:33:56 +02:00
mrdudz
3cb3d5dad3 cleanup 2022-07-21 03:45:40 +02:00
mrdudz
86091ac6bf some cleanup 2022-07-21 03:43:54 +02:00
mrdudz
a55807f682 cleanup 2022-07-21 03:30:47 +02:00
mrdudz
f614f3b9e2 reserve enough space for the longest string we can expect 2022-07-21 03:24:17 +02:00
Stephan Mühlstrasser
8ec1f76b9c Fix switched meaning of '\n' and '\r'
When conio was implemented for the osic1p target, the cbm
target was used as a blueprint. But it was overlooked that the
cbm target encodes CR as 0x0A and LF as 0x0D, while the
osic1p target uses the ASCII encoding of CR and LF. Therefore
conio output of '\n' moved the active position to the start of the
line and '\r' moved the active position to the next line.

This change implements the correct semantics of '\n' and '\r'
in conio for the osic1p target.

Fixes #1747.
2022-07-21 03:22:52 +02:00
mrdudz
8e787c0c0a remove +x flag 2022-07-21 03:22:52 +02:00
polluks2
133d703964 smarter manufacturer
some kind of promotion
2022-07-21 03:22:52 +02:00
mrdudz
db2dfc9226 must include stdarg.h to use varargs 2022-07-21 03:22:52 +02:00
rofl0r
6eeaf7485c build: allow empty prefix
there was some concern that this will break windows' way of doing
file lookups relatively from the binary, rather than via hardcoded
locations, but so far each occurence adding e.g. "CA65_INC" to
the pathsearch is already shielded with an #ifndef _WIN32.

addressing #1726
2022-07-21 03:22:52 +02:00
jede
e9bf0dd64f fix space 2022-07-21 03:22:52 +02:00
jede
16d896b73f fix mkdir 2022-07-21 03:22:52 +02:00
jede
e1fbb8465b fix spaces 2022-07-21 03:22:52 +02:00
jede
244da9c911 missing fd_management and cleaning 2022-07-21 03:22:52 +02:00
Greg King
55ea831e2d Upgraded the cx16 library to the Commander X16 Kernal ROM's prerelease 39. 2022-07-21 03:22:52 +02:00
jede
84e2fee9a4 fix bss 2022-07-21 03:20:45 +02:00
jede
164acad6cb fix space 2022-07-21 03:20:45 +02:00
jede
ebcf6ec52d FIX space 2022-07-21 03:20:45 +02:00
jede
c38504b06d cgetc export data now 2022-07-21 03:20:45 +02:00
Karri Kaksonen
3922cccafb Speed up the cursor a bit 2022-07-21 03:20:45 +02:00
Karri Kaksonen
249a04dbde Move cursor IRQ processing to when the screen is being drawn 2022-07-21 03:20:45 +02:00
Karri Kaksonen
7684918112 Too much time in irq fix 2022-07-21 03:20:45 +02:00
Karri Kaksonen
4ee3e59f19 Fix race condition 2022-07-21 03:20:45 +02:00
Bob Andrews
7f9909ef81 use jmp instead of jsr/rts 2022-07-21 03:20:45 +02:00
Karri Kaksonen
d8b8368e4e Add documentation 2022-07-21 03:20:45 +02:00
Karri Kaksonen
9ad2eea146 Add color setup 2022-07-21 03:20:45 +02:00
Karri Kaksonen
29b9a9f615 Rename font 2022-07-21 03:20:45 +02:00
Karri Kaksonen
5d0f064edc Not sharing umula0 and fix cursor bug 2022-07-21 03:20:45 +02:00
Karri Kaksonen
627ec17b14 Fix typo 2022-07-21 03:20:45 +02:00
Karri Kaksonen
4f195d46f9 Use consisten line lenght values 2022-07-21 03:20:45 +02:00
Karri Kaksonen
3954e9bccb Fix wrong screen in 2022-07-21 03:20:45 +02:00
Karri Kaksonen
9fab67761f Fix tabs 2022-07-21 03:20:45 +02:00
Karri Kaksonen
2e51b2b17c Fix tabs 2022-07-21 03:20:45 +02:00
Karri Kaksonen
f2f358262e Add mono conio files 2022-07-21 03:20:45 +02:00
Karri Kaksonen
b8c450cb46 Add mono conio files 2022-07-21 03:20:45 +02:00
Karri Kaksonen
bb20af1695 Add info 2022-07-21 03:20:45 +02:00
Karri Kaksonen
2db4592029 Add info 2022-07-21 03:20:45 +02:00
Karri Kaksonen
190911e26f Add x=0 to textcolor 2022-07-21 03:20:45 +02:00
Karri Kaksonen
a2aaeb0d1d Fix tabs 2022-07-21 03:20:45 +02:00
Karri Kaksonen
057fd866da Remove obsolete file and fix tabs 2022-07-21 03:20:45 +02:00
Karri Kaksonen
02fbcad697 Split files 2022-07-21 03:20:45 +02:00
Karri Kaksonen
f0e16514e0 Split files 2022-07-21 03:20:45 +02:00
Karri Kaksonen
e0c7880e34 Split files 2022-07-21 03:20:45 +02:00
Karri Kaksonen
6a6581815d Import conio automatically 2022-07-21 03:20:45 +02:00
Karri Kaksonen
0f404280a1 Change attributes on gotoxy 2022-07-21 03:20:45 +02:00
Karri Kaksonen
141b887d4d Change order of gotox gotoy for correct x after newline 2022-07-21 03:20:45 +02:00
Karri Kaksonen
770b22e14d Remove duplicate code 2022-07-21 03:20:45 +02:00
Karri Kaksonen
7e7f9ffa58 Add blinking cursor 2022-07-21 03:20:45 +02:00
Karri Kaksonen
ff8d2e84bf Fix screen index bug 2022-07-21 03:20:45 +02:00
Karri Kaksonen
1d7bcb9348 Cleanup 2022-07-21 03:20:45 +02:00
Karri Kaksonen
3ba6dd0a4a Use local multiply for cursorzone calculations 2022-07-21 03:20:45 +02:00
Karri Kaksonen
9d4f1a0415 Add local multiply routine 2022-07-21 03:20:45 +02:00
Karri Kaksonen
c6b9a012c8 Allocate own zp pointer for conio implementation 2022-07-21 03:20:45 +02:00
Karri Kaksonen
60fffb289a Allocate own zp pointer for conio implementation 2022-07-21 03:20:45 +02:00
Karri Kaksonen
0eaf3eef6d Align font to 256 bytes 2022-07-21 03:20:45 +02:00
Karri Kaksonen
0f250d06b9 Fix conflicts with some conio routines 2022-07-21 03:20:45 +02:00
Karri Kaksonen
b8dbe0254a Add cputc method 2022-07-21 03:20:45 +02:00
Karri Kaksonen
1a2207ffc9 Add setcursor method 2022-07-21 03:20:45 +02:00
Karri Kaksonen
ebd2e5085a Remove export 2022-07-21 03:20:45 +02:00
Karri Kaksonen
7f1e69f5e0 Add cursor processing 2022-07-21 03:20:45 +02:00
Karri Kaksonen
f576764214 Remove cursor from conio init 2022-07-21 03:20:45 +02:00
Karri Kaksonen
8b06ff18c0 Don't set cursor in clrscr 2022-07-21 03:20:45 +02:00
Karri Kaksonen
fce4bc0c58 Change order to make decoding easier 2022-07-21 03:20:45 +02:00
Karri Kaksonen
9775a71433 Use question mark instead of exclamation mark 2022-07-21 03:20:45 +02:00
Karri Kaksonen
8f86d5533b Remove clrscr from init 2022-07-21 03:20:45 +02:00
Karri Kaksonen
7fc69a34ac Change blue to white 2022-07-21 03:20:45 +02:00
Karri Kaksonen
ce313922d1 Change blue to white 2022-07-21 03:20:45 +02:00
Karri Kaksonen
646997ed43 Add the build tools for the font 2022-07-21 03:20:45 +02:00
Karri Kaksonen
f5c24be572 Fix cursor character 2022-07-21 03:20:45 +02:00
Karri Kaksonen
ff0ddcb52b Add the font160.png 2022-07-21 03:20:45 +02:00
Karri Kaksonen
e4c1bf15da Add basic conio buffer 2022-07-21 03:20:45 +02:00
mrdudz
c6f23eefc8 remove dangling spaces 2022-07-21 03:20:44 +02:00
mrdudz
2cc46e11d3 add comment explaining what the empty file is about 2022-07-21 03:20:44 +02:00
mrdudz
be22b8ad4d add missing newline to a bunch of files 2022-07-21 03:20:44 +02:00
mrdudz
cbbdd3d9cf remove a bunch of TABs 2022-07-21 03:20:44 +02:00
Karri Kaksonen
f92e1f2e3c Change polarity for 2600 buttons 2022-07-21 03:20:44 +02:00
Karri Kaksonen
851c65344c Add comments 2022-07-21 03:20:44 +02:00
Karri Kaksonen
3ceae59857 Add stdjoy driver 2022-07-21 03:20:44 +02:00
Karri Kaksonen
cdf83d2a26 Fixed logic flaw 2022-07-21 03:20:44 +02:00
Karri Kaksonen
14956f3b15 Add atari7800-stdjoy 2022-07-21 03:20:44 +02:00
Fabrizio Caruso
1effa5944b Optimize delete cycles 2022-07-21 03:20:44 +02:00
Fabrizio Caruso
3050e3afcd Use lsr 2022-07-21 03:20:44 +02:00
Fabrizio Caruso
fc6548db5c Fix color 1 and 2 (grey/green levels) 2022-07-21 03:20:44 +02:00
Fabrizio Caruso
82cfbb5fa8 Fix Gamate CONIO: non-solid characters bug 2022-07-21 03:20:44 +02:00
Karri Kaksonen
6f11c4ffad Export paldetected 2022-07-21 03:20:44 +02:00
Karri Kaksonen
ef13a470e8 Use proper mnemonics 2022-07-21 03:20:44 +02:00
Karri Kaksonen
fd305c1e31 Separate machine detection from crt0 and put it in get_tv 2022-07-21 03:20:44 +02:00
Karri Kaksonen
cf8c7ee28d Split clock file to components 2022-07-21 03:20:44 +02:00
Karri Kaksonen
218c98d4d5 Add get_tv.s 2022-07-21 03:20:44 +02:00
Karri Kaksonen
7c12916718 Add irq handling, PAL/NTSC detection and clock() 2022-07-21 03:20:44 +02:00
Karri Kaksonen
76fae9da82 Add irq handling, PAL/NTSC detection and clock() 2022-07-21 03:20:44 +02:00
Karri Kaksonen
d099df0533 Clear hw palette and set AUDIN low at startup 2022-07-21 03:20:44 +02:00
Karri Kaksonen
f7c59ee1ec Add CARTSIZE to cfg file for configuring the a78 header. Add descriptions of usage. 2022-07-21 03:20:44 +02:00
Karri Kaksonen
d586c83dae Add exehdr 2022-07-21 03:20:44 +02:00
Karri Kaksonen
dc75972e9e Add exehdr 2022-07-21 03:20:44 +02:00
Karri Kaksonen
3792347d5d Add crt0.s and ctype.s 2022-07-21 03:20:44 +02:00
Karri Kaksonen
e653204ffe Add target atari7800 2022-07-21 03:20:44 +02:00
Karri Kaksonen
4f9b30d50d Fix black index in tgi_colors.s 2022-07-21 03:20:44 +02:00
Karri Kaksonen
b252059369 Mark index 0 as TRANSPARENT. Let palette start from index 1 2022-07-21 03:20:40 +02:00
Jeff Tranter
ba13ba32a1 Fix some commonly made spelling errors in comments. 2022-07-21 03:18:13 +02:00
Greg King
8bf9766e9e Added to the telestrat library the name of the standard dynamic TGI driver. 2022-07-21 03:13:10 +02:00
polluks
ad95ba7854 Added tail call optimization 2022-07-21 03:13:10 +02:00
Greg King
103d3ccfcd Fixed the cart directory build code to handle even simple programs.
Carts can be built containing programs that don't link some segments.
2022-07-21 03:13:10 +02:00
polluks
33bb1a22ff Removed the colour purple
This commit may break compatibility.
2022-07-21 03:13:10 +02:00
polluks
d6349e0f92 Save a few bytes 2022-07-21 03:13:10 +02:00
polluks
5f151b1316 Revert commits 2022-07-21 03:13:10 +02:00
Sven Michael Klose
3ee9b35080 Fix strnlen(). 2022-07-21 03:13:09 +02:00
Sven Michael Klose
88fdaeb490 Add standard C library function strnlen(). 2022-07-21 03:13:09 +02:00
Greg King
baa582ac0b Made cbm_open() be more efficient.
The fastcall argument doesn't need to be put on a stack.  SETNAM can be called before SETLFS.
2022-07-21 03:13:09 +02:00
Greg King
e1ef1325ec Put the alignment decrement code back into posix_memalign().
Without that code, the function returns a very broken pointer.
2022-07-21 03:13:09 +02:00
Oliver Schmidt
152241f26c Don't rely on (actually changed) unspecified compiler behavior. 2022-07-21 03:13:09 +02:00
polluks
687c8052ae Save a few bytes 2022-07-21 03:13:09 +02:00
mrdudz
16bf472e66 reserve enough space for the longest string we can expect 2022-07-13 23:10:19 +02:00
Dave Plummer
8f9777d9e0 Fix ushot overflow, capitalization 2022-06-06 15:14:01 -07:00
Dave Plummer
799aec23a6 Add KIM-1 Support 2022-06-04 13:00:48 -07:00