cuz
9174f65e54
Make much more usage of dynamic strings (StrBufs) instead of char* and
...
friends. Since names and other strings are now StrBufs in many places, code
for output had to be changed.
Added support for string literals to StrBuf.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3825 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-03-31 20:54:45 +00:00
cuz
6a7e844500
The conversion specifier to output a StrBuf had to be changed, because gcc
...
emits a warning for each such unknown conversion specifier.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3824 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-03-31 20:51:31 +00:00
cuz
46286ccffa
Fixed an error in the type comparison code. Function declarators were not
...
considered equal, if the functions defined different local structs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3822 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-03-29 12:17:32 +00:00
cuz
e917645145
New functions SB_ToLower and SB_ToUpper.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3821 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-03-27 13:40:38 +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
a21bf773e1
Fixed a bug in the optimizer. Loads of X and Y from memory were sometimes
...
replaced by loads of A with an immediate value (which is stored in said memory
location).
git-svn-id: svn://svn.cc65.org/cc65/trunk@3813 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-02-27 20:37:02 +00:00
cuz
f1ea61581f
Patch for ca65html by Greg King:
...
The "ca65html.sgml" patch:
1) Removes text that says that the colorize option is non-standard.
2) Corrects the information about what is put on the index page.
The "ca65html" patch:
1) Looks for "?" and "@" at the front of cheap local labels.
2) Handles label assignment statements.
3) Parses many more ca65 dot-directives.
4) Handles every official op-code mnemonic that ca65 knows.
5) Recognizes both upper- and lower-case directives and mnemonics.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3810 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-02-20 17:27:19 +00:00
cuz
94f3a578a5
Allow optional assignments in .export and .exportzp statements.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3809 b7a2c559-68d2-44c3-8de9-860c34a00d81
2008-02-19 21:01:07 +00:00
cuz
a4b43370e7
More segment support stuff.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3806 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-09-02 19:49:12 +00:00
cuz
8db6dcd414
Started to add support for segments.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3805 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-08-31 20:27:53 +00:00
cuz
10efd998e0
Move code to a subroutine.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3804 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-08-31 20:23:37 +00:00
cuz
e8b90752d9
Preprocess the remainder of the line in a #include preprocessor directive.
...
This allows use of macros in the file spec and is a requirement of the C
standard.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3803 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-08-31 16:02:03 +00:00
cuz
47860910e0
Renamed the Val field to IVal to allow values of other types later.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3802 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-08-30 20:24:16 +00:00
cuz
3894b074a6
Move more stuff from scanner.c into the new module token.c.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3801 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-08-28 21:14:21 +00:00
cuz
79a89299b9
Added #warning (suggestion by Rudolf Schubert).
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3799 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-08-28 12:53:43 +00:00
cuz
0b4a94a65e
Preparation for introducing token sources.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3798 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-08-27 20:39:02 +00:00
cuz
10c949062b
Fixed a bug: The compiler evaluated constant expressions internally always
...
using signed integers as data types. This led to wrong results for mod, div
and compares.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3797 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-08-26 18:53:46 +00:00
cuz
a7358314a0
New .FEATURE org_per_seg. If enabled, .org/.reloc do only influence the
...
current segment. Idea by Peter Wendrich <pwsoft@syntiac.com>.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3794 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-08-23 19:48:43 +00:00
cuz
24709a67d7
Applied Magervalps colorization changes with some minor modifications.
...
Colorization is now done by using CSS style sheets, so even colorized pages
are valid HTML.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3788 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-08-19 12:54:45 +00:00
cuz
363ff21b9c
Fixed umlauts
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3787 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-08-19 12:23:24 +00:00
cuz
57c2e0cc0b
Fixed an error handling SC_EXTERN.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3785 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-07-03 16:02:04 +00:00
cuz
fd7e66f24c
Fixed an error.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3784 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-07-03 16:01:51 +00:00
cuz
7e44cdbd5f
Fixed an error
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3783 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-06-28 10:28:34 +00:00
cuz
d1e184f93b
Fixed wrong spelling of ".dbyt".
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3781 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-06-12 15:51:48 +00:00
cuz
519730612e
Fixed hangs on certain info files. PC was not incremented when DataByteLine
...
is called.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3780 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-06-12 07:29:25 +00:00
cuz
fe52694b61
Fixed a problem with MagerValps changes.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3778 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-05-21 20:51:55 +00:00
cuz
80a4c8c02b
Fix type of "&array" - it will actually generate pointer to array, not pointer
...
to element. This will make some valid code work but emits now errors for
questionable code.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3775 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-03-18 19:15:35 +00:00
cuz
030ce6ad28
Using typdefs, it is possible to construct types that have qualifiers
...
attached to an array (not the elementtype). Fix these problems by tranfering
the qualifiers to the elements.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3774 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-03-18 18:26:00 +00:00
cuz
cfe263ea42
Fixed a bug introduced with the last patch
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3772 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-02-10 18:22:43 +00:00
cuz
6a9a5eeafc
Fixed an error in SB_Slice.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3770 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-02-07 14:25:51 +00:00
cuz
bcd13b2dca
MagerValp: I adjusted some of the regexps in ca65html again, to better detect
...
labels, and to eliminate false positives where labels start with three
characters matching an opcode.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3769 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-02-03 18:26:16 +00:00
cuz
9601baf6ec
Fixed internal compiler error on invalid input code.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3768 b7a2c559-68d2-44c3-8de9-860c34a00d81
2007-02-03 18:11:37 +00:00
cuz
4846c27c77
Replace the fixed buffer in the Find() routine by a dynamically allocated
...
string using a StrBuf. This works around problems with Watcom C where
FILENAME_MAX was just 80.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3765 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-08-22 20:27:59 +00:00
cuz
eb745b3d1b
Fixed a problem with undefined identifiers in #if expressions: If the
...
identifier is not the last token on the line, the compiler will run into
an error.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3744 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-05-29 20:38:44 +00:00
cuz
b7255ed8fa
Terminate the line containing the #if expression before passing it to the
...
parser.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3743 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-05-29 20:36:21 +00:00
cuz
b6cb833560
Don't check for open .IF clauses when reaching the end of pushed input data.
...
This will allow to write macros that contain open .IFs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3740 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-05-21 11:23:22 +00:00
cuz
49719b0bd2
Removed a C99 construct
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3734 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-24 23:45:44 +00:00
cuz
e81d5ec00a
Added another optimization step
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3732 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-16 21:35:36 +00:00
cuz
7736aac1e2
Added more info about internal (builtin) functions
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3731 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-16 21:35:24 +00:00
cuz
21af43a800
Comment fix
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3730 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-16 20:32:09 +00:00
cuz
585791a789
Repeatedly call OptStore1 after OptJumpTarget because it is able to do some
...
more work in case of for loops.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3729 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-15 20:46:05 +00:00
cuz
1ac3cbe420
ldaxysp doesn't return flags any more.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3728 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-15 20:45:35 +00:00
cuz
c156b20738
Added some code rewriting (may enable optimizations in a few cases).
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3727 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-15 20:31:43 +00:00
cuz
d82d94ecc1
Optimize decaxn
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3726 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-15 19:28:45 +00:00
cuz
c13f40a9f1
Emit warnings for symbols that were used suboptimal because of forward
...
definitions. For example a zero page symbol that is used as absolute because
it was undefined when encountered.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3724 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-09 10:56:23 +00:00
cuz
44405a0bb5
New function xdup.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3723 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-09 10:04:50 +00:00
cuz
155dc9c653
Corrected some runtime function info
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3721 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-07 08:38:30 +00:00
cuz
f507124733
Added lots of runtime function info.
...
Fixed a problem with wrong info for the incaxn functions.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3715 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-03 19:31:31 +00:00
cuz
c73c31c496
Added info for the staxspidx runtime function.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3714 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-04-02 15:32:16 +00:00
cuz
4c0720709b
Fixed a few errors in the macros used by the Watcom compiler.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3712 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-03-30 19:49:03 +00:00
cuz
d187424389
Fixed a problem of the optimizer. Unknown internal functions are marked as
...
using just EAX as input, and destroy all registers. This did cause the
optimizer to remove loads to zero page locations needed in the routines or
later.
Print a warning for unknown internal functions when in debug mode.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3711 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-03-24 15:24:34 +00:00
cuz
f196e7c5c9
Cleanup. Added a few general purpose functions.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3710 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-02-19 15:53:11 +00:00
cuz
de3a20a898
Changed the low level type representation from a strung of unsigned short
...
elements to a string of structs, each representing one type element. This
should fix problems on unusual architectures, since it is no longer necessary
to embedd pointers and other data converted to numbers in the string of
unsigned shorts.
Increased the TypeCode length to unsigned long to make room for more type
bits.
Inline more functions in datatype.h.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3709 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-02-19 12:29:37 +00:00
cuz
1375c85405
Removed an unneeded struct forward
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3708 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-02-18 12:23:07 +00:00
cuz
31d99b4a9f
Added the inline keyword
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3707 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-02-17 20:27:51 +00:00
cuz
64921852dd
Parse the C99 "restrict" keyword correctly (but ignore it otherwise).
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3706 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-02-17 20:19:35 +00:00
cuz
32164ea8e5
Allow type qualifiers before a storage class spec.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3705 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-02-17 19:42:40 +00:00
cuz
cfca3473b8
Added new options and info file attribute to set the columns where the
...
fields of the disassembled output start.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3703 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-01-30 21:03:14 +00:00
cuz
d31f72d057
Restructured some of the code. Attribute handling is still a mess and needs
...
another cleanup.
Added unnamed labels.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3700 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-01-29 19:00:22 +00:00
cuz
7086da868b
New --label-break option
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3699 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-01-27 19:36:33 +00:00
cuz
45ffbc59f5
Fixed a problem with files that don't end with a newline
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3697 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-01-20 21:17:08 +00:00
cuz
1193a466d9
Fixed a problem with input files with end address $FFFF.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3696 b7a2c559-68d2-44c3-8de9-860c34a00d81
2006-01-19 22:03:17 +00:00
cuz
457c91aba9
Added a generic va_copy definition
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3684 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-12-11 12:58:21 +00:00
cuz
84706bd2d5
Fixed portability problems with va_copy. In three places, calls to fstat
...
had to be replaced by calls to stat, because fileno is no longer available
when forcing the compiler into pure c89 (or c99) mode.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3683 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-12-11 12:40:51 +00:00
cuz
2d66b55b9d
Fixed the latest bugfix
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3682 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-12-09 22:27:14 +00:00
cuz
0816559134
Fixed another bug with help of Greg King
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3681 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-12-07 17:47:46 +00:00
cuz
5227580f46
Ignore internal symbols when generating warnings about unused symbols
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3680 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-12-04 22:03:35 +00:00
cuz
66365154f8
Small map file string fix
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3678 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-12-02 23:18:32 +00:00
cuz
6662570a26
A local macro symbol with a cheap local name (@...) was not identified as
...
such.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3677 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-12-01 21:20:03 +00:00
cuz
a60ef7ecb6
A BSS segment with an alignment, that is written to a memory area with the
...
fill attribute caused invalid output.
While fixing this, added somewhat more debug output.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3668 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-22 16:17:28 +00:00
cuz
3c74435ac4
Fixed a bug
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3663 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-21 20:08:03 +00:00
cuz
6d66611108
Add symbol to disable inlining of functions
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3662 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-20 22:03:29 +00:00
cuz
101ce0941f
Add a linefeed after internal compiler error messages
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3661 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-20 21:51:50 +00:00
cuz
e17f08957c
Autodetect the Amiga when compiling
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3656 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-20 16:49:29 +00:00
cuz
33b874c4c8
Add explicit check for CPU_UNKNOWN to avoid SIGSEGV
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3652 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-20 13:09:41 +00:00
cuz
a63e74f691
Insert correct .setcpu line for HuC6280
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3651 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-20 12:52:53 +00:00
cuz
69485b5000
Fixed a problem with --feature labels_without_colons: The scanner inserts
...
a space at the beginning of a new file, with the assumption that this is a
"neutral" character. If above feature is enabled, it is no longer neutral,
so read the first character from the new input instead.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3650 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-11-20 12:30:24 +00:00
cuz
33542e3ed9
Use the new linker features in apple2.cfg. This makes apple2-tgi.cfg
...
obsolete.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3648 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-14 08:55:28 +00:00
cuz
f6cab70600
Fixed a typo
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3647 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-13 21:52:13 +00:00
cuz
00f24fe76a
More optimizations
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3645 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-12 22:38:19 +00:00
cuz
c7490cf060
Some function renaming.
...
Improved an optimization step.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3642 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-11 12:52:12 +00:00
cuz
bf6b40e97e
Bumped the version number for the snapshot
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3638 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-10 12:53:45 +00:00
cuz
48cc6288ca
Bumped the version number for 2.11.0
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3637 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-10 12:53:11 +00:00
cuz
51be13d115
Don't complain about missing includes when generating .depend
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3635 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-10 12:27:50 +00:00
cuz
d71265e363
Delete the auto-generated .inc files for target zap
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3634 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-10 12:22:23 +00:00
cuz
142c131f06
Fixed a problem with evaluation of the address size
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3621 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-02 20:32:09 +00:00
cuz
50645b8261
Added HuC6280 CPU
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3617 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-01 19:57:17 +00:00
cuz
0da9d41a00
Bumped the year in the copyright message
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3616 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-01 19:41:20 +00:00
cuz
d1ee736417
Added the remaining HuC6280 instructions
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3615 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-09-01 19:40:34 +00:00
cuz
0bdf6211bc
Started to add support for the HuC6280 cpu
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3614 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-31 21:56:31 +00:00
cuz
e4ec9014d2
Reversed accidentally checked in changes
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3613 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-31 21:49:12 +00:00
cuz
d6c50c1826
Added HuC6280 cpu (will be treated as a 65C02)
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3612 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-31 21:48:08 +00:00
cuz
c3ddd84251
Started to add support for the HuC6280 cpu
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3611 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-31 21:46:28 +00:00
cuz
400f593fb2
Added HuC6280 cpu
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3610 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-31 21:46:12 +00:00
cuz
2a19f6b700
Fixed minor and rather obscure problem: When including files, the line after
...
the .include statement went into the listing file, before the contents of
the include file. The problem was caused by the several levels of lookahead
in the scanner, and the only way to avoid it was to remove the calls to
NextTok () in relevant places - and add compensation for it in others.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3609 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-31 21:29:11 +00:00
cuz
476e3f9acc
Fixed a bug in FuncStrAt. New shortcut function GenLiteral0().
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3605 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-30 19:40:43 +00:00
cpg
3951e0a579
add "define=yes" for CODE segment
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3603 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-29 22:14:21 +00:00
cuz
f21605a972
New atari builtin macro package that features a scrcode macro.
...
Changed the scrcode macro from the cbm builtin macro package to accept
multiple arguments of different types.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3598 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-28 21:42:03 +00:00
cuz
7b2cd44f8a
AttrTab and RtsTab were not able to handle label within data gracefully. This
...
should be fixed now (report by Stefan Haubenthal).
Bumped the copyright year.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3593 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-27 21:33:43 +00:00
cuz
a7476505a8
Added the "none" CPU.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3592 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-26 12:46:44 +00:00
cuz
e016695787
Added "none" CPU.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3591 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-26 12:44:25 +00:00
cuz
ddddb2acb5
Added check for gcc
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3590 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-26 12:44:15 +00:00
cuz
1bc775d21d
Fixed the copyright message
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3588 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-24 20:05:37 +00:00
cuz
1f6276d21e
Added a new option --macpack-dir that allows to load the macro packages
...
from files instead of using the builtin ones.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3587 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-24 20:05:08 +00:00
cuz
c83176e151
Fixed a wrong comment
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3585 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-24 19:15:29 +00:00
cuz
805982dc8a
Move the macro package sources into own files
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3583 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-22 17:05:03 +00:00
cuz
9a2e6ab210
Add new options to usage info
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3578 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-12 21:31:06 +00:00
cuz
6e059fe547
Added new -Wa and -Wl options to pass options to the linker and assembler
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3577 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-12 21:27:39 +00:00
cpg
ee816e08e5
add __RESERVED_MEMORY__
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3570 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-08-07 15:49:50 +00:00
cuz
209954a4a2
Fixed a bug in the last change
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3563 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-31 19:56:04 +00:00
cuz
23f47e26d1
Fixed handling of expressions in .word and .addr instructions.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3562 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-31 12:25:20 +00:00
cpg
fe645102e4
add TRAILER; calculate RAM size depending on start address
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3560 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-29 21:16:38 +00:00
cuz
b6ac59be03
Fixed a bug
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3558 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-29 20:33:25 +00:00
cuz
33e86250ea
Fixed a bug
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3557 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-28 22:52:59 +00:00
cuz
aa7cdf30de
Added simple expressions for the config file
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3556 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-28 19:50:22 +00:00
cuz
f02698b66d
Minor changes to the variadic macro feature. Added a copyright notice to
...
the file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3554 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-26 22:30:35 +00:00
cuz
1d5c1b1983
Added symbol definitions on the command line and weak symbols in the config.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3552 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-26 20:42:30 +00:00
cuz
1aeeffdc52
Added C99 variadic macros
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3547 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-24 22:14:41 +00:00
cuz
a45649752f
New syntax for symbols
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3546 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-24 21:09:23 +00:00
cpg
7101c646e3
set RAM start address to %S; add STARTADDRESS
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3545 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-24 20:57:00 +00:00
cpg
4382eb25c8
add EXTZP segment
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3534 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-22 22:47:45 +00:00
izydorst
8734e863c2
- do not remove commas from quoted text (Stefan Haubenthal)
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3531 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-19 13:05:59 +00:00
cuz
c218639977
Fixed a bug: The compiler aborted with an internal error if a non function
...
was called as a function after printing the diagnostic.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3526 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-07-17 09:49:34 +00:00
cuz
37873a947f
Fixed a bug
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3524 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-06-30 20:29:18 +00:00
cuz
0da97c6711
Fixed a bug: Compiling an empty source file led to an internal error.
...
Changed the lineinfo module to take dynamically allocated string buffers
instead of char*.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3523 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-06-08 11:31:00 +00:00
cuz
71126c8200
Allow empty and comment lines in structs
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3519 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-05-29 11:57:53 +00:00
cuz
412a1300f9
Fixed a bug
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3513 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-05-17 12:42:34 +00:00
cuz
b01c0cf2b7
Fixed a bug
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3511 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-05-11 13:54:22 +00:00
cuz
945bbe2b50
Added variable symbols using .set
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3510 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-05-11 08:31:42 +00:00
cuz
765dc3442b
New .sprintf function
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3508 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-05-10 15:42:32 +00:00
cuz
76d94bc8d9
Added a .IDENT function
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3506 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-05-09 18:57:03 +00:00
cuz
480b61e0bf
Added va_copy for gcc version == 2
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3505 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-05-09 11:58:22 +00:00
cuz
a48bbd076d
Fixed parameter naming
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3504 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-05-08 20:41:10 +00:00
cuz
fa3e713cc7
Interruptor support for all systems.
...
New HEAP segment.
Both changes by Greg King.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3481 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-04-21 02:10:56 +00:00
cuz
fcd14f3d14
Fixed a bug
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3476 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-04-20 10:37:57 +00:00
cuz
9cd1ef08cc
Use "Assertion failed" as default message for .assert if no message was
...
given.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3474 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-04-20 09:28:26 +00:00
cuz
3a22d6c1c3
Improve the assertion check
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3472 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-04-20 09:17:04 +00:00
cuz
05ab8714d2
Evaluate .asserts with known conditions in the assembler.
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3471 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-04-19 22:03:30 +00:00
cuz
6170017f07
Fixed a bug
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3458 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-04-14 20:36:50 +00:00
cpg
9e61c50de1
add "define = yes" to LOWCODE, remove it from INIT and CODE
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3443 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-03-31 21:51:48 +00:00
cuz
d194bdd702
Fixed numeric OS ids. Added new OS OPENCBM
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3435 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-03-30 19:28:28 +00:00
cuz
842841a8ad
Minor changes requested by Oliver Schmidt
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3430 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-03-30 18:15:59 +00:00
cuz
fe2d8f26ed
Added library groups
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3420 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-03-26 16:26:11 +00:00
cuz
98e9934b89
Fixed a typo
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3419 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-03-25 22:43:28 +00:00
cuz
25dd95438f
No output when using wstrip
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3418 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-03-25 22:27:39 +00:00
cuz
6b03c250c2
Add the replacement startup file wildargv.obj to the library
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3415 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-03-25 14:04:30 +00:00
cuz
8a6fdb8562
Output the help text to stdout
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3414 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-03-24 20:08:41 +00:00
cuz
137b66ac97
Added the INIT segment
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3413 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-03-24 10:52:07 +00:00
cuz
a54556f9f2
Cheap local symbol in a macro .local statement were broken
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3412 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-03-22 20:09:29 +00:00
cuz
6e55cd6fb3
Added extensions for new loadable modules
...
git-svn-id: svn://svn.cc65.org/cc65/trunk@3411 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-03-20 09:00:51 +00:00