54e22eb53c
First version of a module that reads debug files generated by ld65.
uz
2010-08-03 18:46:50 +00:00
e046ecbcf2
Be sure to generate line info for all segments.
uz
2010-08-01 13:52:06 +00:00
83e5252785
Changed a comment
uz
2010-08-01 13:48:32 +00:00
031ae666e3
Fixed an error in the macro version of HasObjData().
uz
2010-07-31 12:37:14 +00:00
b2321ebdf7
Fixed an error: Some of the collections weren't initialized.
uz
2010-07-31 09:44:25 +00:00
23b867b7a4
Handle file position information for fragments differently: Instead of handling them separately (which has historic reasons), generate real line info information. This means that line info for the assembler source will be part of the debug info file.
uz
2010-07-30 22:44:09 +00:00
f308a3c4d1
Use collections in the object file structure instead of managing the items manually.
uz
2010-07-30 20:58:51 +00:00
5bffbc98ff
Added a new function CollGrow.
uz
2010-07-30 20:58:09 +00:00
40eabefe89
Added documentation for the od65 utility.
uz
2010-07-30 19:33:53 +00:00
7d506c84c9
Make .DEF, .REF and friends also work with cheap local symbols.
uz
2010-07-26 17:28:34 +00:00
38d50cce0b
Minor formatting change.
ol.sc
2010-07-20 12:14:12 +00:00
432f8492ec
Maybe this looks better when rendered to HTML ?
ol.sc
2010-07-18 10:37:55 +00:00
07680d2376
Read number of total blocks from ProDOS 8 volume directory header - and fall back on the constant 280 only for non-ProDOS 8 disks.
ol.sc
2010-07-17 19:16:25 +00:00
f15910e5f1
Made use of the new common __directerrno and __mappederrno function.
ol.sc
2010-07-17 19:13:07 +00:00
b1dab3a37d
Use MLI error names from ProDOS 8 Technical Reference Manual Quick Reference Card (and not Section 4.8 !).
ol.sc
2010-07-17 19:11:51 +00:00
b9740f52e2
Saved one byte.
ol.sc
2010-07-17 19:07:57 +00:00
3a88860d8b
Removed the rs232 module from the makefile, since it will no longer compile.
uz
2010-07-15 20:58:46 +00:00
477b77f528
Another minor improvement in compares.
uz
2010-07-11 21:53:48 +00:00
ce886f4c5e
Removed the header files for the rs232 API since it has been replaced by loadable serial drivers and serial.h a long time ago.
uz
2010-07-11 16:43:31 +00:00
2bb2d97ab0
Fixed and improved the code for compares. Before, compares of chars to a constant where sometimes passed down to the code generator in a way that caused wrong code to be generated.
uz
2010-07-11 16:11:45 +00:00
4cd7eec075
This is part of adding getopt() lately but wasn't checked in together with the other changes.
uz
2010-07-10 20:49:06 +00:00
a89231ece7
Fixed an error: A function wasn't converted to a void pointer automatically by the compiler.
uz
2010-07-10 20:48:05 +00:00
abbfaef2aa
A negative token count for .LEFT was incorrectly adjusted to 1, not to 0.
uz
2010-07-10 12:32:05 +00:00
3afb4e4e94
Added getopt. The implementation is based on a public domain source, originally written by Henry Spencer and supplied by Harald Arnesen.
uz
2010-07-10 11:28:02 +00:00
4f6fe595b8
Added a paragraph about Oricutron, an Emulator for the Oric Atmos. By Stefan Haubenthal.
uz
2010-07-10 10:34:12 +00:00
54cd9a17dd
Removed useless high byte loads of the error code.
uz
2010-07-08 15:00:15 +00:00
f1d7044b7c
Adjusted parameter handling to match prototype.
ol.sc
2010-07-07 22:28:14 +00:00
e673b53850
adapt to new oserror/errno handling
cpg
2010-07-06 22:43:19 +00:00
ae98a6db40
Fixed sources to use the new __mappederrno and __directerrno functions, and made handling of _oserror and errno consistent.
uz
2010-06-26 11:28:44 +00:00
672cffa1d2
Corrected the list of macros in the macro packages.
uz
2010-06-26 11:19:32 +00:00
148a6569e5
Clear __oserror on success.
ol.sc
2010-06-15 21:44:18 +00:00
155c5629a9
Make use of the new common __directerrno and __mappederrno function.
ol.sc
2010-06-15 20:38:05 +00:00
8806c31e4a
No need to import __oserror.
uz
2010-06-10 19:14:42 +00:00
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.
uz
2010-06-10 18:10:53 +00:00
5741b6e7d3
Minor comment style adjustment.
ol.sc
2010-06-07 19:20:10 +00:00
0bdc045f65
Removed a comment that was no longer correct.
uz
2010-06-06 14:31:24 +00:00
2273b7575c
DIO functions always set _oserror.
ol.sc
2010-06-04 21:41:22 +00:00
1568376fbf
Adjustment to recent change in ca65 relative include path handling.
ol.sc
2010-06-04 20:58:40 +00:00
c8c604f353
Minor optimization.
ol.sc
2010-06-04 20:52:52 +00:00
e0c00d2054
Fix errno/oserror handling.
uz
2010-06-04 10:50:58 +00:00
a08b75c02b
Remove __maperrno symbol, since the function is no longer used and has been deleted.
uz
2010-06-04 10:30:55 +00:00
a86d23a63c
Change calling convention of cbm_save() to __fastcall__.
uz
2010-06-04 10:25:53 +00:00
ba0562c9f0
Save two bytes by a small code change.
uz
2010-06-04 10:15:44 +00:00
23901280c9
Save a few bytes and cycles.
uz
2010-06-04 09:38:35 +00:00
75fbc5c5e3
Removed maperrno() since it's no longer needed.
uz
2010-06-03 21:40:32 +00:00
aa8f817182
Use _seterrno instead of assigning to _errno.
uz
2010-06-03 21:37:27 +00:00
eac4711731
No need to import __seterror, since this is done in errno.inc.
uz
2010-06-03 21:33:55 +00:00
49723f6a64
Use _errno, not errno.
uz
2010-06-03 21:31:06 +00:00
a7f392a96f
Call __seterrno and save a few bytes.
uz
2010-06-03 21:29:28 +00:00
ef4a2e667d
Call __seterrno instead of assigning to _errno and save a few bytes.
uz
2010-06-03 21:26:52 +00:00
30920f0709
Removed the prototype for _seterrno, since it is now provided in errno.h.
uz
2010-06-03 21:25:17 +00:00
8194408abc
Set errno if the stream is in error state. Small code size improvements. Fixed comment regarding _oserror.
uz
2010-06-03 21:22:51 +00:00
b97986b124
Rewrote parts of the code for better error handling. fileno must set errno and return -1 in case of an invalid argument, which it didn't until now.
uz
2010-06-03 21:20:10 +00:00
1dabfda734
Added messages for EBADF (new) and EUNKNOWN (missing).
uz
2010-06-03 21:16:07 +00:00
d877aac5f4
Added EBADF since this is required for fileno().
uz
2010-06-03 21:12:23 +00:00
d7aaac7e71
Return EUNKNOWN instead of EINVAL if the error code cannot be mapped.
uz
2010-06-03 21:10:22 +00:00
a9ba343e1b
Use _seterrno instead of assigning to _errno to make the code shorter.
uz
2010-06-03 20:46:08 +00:00
1b71d3fe42
Rewrote the code to make it somewhat shorter.
uz
2010-06-03 20:43:30 +00:00
eacc7052eb
Call _seterror instead of assigning to _errno to make the code somewhat shorter. Fixed a comment regarding oserror/errno.
uz
2010-06-03 20:27:59 +00:00
00222e41ab
Fixed a comment regarding errno/oserror.
uz
2010-06-03 20:26:33 +00:00
63b629b801
Call _seterrno instead of assigning to _errno to make the code shorter.
uz
2010-06-03 20:21:23 +00:00
1ab221bd05
Don't include errno.h since it is not needed.
uz
2010-06-03 20:20:01 +00:00
c3922228a9
Use _seterrno to make the code shorter.
uz
2010-06-03 20:18:43 +00:00
e9310f8ec1
Change the prototype for _seterrno to return a char, since the function will always return zero in A and this can be used in C code to make the code shorter.
uz
2010-06-03 20:18:19 +00:00
0d8727ea33
Added a prototype for _seterrno().
uz
2010-06-03 20:12:55 +00:00
bc2fb18752
Removed the mapping function called previously by the errno macro. It will be replaced by a mapping in the functions itself.
uz
2010-06-03 20:03:52 +00:00
9d5d94196f
Adjusted Makefile and remarks to the recent cc65 improvements.
ol.sc
2010-06-03 16:47:15 +00:00
bfbe531f33
New install script from Stefan Haubenthal that (among other things) sets CC65_HOME.
uz
2010-06-03 12:02:26 +00:00
710f59b654
Align rootdir() return value rather with POSIX functions than with DIO functions.
ol.sc
2010-06-02 07:03:54 +00:00
2e0ab6f863
Set _oserror only on error.
ol.sc
2010-06-01 21:01:59 +00:00
5b2de2d9f0
Fixed several errors in the description of _poserror.
uz
2010-06-01 20:46:48 +00:00
125ab37c09
Added relative include path handling: The path of an input file is now pushed onto the search path list, so include files will be searched relative to this path first.
uz
2010-05-30 13:31:09 +00:00
b942fd0b56
Check for a size of zero in SB_CopyBuf to make the code somewhat faster.
uz
2010-05-29 21:23:34 +00:00
314893619a
Don't ignore empty paths when adding the path of a file to the search path list.
uz
2010-05-29 21:20:48 +00:00
02f5b5499e
Changed search path logic: Include files are now search first in the directory containing the file that had the #include statement. The path of the main file will also added to the front of the search path list, so includes will not be search in the current directory first, but in the directory that contains the main file.
uz
2010-05-28 12:00:12 +00:00
9a6f97cfe1
PushSearchPath will add the path only if it's not already there.
uz
2010-05-28 11:56:01 +00:00
ebd679dd57
New functions PushSearchPath and PopSearchPath.
uz
2010-05-28 11:22:44 +00:00
64b597017a
Fix the check for constant static local data, which was wrong when the data was an array. It should go into RODATA, not DATA.
uz
2010-05-27 19:47:13 +00:00
05b23194d9
Added function to find out the volume name of a ProDOS 8 disk in a ProDOS 8 device.
ol.sc
2010-05-26 21:02:35 +00:00
096cb9c0a8
Added missing docs for predefined macros, sorted them alphabetically.
uz
2010-05-25 20:36:40 +00:00
7df459aefe
Added a(nother) link to the o65 binary format specification.
uz
2010-05-25 15:49:14 +00:00
1bbbed5e96
Added functions to learn about the unit numbers of the ProDOS 8 devices found.
ol.sc
2010-05-24 20:10:19 +00:00
05f7296369
Restructured search path handling.
uz
2010-05-09 10:54:15 +00:00
d95bb2e600
New option --bin-include-dir which is passed to the assembler.
uz
2010-05-04 20:19:54 +00:00
d54ca88743
Added a new option --dep-target to the compiler. This option allows to set the target in the generated dependency file. The cl65 utility will use this option to override the depdendency target, if actual object files are to be generated from C input. So the generated dependency will not have the intermediate .s file as target, but the final .o file, which allows to use the dependency files without further processing.
uz
2010-05-02 09:56:40 +00:00
e61bf7094c
Restructured the code for better reada- and maintainability.
uz
2010-05-02 09:32:42 +00:00
84b1e343b5
syschdir by Stefan Haubenthal
cpg
2010-05-01 22:33:25 +00:00
c24fc36d36
Added a more detailed explanation of the --standard command line switch.
uz
2010-05-01 16:22:54 +00:00
0695f39611
Added --create-dep and --create-full-dep to the cl65 utility.
uz
2010-05-01 14:47:09 +00:00
39108e20b5
Rewrote the search path routines to use collections internally.
uz
2010-05-01 14:44:14 +00:00