1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-14 19:29:26 +00:00
Commit Graph

1364 Commits

Author SHA1 Message Date
ol.sc
d91fe6b877 ProDOS 8 requires an page-aligned 1kB IO-buffer for every open file. The implementation using posix_memalign() is universally correct but quite expensive. There I added support for overriding this implementation with maybe limited (i.e. to one open file) but cheaper custom implementations.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4142 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-10 09:59:26 +00:00
ol.sc
19397b742d Fixed typo.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4141 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-10 09:35:37 +00:00
ol.sc
648a1b5427 Added support for switching between 40/80 columns. As the Apple //e 80 column firmware features converting the current screen content on switching if was already active before the idea is to keep the 80 column firmware active and initialize it (which clears the screen) only if necessary.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4140 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-10 09:04:05 +00:00
uz
931b6418bf Changed the prototype of videomode() to take and return an unsigned instead of
an unsigned char. Two more video mode constants as discussed on the list.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4133 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-08 16:25:12 +00:00
ol.sc
96b731dd96 Just presume alternate charset to be active on the //e - how shouldn't it if conio usage activates it.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4127 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-07 14:00:17 +00:00
uz
74bfd6ee31 New function videomode() for the C128. Marked toggle_videomode as deprecated.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4126 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-07 13:21:04 +00:00
ol.sc
78a7af13e6 Adjusted to the changed default start address.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4120 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-04 21:32:41 +00:00
ol.sc
0d25264ed4 Minor reformatting.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4119 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-04 21:28:16 +00:00
uz
1ea503a036 The pleasp.s module is no longer in use.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4094 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-31 12:56:54 +00:00
uz
db69c202a4 Oh well. Decided to throw away the separate implementation for leaa0sp,
because it's not used too much, may sometimes inlined and can easily be
replaced by another entry in leaaxsp.s


git-svn-id: svn://svn.cc65.org/cc65/trunk@4092 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-31 12:22:13 +00:00
uz
bf9d36a2fa Renamed leaasp.s again, this time to leaa0sp.s. Added a new module leaaxsp.s.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4091 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-31 12:15:51 +00:00
uz
a1dd468291 Renamed leasp.s to leaasp.s
git-svn-id: svn://svn.cc65.org/cc65/trunk@4090 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-31 12:10:59 +00:00
uz
23dae5a04b Fixed two more function that didn't clear the high byte of the function result.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4049 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-23 21:40:36 +00:00
uz
4c4071b34a Fixed an error in cbm_k_save (on which cbm_save is based): The X register was
not cleared on return.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4048 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-23 21:38:11 +00:00
uz
c4763e9007 Special cased the division 16 by 8.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4043 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-19 14:51:16 +00:00
uz
acd1233bf2 Greatly improved multiplication routine. Optimized the generic 16x16 one and
added special cases for 8x16 and 8x8. The former is directly called by the
compiler as tosmula0 and tosumula0 resp.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4036 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-17 20:48:28 +00:00
uz
bfc8bd6d74 Added an entry point that clears the high word of rhs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4027 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-16 16:38:52 +00:00
uz
aa7d419165 More entry points for long ops that clear the high word of the lhs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4025 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-15 21:06:06 +00:00
uz
b1f772e9be Added additional entry points that clear the high word of the right operand.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4023 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-15 20:58:35 +00:00
uz
6a26b6e3b4 Added tosicmp0, a special entry point that clears the X register.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4005 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-14 22:08:28 +00:00
uz
f8d3fccc01 get_tv() implementation for the CBM610 by Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3998 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-06 20:24:41 +00:00
cpg
9cafacaf6d introduce STARTUP segment to Atari platform
git-svn-id: svn://svn.cc65.org/cc65/trunk@3995 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-08-04 20:04:41 +00:00
uz
7ecf7a7e58 Adjust geos startup code to new compiler handling. Introduce __STARTUP__
symbol, remove geos.o.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3989 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-31 12:46:38 +00:00
uz
8216bf1d6a Force an import of the special symbol __STARTUP__ in the C compiler when
main() is encountered. Define this symbol in the startup code. This will
automatically force linking of the startup code which can then reside inside
the standard library as any other object file.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3988 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-31 12:05:42 +00:00
uz
931add050e Added a systime implementation by Stefan Haubenthal with a few changes. The
routine reads the TOD clock of CIA1 on the C64 and C128. Since systime was a
dummy routine common for all CBMs before, this change adds an individual dummy
routine for all other CBM systems. CBM510/610 do also have a TOD clock, so a
similar function as in the C64 could be used ...


