1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00
Commit Graph

2554 Commits

Author SHA1 Message Date
cuz
9ebc3d1f01 Don't remove symbols or otherwise simplify expressions while assembly is
still in progress. There may be information that is needed, and when
assembly is done it is still time to do so. (Needs more work).
Better expression checks for fragments. Stuff that was detected by the
linker before is now handled by the assembler.


git-svn-id: svn://svn.cc65.org/cc65/trunk@2700 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-30 21:47:40 +00:00
cuz
cf7b4e227a More .size/.sizeof support
git-svn-id: svn://svn.cc65.org/cc65/trunk@2699 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-30 18:41:32 +00:00
cuz
7825f7d4a4 New section covering detection of macro parameter types
git-svn-id: svn://svn.cc65.org/cc65/trunk@2698 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-30 18:22:33 +00:00
cuz
f19dfb4411 Added .enum
git-svn-id: svn://svn.cc65.org/cc65/trunk@2697 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-30 18:05:18 +00:00
cuz
c5cc4e1536 Don't use SF_TRAMPOLINE, change symbol references instead.
In smart mode, use RTL instead of RTS if the enclosing .PROC is far.
More address size changes.


git-svn-id: svn://svn.cc65.org/cc65/trunk@2696 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-29 07:53:26 +00:00
cuz
05f3f154a9 Use smart mode, allow more CPUs, fix CPU dependent code, use address sizes
for functions.


git-svn-id: svn://svn.cc65.org/cc65/trunk@2694 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-29 07:40:41 +00:00
cuz
b520b182d0 Memory model additions
git-svn-id: svn://svn.cc65.org/cc65/trunk@2693 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-29 07:17:31 +00:00
cuz
add702a2f0 Special code for signed compares against zero
git-svn-id: svn://svn.cc65.org/cc65/trunk@2692 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-29 06:56:24 +00:00
cuz
8f9a21ae3f Extend the object code format by adding a (currently empty) scope table.
Use the address size for import, export and debug symbols (object code
change).
More changes to support the --memory-model switch and address sizes.


git-svn-id: svn://svn.cc65.org/cc65/trunk@2691 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-28 22:12:14 +00:00
cuz
e3eea961c2 Update by Stefan Haubenthal
git-svn-id: svn://svn.cc65.org/cc65/trunk@2690 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-28 15:57:24 +00:00
cuz
d7cbbc6f46 Clear high byte of returned value
git-svn-id: svn://svn.cc65.org/cc65/trunk@2689 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-28 15:53:24 +00:00
cuz
614d23b53a Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@2688 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-27 20:43:37 +00:00
cuz
20582afca5 Patches by Stefan Haubenthal
git-svn-id: svn://svn.cc65.org/cc65/trunk@2687 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-26 21:17:29 +00:00
cuz
9fea0c5c42 Pass the memory model to the compiler
git-svn-id: svn://svn.cc65.org/cc65/trunk@2685 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-25 18:37:05 +00:00
cuz
349c94f9a2 New --memory-model switch
git-svn-id: svn://svn.cc65.org/cc65/trunk@2684 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-25 18:36:32 +00:00
cuz
5622524cbd New --memory-model option
git-svn-id: svn://svn.cc65.org/cc65/trunk@2683 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-24 19:18:01 +00:00
cuz
e9bd1d42b1 New module
git-svn-id: svn://svn.cc65.org/cc65/trunk@2682 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-24 18:35:29 +00:00
cuz
49f72c6d24 Much extended StudyExpr
git-svn-id: svn://svn.cc65.org/cc65/trunk@2681 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-23 21:39:30 +00:00
cuz
f99049f84c Hold address sizes in an unsigned char
git-svn-id: svn://svn.cc65.org/cc65/trunk@2680 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-23 21:39:12 +00:00
cuz
eb7fc320cc New DefAddrSize variable
git-svn-id: svn://svn.cc65.org/cc65/trunk@2679 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-23 21:38:54 +00:00
cuz
2863d55ebd New option --memory-model
git-svn-id: svn://svn.cc65.org/cc65/trunk@2678 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-23 21:38:23 +00:00
cuz
53a7c0c7d9 Removed the EXPR_FORCE... ops
git-svn-id: svn://svn.cc65.org/cc65/trunk@2677 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-23 21:37:11 +00:00
cuz
efdee34870 Mark RTI as "uses all registers" to avoid problems with the optimizer
removing register loads from an interrupt handler return.


