1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-03 22:29:31 +00:00
Commit Graph

230 Commits

Author SHA1 Message Date
Oliver Schmidt
d242afdf7e Added sprintf() test contributed by Ullrich von Bassewitz.
Comment from the author:

Some may remember that there was a problem with printf reported a long time
ago. I got curious and over the weekend, I wrote a program to test printf. Or
better: The underlying formatting code, which is used for the whole printf()
family of functions including cprintf and sprintf.

The result is what made me say "oops": The program tests 377 different
conversions. The cc65 printf implementation fails in 144 cases. In 31 of these
cases, it fails so badly that it outputs screens of garbage, or even crashes
the machine, so I had to disable these tests to proceed.

Please note that you can compile the code with gcc for x86, but it will show
failures. This is because the expected results are hardcoded and the integer
sizes of gcc are different, so the conversion results won't match the ones
expected in the code.
2013-07-27 17:21:07 +02:00
Christian Groessler
1baca81341 add "tinyshell" test program for file operations 2013-07-24 15:05:25 +02:00
Oliver Schmidt
83280e1ee2 Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__. 2013-06-17 21:34:08 +02:00
Oliver Schmidt
98c47d1877 Introduced target 'atarixl'.
The target 'atarixl' is to be used for Atari XL (and better) machines.
It will disable the OS ROM and enable the Shadow RAM available on
those machine.

Note: This commit is only the inital step towards for this goal that just
replicates the target 'atari' as a starting point!
2013-05-28 21:56:37 +02:00
Oliver Schmidt
85885001b1 Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
Oliver Schmidt
815854c514 Removed unmaintained Makefile and file lists. 2013-04-28 22:50:09 +02:00
uz
640460deb5 Fixed problems reported by Greg King.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5819 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-09-06 20:36:35 +00:00
uz
18f22506ba Added a test program to test the 16 bit shift ops.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5782 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-07-12 21:11:21 +00:00
uz
e92356cb36 Added the test program for the POSIX directory routines.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5686 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-06-06 18:31:58 +00:00
ol.sc
ed92935ef7 Removed '.c65' from include file name.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5509 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-02-09 09:13:34 +00:00
ol.sc
68589fc963 Adjusted resource file to recent syntax changes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5378 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-01-04 15:24:18 +00:00
ol.sc
6ff1d8314d Moved GEOS VLIR assembler sample from 'samples' to 'testcode' because:
- It relies on include files which are not part of the cc65 distribution (but only present in the cc65 source tree).
- An upcoming GEOS VLIR C sample will obsolete it - as sample.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5316 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-12-27 00:25:17 +00:00
ol.sc
b9b6657c29 Adjusted language and TABs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5315 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-12-26 23:50:55 +00:00
cpg
d8dd221f35 change my email addr from cpg@aladdin.de to chris@groessler.org
git-svn-id: svn://svn.cc65.org/cc65/trunk@4977 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-02-26 22:15:24 +00:00
uz
57bd3bb346 Added a test program for division and modulo operation.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4906 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-01-11 17:19:16 +00:00
uz
3afb4e4e94 Added getopt. The implementation is based on a public domain source,
originally written by Henry Spencer and supplied by Harald Arnesen.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4737 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-07-10 11:28:02 +00:00
ol.sc
9c49513d80 Added support for several machines.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4547 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-01-08 23:37:25 +00:00
ol.sc
b94dfc9025 Added support for the Apple2 machines.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4525 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-12-13 11:16:38 +00:00
uz
dc977737aa Patch contributed by Greg King:
1. Implements a real progress bar.
2. Decomposes the timer's result.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4496 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-12-02 15:15:49 +00:00
cpg
644d44bcae updated with defdev.c and scrcode.s
git-svn-id: svn://svn.cc65.org/cc65/trunk@4494 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-11-26 18:22:03 +00:00
cpg
38a061e439 initial check-in
git-svn-id: svn://svn.cc65.org/cc65/trunk@4493 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-11-26 18:19:35 +00:00
cpg
001b557ff6 include unistd.h -- fix by Daniel Serpell
git-svn-id: svn://svn.cc65.org/cc65/trunk@4490 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-11-25 17:59:55 +00:00
uz
b0b8503230 Fixed a comment
git-svn-id: svn://svn.cc65.org/cc65/trunk@4221 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-24 17:09:50 +00:00
uz
a76c758c54 Added a test for strtoul().
git-svn-id: svn://svn.cc65.org/cc65/trunk@4220 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-24 17:09:33 +00:00
uz
c6c3fc4738 Testcode for strtol and atoi.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4176 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-15 20:47:03 +00:00
uz
b5a44f9542 Added a multiplication test program.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4035 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-17 20:37:36 +00:00
uz
2edab5f201 Test program for the rename() function. Supplied by Greg King - thanks!
git-svn-id: svn://svn.cc65.org/cc65/trunk@3946 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 15:42:40 +00:00
cpg
9082762519 initial check-in
git-svn-id: svn://svn.cc65.org/cc65/trunk@3926 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-10 19:16:52 +00:00
uz
368e881288 The NES must have the joystick driver linked in. Change by Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3905 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-01-06 17:44:20 +00:00
uz
53352d8a56 Checked in a small test routine for the serial drivers. It has been lying
around for some time here.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3887 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-08-14 19:17:34 +00:00
cuz
c7ddd12bba Oliver Schmidt added test output for second fire button.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3815 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-03-16 09:27:20 +00:00
cuz
245fc0b43f Remove the driver before exiting
git-svn-id: svn://svn.cc65.org/cc65/trunk@3655 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-20 13:31:42 +00:00
cpg
98f4a339ba initial check-in
git-svn-id: svn://svn.cc65.org/cc65/trunk@3604 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-29 22:34:14 +00:00
cpg
f20dc7606e _graphmode_used doesn't exist anymore
git-svn-id: svn://svn.cc65.org/cc65/trunk@3571 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-07 16:02:06 +00:00
cuz
4305e05549 lseek is now in unistd.h
git-svn-id: svn://svn.cc65.org/cc65/trunk@3495 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-05-04 10:09:52 +00:00
cuz
244aac991b One more example from the C standard
git-svn-id: svn://svn.cc65.org/cc65/trunk@3395 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-02-19 22:21:23 +00:00
cuz
bc5d046503 Fixed tab removal which somehow went wrong
git-svn-id: svn://svn.cc65.org/cc65/trunk@3382 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-02-14 09:38:30 +00:00
cuz
4add479e30 Added scanf test program contributed by Greg King
git-svn-id: svn://svn.cc65.org/cc65/trunk@3380 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-02-14 09:24:08 +00:00
cuz
9a6a7bdd24 Test file for illegal 6502 opcodes
git-svn-id: svn://svn.cc65.org/cc65/trunk@3362 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-01-09 19:07:45 +00:00
cuz
11e4382b8d Internal identifier names have changed, _heap.h is available
git-svn-id: svn://svn.cc65.org/cc65/trunk@3196 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-09-23 17:55:23 +00:00
cpg
2e1183125f display more memory variables
git-svn-id: svn://svn.cc65.org/cc65/trunk@3173 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-08-04 00:02:24 +00:00
cpg
38fe19a1a3 get_ostype() was split into get_ostype() and get_tv() a long time
ago...


