Commit Graph

  • 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
  • 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