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
cuz
b2a06ab041
Add support for append mode
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1542 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-19 14:27:06 +00:00
cuz
ca905a8705
Allow more chars in filenames
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1541 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-18 19:37:02 +00:00
cuz
ad1a4c370d
Don't check the IEEE status
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1539 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-18 18:22:26 +00:00
cuz
544ff5b900
Working on the CBM file functions
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1533 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-17 22:45:55 +00:00
cuz
751aaee63d
Finally: Commodore file I/O
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1531 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-16 23:45:15 +00:00
cuz
fc81b379d8
cbm_write is not __fastcall__
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1525 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-15 18:42:06 +00:00
cuz
ef9edbe357
Rewrite cbm_write() in assembler
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1524 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-15 18:21:32 +00:00
cuz
704ce5ae22
Added _systime for all platforms
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@1510 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-12 22:49:38 +00:00