1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 15:05:14 +00:00
Commit Graph

1568 Commits

Author SHA1 Message Date
cpg
82696446fc added randomize
git-svn-id: svn://svn.cc65.org/cc65/trunk@1494 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-06 22:21:15 +00:00
cpg
b98a3bd537 zap also deletes *.tgi files
git-svn-id: svn://svn.cc65.org/cc65/trunk@1493 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-06 21:58:00 +00:00
cuz
786b3a7fe8 Moved _vic.h to _vic2.h. Renamed __vic to __vic2.
Added a new file _vic.h for the VIC (1) used in the VIC20.
Added the VIC chip to vic20.h.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1492 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 20:33:50 +00:00
cuz
511b3b45f2 Add _randomize.
Make realloc __fastcall__.
Make identifiers with a leading underscore visible even if __STRICT_ANSI__ is
defined, since those don't pollute the application namespace.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1491 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 20:23:06 +00:00
cuz
abec29c613 Make realloc a __fastcall__ function
git-svn-id: svn://svn.cc65.org/cc65/trunk@1490 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 20:21:14 +00:00
cuz
163c421db0 Renamed randomize to _randomize
git-svn-id: svn://svn.cc65.org/cc65/trunk@1489 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 20:17:38 +00:00
cuz
839b425890 Change initial seed to 1
git-svn-id: svn://svn.cc65.org/cc65/trunk@1488 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 13:19:43 +00:00
cuz
3fae969b5b New randomize() function for nearly all platforms
git-svn-id: svn://svn.cc65.org/cc65/trunk@1487 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 10:48:20 +00:00
cpg
444aa7c944 turn on cursor before returning to DOS
git-svn-id: svn://svn.cc65.org/cc65/trunk@1486 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 00:35:16 +00:00
cpg
345bec94f1 some fixes for last change
git-svn-id: svn://svn.cc65.org/cc65/trunk@1485 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-04 23:30:19 +00:00
cuz
4cc56dacbd Extend description of %v inline assembler format specifier
git-svn-id: svn://svn.cc65.org/cc65/trunk@1484 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-04 13:57:27 +00:00
cpg
e8afafce78 improved handling of cursor display and position
git-svn-id: svn://svn.cc65.org/cc65/trunk@1483 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-03 22:54:52 +00:00
cpg
b304f04cc0 initial check-in
git-svn-id: svn://svn.cc65.org/cc65/trunk@1482 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-03 22:52:39 +00:00
cpg
6078dea817 honour cursor setting
git-svn-id: svn://svn.cc65.org/cc65/trunk@1481 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-03 22:10:55 +00:00
cuz
dadd136ae1 Use constants for datatype sizes
git-svn-id: svn://svn.cc65.org/cc65/trunk@1480 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-02 12:39:10 +00:00
cuz
2275e4c2a8 Moved divt.s from runtime into common because it's a C library function, not a
runtime support function.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1479 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-02 10:52:36 +00:00
cuz
46e7fbd9e5 Remove the casts, they are no longer needed
git-svn-id: svn://svn.cc65.org/cc65/trunk@1478 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-01 21:27:59 +00:00
cuz
8810e38bb7 Move the assignment parser into a separate module.
When assigning structures, copy them using the primary register when the
size is 1, 2, or 4.
When assigning structures, allow structures by value when the size is 1,
2, or 4. These structures are expected to be in the primary register. The
only case when this can happen is by return from function, so this change
makes div() work.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1477 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-01 21:27:31 +00:00
cuz
5548b6fd56 Work on better type casts - not yet finished
git-svn-id: svn://svn.cc65.org/cc65/trunk@1476 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-01 15:16:16 +00:00
cuz
571ea849d9 Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1475 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-29 17:53:17 +00:00
cuz
9f8887fe6b No support files in atmos dir
git-svn-id: svn://svn.cc65.org/cc65/trunk@1474 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-28 23:35:13 +00:00
cuz
3ceb9e86de Expanded entry for Greg King
git-svn-id: svn://svn.cc65.org/cc65/trunk@1473 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-25 20:54:44 +00:00
cuz
bd06bc2e73 Added stdbool.h provided by Greg King
git-svn-id: svn://svn.cc65.org/cc65/trunk@1472 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-25 20:53:22 +00:00
cuz
047ecd1955 Division test program by Greg King
git-svn-id: svn://svn.cc65.org/cc65/trunk@1471 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-25 20:48:35 +00:00
cuz
55baa52735 Added the div function
git-svn-id: svn://svn.cc65.org/cc65/trunk@1470 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-25 20:46:57 +00:00
cuz
1ee3ccfdc2 Added new div() function written by Greg King
git-svn-id: svn://svn.cc65.org/cc65/trunk@1469 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-25 20:42:18 +00:00
cuz
82684d98fb Minor optimization suggested by Greg King
git-svn-id: svn://svn.cc65.org/cc65/trunk@1468 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-24 19:23:24 +00:00
cuz
89fe03a728 Fixed a problem with perror: The error code may get overwritten before it
can be output. Report from Greg King.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1467 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-18 13:38:23 +00:00
cuz
914b2a7e37 New store optimization.
New functions RegValIsKnown and RegValIsUnknown should be used instead of
direct compares against zero, so we can change the "unknown" representation
one day.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1466 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-17 21:37:01 +00:00
cuz
4da19658c2 Fixed error "variable has unknown size" for a local array where the size
was not given (introduced by last change).