git-svn-id: svn://svn.cc65.org/cc65/trunk@3974 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-27 18:44:37 +00:00
uz
087ae8173a Be sure to read disk errors after sending the command on the command channel.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3973 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-27 18:42:37 +00:00
uz
2363a6f5c7 Move common data and ex-/imports into an assembler include named time.inc.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3972 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-07-27 17:59:27 +00:00
uz
37e08cac59 Re-added cbm_dir which was acidently removed.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3964 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-05-07 18:31:57 +00:00
cpg
2f39754838 use RUNAD (from atari.inc) instead of /bin/bash2E0
git-svn-id: svn://svn.cc65.org/cc65/trunk@3963 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-04-29 21:37:10 +00:00
cpg
482b3da7d8 add Atari MultiJoy driver from Stefan A. Haubenthal
git-svn-id: svn://svn.cc65.org/cc65/trunk@3962 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-04-11 18:10:44 +00:00
uz
d352b85c87 Fixed problems with the startup code (Greg King): Interrupts must be hooked
before calling initlib because initlib calls contructors and may install
drivers, which enable hardware interrupts. Similar for donelib.

See also R3897 and R3951 where this change was done for other platforms.
                         


git-svn-id: svn://svn.cc65.org/cc65/trunk@3954 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 18:23:31 +00:00
uz
81c7457e04 Added support for chained interrupt handlers installed with .condes type 2.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3953 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 18:16:13 +00:00
uz
0aea6d28dc Removed an unsed import.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3952 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 18:14:54 +00:00
uz
d28ba06f79 Fixed problems with the startup code (Greg King): Interrupts must be hooked
before calling initlib because initlib calls contructors and may install
drivers, which enable hardware interrupts. Similar for donelib.

See also R3897 where this change was done for other platforms.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3951 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 18:10:01 +00:00
uz
e5cbba264f Move the irqcount variable from BSS into DATA, since it is used by the
interrupt handler, which is installed *before* zerobss is called.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3950 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 18:04:25 +00:00
uz
a17d27247e initmainargs routine by Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3949 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 17:51:12 +00:00
uz
89951068dd writefndiskcmd gets its arguments in ptr1 and Y.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3945 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 15:40:06 +00:00
uz
3c168b4323 A few minor 65C02 optimizations.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3944 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 15:39:19 +00:00
uz
a0cd736adb Must open the command channel before writing to it.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3943 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 14:43:02 +00:00
uz
828b4226cf Comment additions and changes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3942 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 14:42:32 +00:00
uz
9c193743a0 Added missing .export statements.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3941 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 14:11:34 +00:00
uz
ef18b567f0 Added a new sysrename module to make the high level function rename work. Code
is untested!