git-svn-id: svn://svn.cc65.org/cc65/trunk@2676 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-22 13:02:37 +00:00
cuz
7e44224dd0 Moved StudyExpr + helpers into its own module
git-svn-id: svn://svn.cc65.org/cc65/trunk@2675 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-19 22:54:30 +00:00
cuz
cd918a387c Temp fix for some address size problems
git-svn-id: svn://svn.cc65.org/cc65/trunk@2674 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-18 20:50:55 +00:00
cuz
aa7b723b15 Added long address size
git-svn-id: svn://svn.cc65.org/cc65/trunk@2673 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-18 20:50:36 +00:00
cuz
5ef1f65c9b Allow conditional directives within .STRUCT7:UNION and .ENUM
git-svn-id: svn://svn.cc65.org/cc65/trunk@2672 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-17 18:49:50 +00:00
cuz
57cc152ad6 Added .SIZEOF
git-svn-id: svn://svn.cc65.org/cc65/trunk@2671 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-17 17:59:30 +00:00
cuz
c5ad7d9af1 Replace address mode detection for expressions
git-svn-id: svn://svn.cc65.org/cc65/trunk@2670 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-17 12:56:44 +00:00
cpg
353b7e66a1 implement DEFAULT_DEVICE support
git-svn-id: svn://svn.cc65.org/cc65/trunk@2669 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-14 22:41:01 +00:00
cpg
06d79d06df fix newfd comment
git-svn-id: svn://svn.cc65.org/cc65/trunk@2668 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-14 22:40:08 +00:00
cpg
83c2a8d517 DEFAULT_DEVICE; replaced some spaces with tabs
git-svn-id: svn://svn.cc65.org/cc65/trunk@2667 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-14 22:39:16 +00:00
cpg
178b188eac use tmp4 instead of tmp2; tmp2 might now be used by ucase_fn()
git-svn-id: svn://svn.cc65.org/cc65/trunk@2666 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-14 22:37:17 +00:00
cuz
0e392b79bd Added enums
git-svn-id: svn://svn.cc65.org/cc65/trunk@2665 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-14 09:03:32 +00:00
cuz
742b1ffd8e New function GenAddExpr
git-svn-id: svn://svn.cc65.org/cc65/trunk@2664 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-14 08:44:12 +00:00
cuz
ebd2336d2b Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@2663 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-13 22:19:56 +00:00
cuz
20608c81ce Added structs and unions, more work on scopes and expressions
git-svn-id: svn://svn.cc65.org/cc65/trunk@2662 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-13 22:03:24 +00:00
cuz
274bafe6a5 Remove bank.offs address spec
git-svn-id: svn://svn.cc65.org/cc65/trunk@2661 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-13 22:02:45 +00:00
cuz
756de64bd5 Make stuff global
git-svn-id: svn://svn.cc65.org/cc65/trunk@2660 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-13 09:28:43 +00:00
cuz
88855545e4 Address size fixes
git-svn-id: svn://svn.cc65.org/cc65/trunk@2659 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-13 00:40:40 +00:00
cuz
ba68b5f87a More work on expressions and address sizes
git-svn-id: svn://svn.cc65.org/cc65/trunk@2658 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-13 00:21:31 +00:00
cuz
227f4a7bc2 Removed useless __errno imports
git-svn-id: svn://svn.cc65.org/cc65/trunk@2657 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-13 00:12:56 +00:00
cuz
6c78e0deab Added the Apple tgi driver
git-svn-id: svn://svn.cc65.org/cc65/trunk@2656 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-12 17:23:29 +00:00
cuz
71ceff750d Special config for use with the TGI driver added
git-svn-id: svn://svn.cc65.org/cc65/trunk@2655 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-12 16:55:16 +00:00
cuz
017fc00dc9 Fixed a typo
git-svn-id: svn://svn.cc65.org/cc65/trunk@2654 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-12 16:41:47 +00:00
cuz
905c0e6ef8 New TGI driver by Stefan Haubenthal
git-svn-id: svn://svn.cc65.org/cc65/trunk@2653 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-12 16:41:09 +00:00
cuz
9b24bbc85c Removed the HORLINE entry point
git-svn-id: svn://svn.cc65.org/cc65/trunk@2652 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-12 16:40:54 +00:00
cuz
980f5b598f Precalculate some expressions
git-svn-id: svn://svn.cc65.org/cc65/trunk@2651 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-12 16:40:26 +00:00
cuz
7c5a400e01 Cosmetic changes
git-svn-id: svn://svn.cc65.org/cc65/trunk@2650 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-12 16:40:14 +00:00
cuz
f174cda3d0 Try to be more resolution independent
git-svn-id: svn://svn.cc65.org/cc65/trunk@2649 b7a2c559-68d2-44c3-8de9-860c34a00d81
2003-11-12 16:32:25 +00:00