git-svn-id: svn://svn.cc65.org/cc65/trunk@1465 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-17 21:14:40 +00:00
cuz
49fd7134e5 Fixed a buffer overflow (report from Christian Groessler).
git-svn-id: svn://svn.cc65.org/cc65/trunk@1464 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-14 16:23:26 +00:00
cuz
277e5ff77d Fixed some bad looking stuff
git-svn-id: svn://svn.cc65.org/cc65/trunk@1463 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 21:51:14 +00:00
cuz
e02d973316 List of short options were missing
git-svn-id: svn://svn.cc65.org/cc65/trunk@1462 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 21:47:43 +00:00
cuz
c4d44dc55a Remove statement about initialization of locals
git-svn-id: svn://svn.cc65.org/cc65/trunk@1461 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 21:45:44 +00:00
cuz
c3661446ee Document the new #pragma syntax. Add comment about not using the asm names
of global symbols in inline assembler statements.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1460 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 21:44:19 +00:00
cuz
ab4a9eb5db Remove paragraph about initializaton of locals
git-svn-id: svn://svn.cc65.org/cc65/trunk@1459 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 21:16:08 +00:00
cuz
83fb2c8ab4 Allow initialization of local variables of compound type
git-svn-id: svn://svn.cc65.org/cc65/trunk@1458 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 21:15:24 +00:00
cuz
dcdaf8fd49 Restructured DeclareLocals()
git-svn-id: svn://svn.cc65.org/cc65/trunk@1457 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 20:24:16 +00:00
cuz
872c2b4453 Made a lot of short functions inline
git-svn-id: svn://svn.cc65.org/cc65/trunk@1456 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-10 20:23:41 +00:00
cuz
2e5fa9575c Add info about more functions
git-svn-id: svn://svn.cc65.org/cc65/trunk@1455 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-09 19:39:45 +00:00
cuz
13642fc6c4 Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1454 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-09 19:39:36 +00:00
cuz
e68b8160ed Added more size optimizations, separate module
git-svn-id: svn://svn.cc65.org/cc65/trunk@1453 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-08 20:56:00 +00:00
cuz
9ca21c07e0 Output an error if an invalid address is used
git-svn-id: svn://svn.cc65.org/cc65/trunk@1452 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 20:58:22 +00:00
cuz
3c31d063f7 New optimizer pass OptShift3.
Renamed CE_IsCall to CE_IsCallTo.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1451 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 20:54:01 +00:00
cuz
a0496ca53d Fixed an omission in AdjustStackOffset. Use CS_IsBasicBlock in OptStackOps.
git-svn-id: svn://svn.cc65.org/cc65/trunk@1450 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 19:03:12 +00:00
cuz
9a62c92489 Improved implementation of OptPushPop
git-svn-id: svn://svn.cc65.org/cc65/trunk@1449 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 19:01:46 +00:00
cuz
1647c6783f New functions CS_ResetMarks, CS_ResetAllMarks and CS_IsBasicBlock.
git-svn-id: svn://svn.cc65.org/cc65/trunk@1448 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 19:01:16 +00:00
cuz
62b3576f5f Use other representations for SCHAR_MIN, SHORT_MIN, INT_MIN and LONG_MIN.
Among other things that avoids the compiler warning "constant is long" when
using INT_MIN.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1447 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 18:59:08 +00:00
cuz
b0559a4b19 Fixed a string in the help screen
git-svn-id: svn://svn.cc65.org/cc65/trunk@1446 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 12:03:24 +00:00
cuz
6047165325 Fixed problem with earlier change
git-svn-id: svn://svn.cc65.org/cc65/trunk@1445 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-05 22:55:42 +00:00