git-svn-id: svn://svn.cc65.org/cc65/trunk@3940 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 14:06:12 +00:00
uz
30237d3c36 Moved some code from scratch.s into a new subroutine named writefndiskcmd in
the diskcmd.s module.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3939 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 14:02:52 +00:00
uz
770d230178 fnparse will return zero flag according to error (ZF=1 means no error).
git-svn-id: svn://svn.cc65.org/cc65/trunk@3938 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-22 13:54:03 +00:00
uz
feb31603da Use named constants from ctype.inc instead of hard coded numeric values.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3929 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-10 22:11:56 +00:00
uz
b6d7dba170 Removed an unused import.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3928 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-10 22:08:43 +00:00
cpg
b68094a2f6 add strnicmp.o
git-svn-id: svn://svn.cc65.org/cc65/trunk@3924 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-10 19:15:51 +00:00
cpg
222a421969 initial check-in
git-svn-id: svn://svn.cc65.org/cc65/trunk@3923 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-02-10 19:15:21 +00:00
cpg
f94ee2c20e small optimization
git-svn-id: svn://svn.cc65.org/cc65/trunk@3920 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-01-30 19:17:14 +00:00
cpg
8008a980bb now it really works (tested w/MYDOS only)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3918 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-01-28 22:01:28 +00:00
cpg
46cb2548c1 fix comments
git-svn-id: svn://svn.cc65.org/cc65/trunk@3917 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-01-28 21:54:02 +00:00
uz
02d5f3025d Function key support be Stephan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3912 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-01-24 16:35:42 +00:00
uz
8c8e0b131f Code optimizations (by Stefan Haubenthal and me).
git-svn-id: svn://svn.cc65.org/cc65/trunk@3906 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-01-06 17:49:29 +00:00
uz
7e9b6e7311 Fixed problems with the startup code (Greg King): Interrupts must be hooked
before calling initlib because initlib calls contructors and may install
drivers, which enable hardware interrupts. Similar for donelib.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3897 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-08-31 18:22:51 +00:00
uz
0cc2bf015e Reverted a change that should not have been commited.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3896 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-08-31 18:21:17 +00:00
uz
0ec5268baa Made strxfrm fastcall, added docs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3895 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-08-27 20:02:48 +00:00
uz
2b098710d9 Added Koala Pad mouse drivers written by Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3877 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-08-05 20:54:35 +00:00
uz
af9286852f A label must always be followed by a statement. This wasn't checked by the
compiler before.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3864 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-08-03 12:54:11 +00:00
uz
4812feb44b git-svn-id: svn://svn.cc65.org/cc65/trunk@3863 b7a2c559-68d2-44c3-8de9-860c34a00d81 2008-08-02 22:02:54 +00:00
cuz
258a8e7d4c Move zpsave into its own segment to decrease the executable size.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3852 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-07-15 18:34:20 +00:00
cpg
e64672acc7 use __ZPSAVE_LOAD__ instead of __BSS_LOAD__ to create EXEHDR
git-svn-id: svn://svn.cc65.org/cc65/trunk@3851 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-07-04 17:32:00 +00:00
cuz
f257b2ee81 Moved the data that keeps a copy of the used zero page locations in its own
segment to reduce the executable size.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3849 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-07-03 19:39:14 +00:00
cpg
baf1e77645 Use RMARGN instead of a hard coded value for compatibility with XEP80.
Patch by Stefan Haubenthal.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3847 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-07-01 20:58:03 +00:00
cuz
545df804bb Renamed setoserror to seterrnofromoserror to avoid clashes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3838 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-04-15 06:55:35 +00:00
cuz
6c5c0be79f Fixed an error.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3837 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-04-15 06:44:46 +00:00
cuz
4b27f80c91 Removed display swapping code
git-svn-id: svn://svn.cc65.org/cc65/trunk@3836 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-04-14 18:56:32 +00:00
cuz
3293330f31 New entry point setoserror
git-svn-id: svn://svn.cc65.org/cc65/trunk@3835 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-04-13 17:35:15 +00:00
cuz
8440c13edd New function fndefunit.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3834 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-04-13 14:49:16 +00:00
cuz
1a0c871976 NTSC/PAL update by Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3831 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-04-10 20:15:28 +00:00
cuz
6787fb362f New get_tv module from Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3830 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-04-10 20:12:20 +00:00
cuz
528dff89b1 Removed an unused module.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3823 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-03-30 08:41:26 +00:00
cuz
966843dc1d The value of COLOR_WHITE changed from 1 to 3.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3818 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-03-25 19:08:26 +00:00
cuz
1a5a724f1b Removed obsolete files.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3817 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-03-25 19:07:52 +00:00
cuz
feae688346 Oliver Schmidt updated the graphics drivers and part of the C library for the
Apple machines.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3816 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-03-16 09:37:22 +00:00
cuz
263b7863a3 Oliver Schmidt fixed errors in the LINE and SETPIXELCLIP routines.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3812 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-02-25 07:47:04 +00:00
cuz
a47008cca0 Fixed a bug: Byte three of the remainder was overwritten by byte 4.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3796 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-08-26 17:25:21 +00:00
cpg
b66b04f289 space optimization by Stefan Haubenthal
git-svn-id: svn://svn.cc65.org/cc65/trunk@3777 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-03-28 19:34:48 +00:00
cuz
a47adefd7b Updated version by Karri Kaksonen.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3771 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-02-09 08:24:03 +00:00
cuz
b8293aaf8a New version by Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3767 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-01-24 21:07:11 +00:00
cuz
88aedc2e29 Update from Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3766 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-01-05 16:16:34 +00:00
cuz
ae4167e595 Ignore intermediate files
git-svn-id: svn://svn.cc65.org/cc65/trunk@3764 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-08-18 16:41:45 +00:00
cuz
620f19464d Added build rules for the apple2-auxmem driver.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3763 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-08-18 16:40:45 +00:00
cuz
c784f056f7 New extended memory driver by Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3762 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-08-17 19:50:23 +00:00
cuz
d1a647b073 Honor the new MOUSE_FLAG_EARLY_IRQ and MOUSE_FLAG_LATE_IRQ flags also when
uninstalling the driver.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3761 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-08-17 19:40:16 +00:00
cuz
c0e46594f0 Mouse driver fixes by Oliver Schmidt.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3758 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-08-17 19:22:53 +00:00
cuz
39f096b34e Added constructor support (contributed by Stefan Haubenthal).
git-svn-id: svn://svn.cc65.org/cc65/trunk@3757 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-08-17 19:19:55 +00:00
cuz
aa217e4535 Rewrote the xxx_load routines for the drivers in assembler to save some
space.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3756 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-06-05 16:59:29 +00:00
cuz
2e0b65887c joy_unload didn't return a valid error code.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3755 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-06-04 10:33:51 +00:00
cuz
0b17f91797 ser_unload didn't return a valid error code.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3754 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-06-04 10:31:33 +00:00
cuz
4e599d372f mouse_unload didn't return a valid erro code on success.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3753 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-06-04 10:29:13 +00:00
cuz
878dcf4aa7 Fixed a problem when loading joystick drivers: When an install error occurred,
the driver wasn't removed from memory.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3752 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-06-04 10:15:18 +00:00
cuz
dc569cad49 Unloading the joystick driver didn't reset the interrupts, so the program may
crash later.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3751 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-06-04 10:14:30 +00:00
cuz
e941b34947 Fixed an error in the load routine: The driver was not removed from memory
when the install routine failed.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3750 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-06-04 10:01:33 +00:00
cuz
d2097f6d75 Fixed error handling
git-svn-id: svn://svn.cc65.org/cc65/trunk@3749 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-06-04 09:59:02 +00:00
cuz
c1a38ce8f4 Fixed a problem in mouse_load_driver: The driver was not removed from memory
when the load failed.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3748 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-06-04 09:48:14 +00:00
cuz
b8a6d7a6f6 Minor update by Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3746 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-05-31 21:11:46 +00:00
cuz
13e0436336 Update by Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3742 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-05-29 16:27:39 +00:00
cuz
4b8d90d2de Changed the mouse API: Introduced a new flag byte that contains information
about the driver, the mouse kernel needs to know. Current supported: Two flags
to enable interrupts before or after calling the driver INSTALL routine.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3741 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-05-21 11:25:31 +00:00
cuz
1501e80779 New version from Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3736 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-05-08 19:26:21 +00:00
cuz
6c6d450ff0 Bugfix by Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3733 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-23 20:30:44 +00:00
cuz
06e00f9343 Declare zero page variables before use. Otherwise they aren't used in zero
page addressing mode, if the assembler has a choice.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3725 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-09 11:43:03 +00:00
cuz
685235795c Apple 2 mouse driver and other stuff from Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3717 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-06 19:51:37 +00:00
cuz
9a98194dc5 Code goes into the CODE segment, not RODATA.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3713 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-03-31 20:07:43 +00:00
cpg
f981dd35ad fix INSTALL return value (Stefan Haubenthal)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3695 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-01-05 15:11:33 +00:00
cpg
48c3702315 add sysmkdir.o and sysrmdir.o
git-svn-id: svn://svn.cc65.org/cc65/trunk@3694 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-01-04 09:58:11 +00:00
cpg
c249515d48 initial version from Stefan Haubenthal
git-svn-id: svn://svn.cc65.org/cc65/trunk@3693 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-01-04 09:56:04 +00:00
cpg
67cd3d8d76 error code 172 -> EEXIST (Stefan Haubenthal)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3692 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-01-03 20:12:58 +00:00
cpg
017be4c23b TAB fixes from Stefan Haubenthal
git-svn-id: svn://svn.cc65.org/cc65/trunk@3688 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-01-03 19:57:16 +00:00
cuz
1184d5ad43 putchar didn't work
git-svn-id: svn://svn.cc65.org/cc65/trunk@3685 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-12-20 22:58:16 +00:00
cuz
60bb97e433 Optimized the code and allowed access to the ROM by using page numbers
higher than what em_pagecount() returns.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3676 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-29 17:21:52 +00:00
cuz
d3ac084997 Add the ltest module to the makefile
git-svn-id: svn://svn.cc65.org/cc65/trunk@3675 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-28 14:55:45 +00:00
cuz
74d19eb5a3 Added an extended memory driver for the DTV.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3674 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-27 22:58:44 +00:00
cuz
eeddbed25b File was removed but is still needed.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3671 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-27 22:03:19 +00:00
cuz
2ef14e3ae8 Fixed a small coding sloopyness that broke the NES startup code when
adding more segments to the library and linker config.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3670 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-23 04:41:04 +00:00
cuz
71abd1471f Cosmetic changes by Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3665 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-21 20:52:41 +00:00
cuz
840797d2d4 The mouse_buttons module was not built
git-svn-id: svn://svn.cc65.org/cc65/trunk@3653 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-20 13:13:50 +00:00
cuz
609ae3aca1 Small optimization
git-svn-id: svn://svn.cc65.org/cc65/trunk@3632 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-09 17:30:28 +00:00
cuz
5c39800979 Ignore driver files
git-svn-id: svn://svn.cc65.org/cc65/trunk@3630 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-08 21:15:24 +00:00
cuz
6ea5614493 Serial driver for the SSC card by Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3627 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-08 21:03:46 +00:00
cuz
575ee044e5 Missing ser_ioctl wrapper by Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3626 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-08 20:58:33 +00:00
cuz
291b4edb9a Don't install the IRQ vector if mouse_install returns an error
git-svn-id: svn://svn.cc65.org/cc65/trunk@3625 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-05 20:25:24 +00:00
cuz
b17be7f2e8 Don't install the IRQ vector if joy_install returns an error
git-svn-id: svn://svn.cc65.org/cc65/trunk@3624 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-05 20:24:37 +00:00
cuz
78c5e6fcee Remove call to utsta0 which does no longer exist
git-svn-id: svn://svn.cc65.org/cc65/trunk@3620 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-02 20:05:25 +00:00
cuz
c732d3e360 New stuff contributed by Oliver Schmidt
git-svn-id: svn://svn.cc65.org/cc65/trunk@3608 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-31 20:11:45 +00:00
cuz
0a069540e1 Added the new PET joystick driver
git-svn-id: svn://svn.cc65.org/cc65/trunk@3601 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-28 22:11:58 +00:00
cuz
aeb90b37c0 Driver for the Protovision 4 Player Joystick Adapter by Stefan Haubenthal.
New joy_stddrv module to make the Protovision driver the default driver (cause
it's the only one).


git-svn-id: svn://svn.cc65.org/cc65/trunk@3596 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-28 21:06:23 +00:00
cuz
a92d2eb0b7 Driver for Protovision 4 Player Joystick by Stefan Haubenthal
git-svn-id: svn://svn.cc65.org/cc65/trunk@3595 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-28 21:01:59 +00:00
cuz
f3c6fbc72a Small optimzation by Stefan Haubenthal
git-svn-id: svn://svn.cc65.org/cc65/trunk@3594 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-28 20:57:16 +00:00
cuz
6871cc6c57 Changes from Oliver: Use posix_memalign instead of _aligned_malloc
git-svn-id: svn://svn.cc65.org/cc65/trunk@3589 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-26 12:09:43 +00:00
cuz
4759eaebfb Added missing import statements.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3586 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-24 19:55:38 +00:00
cuz
5cf71b0dea Removed obsolete modules
git-svn-id: svn://svn.cc65.org/cc65/trunk@3582 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-13 21:21:31 +00:00
cpg
be31ff1fe4 take __RESERVED_MEMORY__ from linker script into account when setting
upper memory limit


git-svn-id: svn://svn.cc65.org/cc65/trunk@3569 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-07 15:48:32 +00:00
cpg
9fbc99eb6d remove initscrmem and grmemusage:
git-svn-id: svn://svn.cc65.org/cc65/trunk@3568 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-07 15:44:01 +00:00
cpg
2efd1c79df _graphmode_used isn't used anymore
git-svn-id: svn://svn.cc65.org/cc65/trunk@3567 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-07 15:42:59 +00:00
cpg
044de2eaca remove graphuse.o
git-svn-id: svn://svn.cc65.org/cc65/trunk@3566 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-07 15:42:20 +00:00
izydorst
d2ee1c447d - unsafe characters are ignored, added some notes to be considered
git-svn-id: svn://svn.cc65.org/cc65/trunk@3551 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-25 21:07:12 +00:00
cuz
8eef418197 Add kernal replacement function
git-svn-id: svn://svn.cc65.org/cc65/trunk@3549 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-25 18:15:11 +00:00
cuz
bec540da9e Fixed obsolete __IRQFUNC_COUNT__ symbol name
git-svn-id: svn://svn.cc65.org/cc65/trunk@3548 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-25 17:05:52 +00:00
cuz
50f707dd39 Ignore pmemalign.s
git-svn-id: svn://svn.cc65.org/cc65/trunk@3544 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-24 15:15:03 +00:00
cuz
8334d54622 Added initcwd.s from Stefan Haubenthal which initializes _cwd on startup.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3540 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-24 13:20:49 +00:00
cuz
7a624b8901 Replaced _aligned_malloc by the POSIX compatible function posix_memalign
(Greg King).


git-svn-id: svn://svn.cc65.org/cc65/trunk@3537 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-24 12:57:00 +00:00
cpg
b5604af456 put zeropage variables into EXTZP segment
git-svn-id: svn://svn.cc65.org/cc65/trunk@3535 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-22 22:48:43 +00:00
izydorst
56420208c7 added support for remove() and rename() standard functions
git-svn-id: svn://svn.cc65.org/cc65/trunk@3533 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-19 13:41:44 +00:00
izydorst
b393a52f97 to clarify things...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3532 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-19 13:36:01 +00:00
izydorst
e642fbbbea Stefan Haubenthal's patch for Contiki port
git-svn-id: svn://svn.cc65.org/cc65/trunk@3529 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-17 11:59:46 +00:00
izydorst
fca6bbeb9a functions returning char in A must have X cleared
git-svn-id: svn://svn.cc65.org/cc65/trunk@3528 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-17 11:32:26 +00:00
cuz
82751788fd Fixed a bug: Divisions with a divisor > 0xFFFFFF did not work because the
high byte of the divisor was overwritten instead of the high byte of the
result.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3525 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-05 21:01:34 +00:00
cuz
c2140cdb08 Make strtok __fastcall__
git-svn-id: svn://svn.cc65.org/cc65/trunk@3514 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-05-17 21:11:09 +00:00
cuz
0fcc998024 Inline InitBuffers
git-svn-id: svn://svn.cc65.org/cc65/trunk@3503 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-05-05 10:32:06 +00:00
cuz
a170b50687 CLOSE is actually the same as INSTALL/UNINSTALL
git-svn-id: svn://svn.cc65.org/cc65/trunk@3502 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-05-05 10:25:27 +00:00