git-svn-id: svn://svn.cc65.org/cc65/trunk@3152 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-07-09 19:56:55 +00:00
cuz
aa5a3035ef New test program arg-test.c
git-svn-id: svn://svn.cc65.org/cc65/trunk@3003 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-05-02 00:53:39 +00:00
cuz
b410ca18c4 New file uname-test.c
git-svn-id: svn://svn.cc65.org/cc65/trunk@2287 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-08-12 17:32:16 +00:00
cuz
59bf8611c0 Added signal-test.c
git-svn-id: svn://svn.cc65.org/cc65/trunk@2023 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-03-16 14:27:24 +00:00
cuz
deca5a5fba Replaced joystick test program
git-svn-id: svn://svn.cc65.org/cc65/trunk@1822 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-21 09:35:54 +00:00
izydorst
803c1c0184 using functions from common/ in grc, correct order of menus in test.grc
git-svn-id: svn://svn.cc65.org/cc65/trunk@1779 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-17 09:10:57 +00:00
cuz
b9a9c8186a Better test
git-svn-id: svn://svn.cc65.org/cc65/trunk@1729 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-09 12:22:48 +00:00
cuz
23fbb7fb99 Added extended memory test program
git-svn-id: svn://svn.cc65.org/cc65/trunk@1726 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-06 21:55:56 +00:00
cuz
c6bd3063d5 Fixed a typo
git-svn-id: svn://svn.cc65.org/cc65/trunk@1568 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-22 00:39:29 +00:00
cuz
1075d1e193 New module fileio-test.c
git-svn-id: svn://svn.cc65.org/cc65/trunk@1534 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-17 23:00:14 +00:00
cuz
43d5800702 Added posixio-test.c
git-svn-id: svn://svn.cc65.org/cc65/trunk@1532 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-17 22:44:55 +00:00
cpg
cb389a50a1 added cursor.c and seek.c
git-svn-id: svn://svn.cc65.org/cc65/trunk@1518 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-13 18:59:12 +00:00
cuz
fccf00aa14 Extended the test
git-svn-id: svn://svn.cc65.org/cc65/trunk@1516 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-13 13:36:28 +00:00
cuz
730a75cce5 New module time-test.c
git-svn-id: svn://svn.cc65.org/cc65/trunk@1505 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-12 22:01:17 +00:00
cpg
b304f04cc0 initial check-in
git-svn-id: svn://svn.cc65.org/cc65/trunk@1482 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-03 22:52:39 +00:00
cuz
46e7fbd9e5 Remove the casts, they are no longer needed
git-svn-id: svn://svn.cc65.org/cc65/trunk@1478 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-01 21:27:59 +00:00
cuz
047ecd1955 Division test program by Greg King
git-svn-id: svn://svn.cc65.org/cc65/trunk@1471 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-25 20:48:35 +00:00
cuz
c1c24d6df5 Added stroserror-test.c
git-svn-id: svn://svn.cc65.org/cc65/trunk@1366 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-18 13:38:40 +00:00
cpg
f1625eb89d initial check-in
git-svn-id: svn://svn.cc65.org/cc65/trunk@1285 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-05-23 21:58:36 +00:00
cpg
046f196e84 simple test program for clock() function
git-svn-id: svn://svn.cc65.org/cc65/trunk@1104 b7a2c559-68d2-44c3-8de9-860c34a00d81
2001-11-06 22:02:27 +00:00
cpg
d784b9551e added clock.c
git-svn-id: svn://svn.cc65.org/cc65/trunk@1103 b7a2c559-68d2-44c3-8de9-860c34a00d81
2001-11-06 22:00:46 +00:00
cuz
40aa38a6fd Removed mousetest.c, it's now a sample program
git-svn-id: svn://svn.cc65.org/cc65/trunk@905 b7a2c559-68d2-44c3-8de9-860c34a00d81
2001-09-13 15:58:59 +00:00
cuz
cf4555f101 Module checked in last time was wrong version
git-svn-id: svn://svn.cc65.org/cc65/trunk@884 b7a2c559-68d2-44c3-8de9-860c34a00d81
2001-09-09 16:47:34 +00:00
cuz
d6b16ff116 Added mousetest.c
git-svn-id: svn://svn.cc65.org/cc65/trunk@878 b7a2c559-68d2-44c3-8de9-860c34a00d81
2001-09-08 22:57:58 +00:00
cuz
2503a31938 Added several test programs that were lying around for some time
git-svn-id: svn://svn.cc65.org/cc65/trunk@188 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-07-22 11:14:00 +00:00
cuz
13ff8554a1 More heap test patterns
git-svn-id: svn://svn.cc65.org/cc65/trunk@184 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-07-21 21:39:16 +00:00
cpg
fd558bacb8 describes the files in this directory
git-svn-id: svn://svn.cc65.org/cc65/trunk@164 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-07-17 00:35:59 +00:00
cpg
3f043c5d92 test program for get_ostype() function
git-svn-id: svn://svn.cc65.org/cc65/trunk@163 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-07-17 00:35:12 +00:00
cuz
66c37a85e1 Heap test program
git-svn-id: svn://svn.cc65.org/cc65/trunk@160 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-07-16 22:18:33 +00:00
cpg
c4cf60b521 displays upper memory limit on Atari machines
git-svn-id: svn://svn.cc65.org/cc65/trunk@140 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-07-09 00:41:43 +00:00
cpg
7b32de4b95 added deb.c (simple program to enter the debugger)
git-svn-id: svn://svn.cc65.org/cc65/trunk@127 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-06-25 02:20:13 +00:00
cpg
ec7441d5ac added deb.c
git-svn-id: svn://svn.cc65.org/cc65/trunk@126 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-06-25 02:19:03 +00:00
cpg
695f260449 renamed fd_table, fd_index to __fd_table and __fd_index (C naming)
git-svn-id: svn://svn.cc65.org/cc65/trunk@122 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-06-25 01:40:29 +00:00
cuz
f09ab689d7 Added sample grc from Maciej
git-svn-id: svn://svn.cc65.org/cc65/trunk@109 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-06-22 21:10:28 +00:00
cpg
731534dec7 describes the files in this directory
git-svn-id: svn://svn.cc65.org/cc65/trunk@58 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-06-11 23:56:41 +00:00
cpg
4c5bd4bf32 test program for cprintf()
git-svn-id: svn://svn.cc65.org/cc65/trunk@57 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-06-11 23:56:09 +00:00
cpg
22a7951bde added file I/O test program
git-svn-id: svn://svn.cc65.org/cc65/trunk@56 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-06-11 23:36:16 +00:00
cpg
f49423682e added joytest.c - readjoy test program
git-svn-id: svn://svn.cc65.org/cc65/trunk@29 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-06-07 22:35:44 +00:00
uz
53dd513176 This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3 b7a2c559-68d2-44c3-8de9-860c34a00d81
2000-05-28 13:40:48 +00:00