uz
ae98a6db40
Fixed sources to use the new __mappederrno and __directerrno functions, and
...
made handling of _oserror and errno consistent.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4731 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-26 11:28:44 +00:00
uz
8806c31e4a
No need to import __oserror.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4719 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-10 19:14:42 +00:00
uz
131a5cad09
Renamed oserrcheck to __mappederrno. Added an additional function named
...
__directerrno and moved both to errno.s. Changed several sources to use these
functions. Needs testing.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4718 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-10 18:10:53 +00:00
uz
e0c00d2054
Fix errno/oserror handling.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4711 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-04 10:50:58 +00:00
uz
a86d23a63c
Change calling convention of cbm_save() to __fastcall__.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4709 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-04 10:25:53 +00:00
uz
d7aaac7e71
Return EUNKNOWN instead of EINVAL if the error code cannot be mapped.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4695 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-06-03 21:10:22 +00:00
ol.sc
d1aad57b98
Initialize _curunit from the zeropage value DEVNUM (aka First Address) in a constructor with a very high priority to be called before DEVNUM gets overwritten by other constructors.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4588 b7a2c559-68d2-44c3-8de9-860c34a00d81
2010-02-14 23:12:54 +00:00
uz
c6831e936a
Added --forget-inc-paths to the assembler command line to avoid problems if
...
more than one version of ca65 is installed on the machine (Spiro Trikaliotis).
git-svn-id: svn://svn.cc65.org/cc65/trunk@4530 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-12-18 11:58:50 +00:00
uz
1518a4813c
The X register must be zero on return.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4426 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-11-02 16:24:26 +00:00
uz
3b06aaaf85
Added the new toascii function for the CBMs.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4425 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-11-02 16:23:32 +00:00
uz
30586e95e8
Cosmetic change. Formatting was lost because of cut&paste.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4357 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-10-10 20:50:15 +00:00
uz
a3529cd048
Ignore start address in cbm_opendir. Rearrange the code somewhat to make it
...
shorter.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4319 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-10-03 18:38:39 +00:00
uz
d54a1ba3d2
Improved cbm_dir routines by Thomas Giesel.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@4264 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-09-28 22:01:58 +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
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
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
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
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
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
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
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
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
533e8eb9b7
getenv is now in common
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3485 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-04-21 21:31:16 +00:00
cuz
c81dc42f93
Squeezed a few bytes out of open()
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3452 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-04-03 18:04:53 +00:00
cuz
d0bee35728
Move constructor code into the INIT segment
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3405 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-02-26 09:28:46 +00:00
cuz
b74f658b93
Add definitions for tools so the makefile is useful by itself.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3263 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-10-26 19:35:40 +00:00
cuz
5681334d52
Fixed a bug: Closing all files on exit did not work
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3175 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-08-09 10:38:12 +00:00
cuz
e717b44d4d
Fixes/improvements from Stefan Haubenthal
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@2873 b7a2c559-68d2-44c3-8de9-860c34a00d81
2004-01-09 17:39:55 +00:00
cuz
63437207a1
Use direct access to the position variables, since gotoxy uses them also.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@2844 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-12-27 15:51:11 +00:00
cuz
a3109620ab
Changed rm -f to $(RM)
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@2385 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-08-20 11:59:27 +00:00
cuz
7b4d3b9a9f
Improved ctype.s from Greg King
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@2148 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-05-05 09:04:36 +00:00
cuz
e39b1c963e
Don't add a mode when opening files for reading
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@2014 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-03-13 23:09:53 +00:00
cuz
a8810a464d
Make sure the zap target is available
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1932 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-02-06 15:35:30 +00:00
cuz
90f47ed007
CBM directory routines by Josef Soucek
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1920 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-02-02 13:18:40 +00:00
cuz
38dcb86552
Fixed int promotion problem in wherex and wherey.
...
Moved wherex and wherey into separate modules.
git-svn-id: svn://svn.cc65.org/cc65/trunk@1867 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-01-01 21:33:49 +00:00
cuz
9227123e16
Allow file names up to 16 chars
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1814 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-21 00:06:41 +00:00
cuz
36fe6284a8
For the CBM platforms, make revers() machine dependent and use the RVS flag
...
of the different machines instead of a separate one.
For the C128, make the textcolor() function work in 40 and 80 column mode.
git-svn-id: svn://svn.cc65.org/cc65/trunk@1787 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-19 20:29:27 +00:00
cuz
41f6d32cfd
Fix parameters to cbm_load and cbm_save
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1757 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-13 00:30:40 +00:00
cuz
ebba65b0b3
Make read and write __fastcall__
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1711 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-03 22:31:06 +00:00
cuz
6ad3b3078f
Close all open files on exit
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1707 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-12-03 21:44:58 +00:00
cuz
d7a5fbeb1a
Removed __cdiff. Since the assembler does character set translation for
...
some time now, it is no longer needed.
git-svn-id: svn://svn.cc65.org/cc65/trunk@1573 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-22 00:53:46 +00:00
cuz
cd552515fb
Move more common code into rwcommon.s.
...
Move declaration of __errno into errno.inc.
git-svn-id: svn://svn.cc65.org/cc65/trunk@1552 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-20 18:14:35 +00:00
cuz
6d498d8187
Use external symbols for the CBM kernal jump table functions. This allows
...
to emulate these functions on platforms where one or more of these functions
are not available (PET, CBM-II).
git-svn-id: svn://svn.cc65.org/cc65/trunk@1544 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-19 23:02:47 +00:00