3fd52eb57f
Added dependency file generation to the assembler. This includes two new options, --create-dep and --create-full-dep. The latter will include files that are passed via debug info to the assembler.
uz
2010-05-01 11:59:55 +00:00
96cf7f6271
Changed generation of makefile dependencies: * There are now two options, --create-dep and --create-full-dep. One will add system includes, the other not. * Both options require a file name. This is an incompatible change(!) but has the advantage that the user is in control of extension and path of the generated file. * Output will always include a phony target for the input files. This may not work with all make programs.
uz
2010-05-01 09:42:12 +00:00
54740da820
More preparations for an extension of the calling conventions.
uz
2010-04-29 20:30:49 +00:00
77bfcc1ff0
Change the OptStackOps function so that it adjusts the instruction pointer after changing code. Without this correction, the insn pointer may be wrong after one of the subfunctions has changed code, which may cause a valid sequence not to be detected. This change (when proven good) may also go into 2.13.
uz
2010-04-25 21:51:59 +00:00
c63ecc8c28
Added a paragraph about the order in which the command line is parsed.
uz
2010-04-23 18:34:52 +00:00
186657e5ad
Save some cycles.
ol.sc
2010-04-22 19:51:34 +00:00
2e6d218801
Remember the type of the input file. This may be used later to create more variants of dependency files.
uz
2010-04-22 19:40:50 +00:00
bfd8f4e108
Implemented new .PUSHCPU and .POPCPU commands.
uz
2010-04-18 18:47:16 +00:00
922cbf08eb
Added several functions to the intstack module.
uz
2010-04-18 18:40:59 +00:00
48c647b6bd
Added while loop inversion.
uz
2010-04-17 15:19:35 +00:00
32be81510a
Minor corrections by Robert Hurst for use with RPMFusion.
uz
2010-04-16 19:37:59 +00:00
6b3e515573
Reverted part of change 4108 that prevented an optimization step to find proper replacements. Some other rearrangements for slightly better code.
uz
2010-04-10 11:23:39 +00:00
4299e2db05
Added the cdecl keyword
uz
2010-04-09 19:47:33 +00:00
ca9170cd20
More strcmp inlining.
uz
2010-03-23 21:47:12 +00:00
8e26fef105
Fixed the size of the RAM segment for the CBM610. The routine that does cross-bank calls is located at $FECB and the stack grows downwards from there.
uz
2010-03-23 19:40:48 +00:00
e4d63daff1
Comment fix.
uz
2010-03-23 19:39:32 +00:00
e192edd021
Inline some occurances of strcmp.
uz
2010-03-22 22:28:45 +00:00
3d06780f6d
For the CBM 510, the stack is not part of RAM. And, because of the cross-bacnk routine, it is smaller than the number used before.
uz
2010-03-21 21:39:44 +00:00
4b689107a4
- No more HEAP segment - RAM reduced by __STACKSIZE__ - Unified formatting
ol.sc
2010-03-21 17:10:17 +00:00
0e60a60c3e
Fixed an optimizer problem.
uz
2010-03-21 14:08:46 +00:00
1a4e2edede
Reenable compile time evaluation of strlen for string literals.
uz
2010-03-20 18:51:59 +00:00
15f95d7623
Changed the size of available RAM so that the last used address is $7FFF.
uz
2010-03-20 18:08:27 +00:00
38b0dbde84
Document the new linker config file string behaviour.
uz
2010-03-20 17:56:27 +00:00
7450c25404
Allow escape sequences prefixed by '%' in strings. '%%' denotes a single percent sign, %O is the name of the output file.
uz
2010-03-20 17:48:15 +00:00
b759e753e4
Changed the type of CfgSVal to a string buffer and removed the upper limit for the length.
uz
2010-03-20 17:23:51 +00:00
bf12833d12
Added a paragraph about the new c64-dqbb.emd driver.
uz
2010-03-19 20:51:47 +00:00
09adce2fec
Added patches to make systime work correctly with the different video systems (Stefan Haubenthal).
uz
2010-03-19 20:46:56 +00:00
21c38fa7db
Removed a forgotten ScrollSave variable (Stefan Haubenthal).
uz
2010-03-17 17:09:24 +00:00
af27ae6d79
Fixed two issues with macros: * A newline between the macro name and the argument list of a function like macro was not accepted. * An unterminated macro argument list was not always detected.
uz
2010-03-14 17:46:02 +00:00
44852e317e
Shortened the code
uz
2010-03-08 18:40:55 +00:00
8663ae5975
Fixed line endings I broke with recent change.
ol.sc
2010-03-07 21:00:42 +00:00
9656dde9e3
Fix scrolling (again). The old code switched off scrolling completely, as a consequence it didn't work when write(FILENO_STDOUT, ...) was used. So we will have to disable scrolling on a per character basis in cputc.
uz
2010-03-07 13:37:58 +00:00
28736e9a17
The C16 is not really a separate machine, but identical to the Plus/4, so the include file must just include the file for the Plus/4.
uz
2010-03-06 15:17:08 +00:00
38a1690968
Replaced '=' by ':=' where applicable and moved the atmos specific assembler include into the asminc directory.
uz
2010-02-28 10:22:26 +00:00
207a8ea10d
Fixes for the pet-ptvjoy driver and a new standard joystick driver by Marco van den Heuvel. Cleanup and integration by me.
uz
2010-02-28 09:56:51 +00:00
a284d8ffeb
Moved the pet.inc file into the asminc subdirectory. Added definitions for the 6522 VIA and fixed the assignments for addresses to use ':=' instead of '='.
uz
2010-02-28 09:55:12 +00:00
4cf5b40849
Removed pet.inc, since the real file is still in the pet directory and this one was added erronously.
uz
2010-02-28 09:53:04 +00:00
2469af49d7
Added definitions for the 6522 VIA.
uz
2010-02-28 09:47:32 +00:00
8b6a40c04e
Patch by Marco van den Heuvel that adds detection of GEOS 1.1 and the plus4 GEOS to the get_ostype function.
uz
2010-02-27 14:46:43 +00:00
5e065391fd
Added a new document that describes how to use the cc65 toolset with a currently unsupported hardware platform. Written and constributed by Bruce Reidenbach.
uz
2010-02-25 21:51:00 +00:00
b256d6fb46
Made Olivers devnum patch (r4588) work with the PET-II models. On these machines, the program runs in a separate 64K bank, and zeropage variables need to be copied from the system bank into the execution bank to read by a simple load operation. The change is currently untested!
uz
2010-02-20 19:46:51 +00:00
9ef9396b71
Added comment based on mailing list posting by Greg King.
ol.sc
2010-02-20 09:52:05 +00:00
2bd1f2f69f
Fixed a problem with a disabled cursor: Switching off the cursor using the kernal routine does not work, when the cursor is not at the same position where it was switched on, because when switching it on, the kernal remembers the character attribute and restores this when switching it off. So characters may get the wrong attribute. The solution is to always switch the cursor on, before switching it off.
uz
2010-02-18 20:31:50 +00:00
4bf888aa62
Fixed a video problem: When switching the display, the SCROLL flag gets cleared, which in turn causes the display to scroll when a character is output in the lower right corner.
uz
2010-02-15 18:32:15 +00:00
5f18ddbec9
Patches by Greg King to avoid crosstalk between mouse and keyboard.
uz
2010-02-15 17:52:41 +00:00
d1aad57b98
Initialize _curunit from the zeropage value DEVNUM (aka First Address) in a constructor with a very high priority to be called before DEVNUM gets overwritten by other constructors.
ol.sc
2010-02-14 23:12:54 +00:00
d4592d1a7c
New EMD driver for the Double Quick Brown Box cartridge, written and contributed by Marco van den Heuvel with quite some cleanup by me.
uz
2010-02-12 11:09:23 +00:00
49f6f3972b
Make PIA upper case for orthogonality.
uz
2010-02-12 11:07:07 +00:00
6a712d8b9e
More driver cleanup.
uz
2010-02-12 10:46:57 +00:00
8bae793f48
Use the .max function to calculate the backup space.
uz
2010-02-11 18:56:47 +00:00
61b69316c5
Added builtin .min() and .max() pseudo functions to the assembler.
uz
2010-02-11 18:54:08 +00:00
c72cf88723
Comment update.
uz
2010-02-04 22:29:57 +00:00
7d03059240
Fixes for the ptvjoy drivers by Marco van den Heuvel.
uz
2010-02-04 21:02:00 +00:00
e65f966d25
Added DTV detection code by Marco van den Heuvel.
uz
2010-02-04 20:27:48 +00:00
aa6a507991
Some more improvements (untested).
uz
2010-02-04 20:08:50 +00:00
b93a0b0511
Added doc for the isepic extended memory driver.
uz
2010-02-04 19:21:18 +00:00
37fbe08df2
New extended memory driver for the C256K memory extension. Written and contributed by Marco van den Heuvel with several changes by me.
uz
2010-02-04 19:19:17 +00:00
074cd57d84
Doc update for the georam emd driver.
uz
2010-02-04 19:15:18 +00:00
44bb5c62e6
Moved the extended RAM driver to c128-ram2.emd and restored the old one. Machines with RAM in pages 2+3 are quite rare, so it's better to have the additional code+features in a separate driver.
uz
2010-02-04 18:28:56 +00:00
4e18dad55a
New EMD driver for the ISEPIC cartridge written and contributed by Marco van den Heuvel with some cleanup by me.
uz
2010-02-02 18:32:34 +00:00
31819685af
Fixes for joysticks 3+4 in the ptv joystick driver. Contributed by Marco van den Heuvel.
uz
2010-02-02 17:05:18 +00:00
972c3fd7ca
Add MMU config registers 2+3 (Marco van den Heuvel).
uz
2010-02-02 08:19:19 +00:00
9d440c0102
Added new return code for get_ostype().
uz
2010-02-01 18:04:31 +00:00
7d731dce02
Marco van den Heuvel contributed code to detect a C64 DTV.
uz
2010-02-01 18:04:14 +00:00
1524b0c13f
Added code to the driver to use also banks 2 and 3 if present. Contributed by Marco van den Heuvel.
uz
2010-02-01 17:56:37 +00:00
6c2fb80084
Added size checking code contributed by Marco van den Heuvel.
uz
2010-02-01 07:20:06 +00:00
cf4d3d0a16
No need to save the Y register in INSTALL.
uz
2010-02-01 07:19:47 +00:00
3bf4afae50
Added size checking code contributed by Marco van den Heuvel.
uz
2010-02-01 07:15:41 +00:00
80b1dddb7f
Added size checking routine contributed by Marco van den Heuvel.
uz
2010-02-01 07:07:24 +00:00
5477e62e3a
Fixed open mode for second try in DoIncBin (Greg King).
uz
2010-01-31 20:49:40 +00:00
b02cc40bc0
Fixed a copy&paste error.
uz
2010-01-31 11:10:45 +00:00
e5c0077b88
Added explicit tgi_clear() after tgi_init() now that this isn't done by tgi_init() anymore.
ol.sc
2010-01-26 20:12:35 +00:00
cbd2ffdf29
Fixed formatting (broken due to wrong tab settings).
ol.sc
2010-01-26 20:04:51 +00:00
6d89093d4b
Removed the call to tgi_clear from tgi_init, so the screen is not automatically cleared.
uz
2010-01-26 16:51:03 +00:00
79820fe4ec
Added a separate include search path for binary includes. These aren't searched any longer in the standard include path.
uz
2010-01-25 20:33:01 +00:00
47a8b9191a
Minor reformatting.
ol.sc
2010-01-24 14:53:48 +00:00
d79dae4570
Added short documentation of the recently added ioctl for mixing graphics with 4 lines of text.
ol.sc
2010-01-24 12:05:22 +00:00
7391c15971
Fixed minor C&P error.
ol.sc
2010-01-24 11:44:08 +00:00
e9f69ad123
Factored out generic LINE implementation based on SETPIXEL from the three drivers previously containing the identical code.
ol.sc
2010-01-24 11:21:44 +00:00
16129b2724
Quite some minor changes to have the two C128 TGI driver source files only differ where they are semantically different.
ol.sc
2010-01-23 08:55:37 +00:00
5175f95341
Fixed a problem in the optimizer function that rewrites ops that use the stack. Useless instructions (duplicate loads or transfers) within the sequence are left intact and may cause problems because the interfere with the replacement code. A run of OptRemoveUnusedLoads and friends should fix the problem, bit this step may be disabled, so the routine has to check for this condition and avoid it (by not doing the replacement).
uz
2010-01-20 19:47:44 +00:00
3d5d3ef76a
Define HEADER memory area for the EXEHDR segment for consistency reasons with the other targets with an EXEHDR segment (apple2[enh], atari, lynx, cbm[5|6]10).
ol.sc
2010-01-17 21:47:03 +00:00
1ec3eaf507
Fixed the description of the return codes of the is... functions from ctype.h (Greg King).
uz
2010-01-13 16:16:17 +00:00
9c49513d80
Added support for several machines.
ol.sc
2010-01-08 23:37:25 +00:00
246a8db9ac
Some optimization.
ol.sc
2010-01-08 23:09:02 +00:00
c71c75c162
- Added ioctl for mixing graphics with 4 lines of text. - Preserve drawing color during CLEAR.
ol.sc
2010-01-08 22:45:59 +00:00
c3ef1369f3
Minor comment adjustment.
ol.sc
2010-01-08 22:24:38 +00:00
7d3dc3891e
Added Johan Kotlinski.
uz
2010-01-05 11:18:46 +00:00
dbd6e07fac
Converted the CREDITS file to utf-8.
uz
2010-01-05 11:17:49 +00:00
080637a377
Fixed a typo.
uz
2010-01-03 08:58:52 +00:00
41f7757204
Ignore unknown preprocessor directives in an #if group that is excluded.
uz
2009-12-30 11:20:09 +00:00
63c53b8021
P.A.S.E. joystick driver for the Oric Atmos, contributed by Stefan Haubenthal.
uz
2009-12-21 21:15:34 +00:00
62669bcb73
P.A.S.E. joystick driver for the Oric Atmos, contributed by Stefan Haubenthal.
uz
2009-12-21 21:14:21 +00:00
651df0889c
Minor comment adjustment.
ol.sc
2009-12-19 13:09:57 +00:00
c6831e936a
Added --forget-inc-paths to the assembler command line to avoid problems if more than one version of ca65 is installed on the machine (Spiro Trikaliotis).
uz
2009-12-18 11:58:50 +00:00