7391c15971Fixed minor C&P error.
ol.sc
2010-01-24 11:44:08 +00:00
e9f69ad123Factored 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
16129b2724Quite 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
5175f95341Fixed 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
3d5d3ef76aDefine 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
1ec3eaf507Fixed the description of the return codes of the is... functions from ctype.h (Greg King).
uz
2010-01-13 16:16:17 +00:00
9c49513d80Added support for several machines.
ol.sc
2010-01-08 23:37:25 +00:00
c6831e936aAdded --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
8ea7c876d6Added macro for ssc slot selection.
ol.sc
2009-12-13 11:23:20 +00:00
10e810b623Added macro for ssc slot selection.
ol.sc
2009-12-13 11:21:59 +00:00
5de9f6dfe5Added macro for ssc slot selection.
ol.sc
2009-12-13 11:21:22 +00:00
b94dfc9025Added support for the Apple2 machines.
ol.sc
2009-12-13 11:16:38 +00:00
36cf23680cMAde the second parameter of tgi_ioctl a void* instead of an unsigned to keep the interface more uniform between the driver APIs.
uz
2009-12-11 14:33:53 +00:00
14030c0852Added a missing "the".
uz
2009-12-10 22:48:06 +00:00
7ec8a5b6dcAdded some definitions for version 1.3 of the o65 format.
uz
2009-12-10 22:44:27 +00:00
c7ff487d6bCleaned BUGS list (which is rather old anyway).
uz
2009-12-10 22:30:32 +00:00
6bfa7fbaa2Added some more detail to the "Binary format" section of the CBM docs.
uz
2009-12-10 22:25:17 +00:00
7e2a24176fReplaced $30 by literal '0' for better readability.
uz
2009-12-10 22:12:24 +00:00
13698871cbRemoved the call to CLRCH in the startup code.
uz
2009-12-10 21:22:17 +00:00
6b148748a9Replaced left-over tab with space.
ol.sc
2009-12-09 18:16:02 +00:00
60bc009991* Moved the BASIC stub that calls the compiled program into it's own segment named EXEHDR. * Renamed BASICHDR to EXEHDR for the PET-II machines. * Moved the call to CHRCH in front of the code that saves the zero page, since open files are sometimes remembered in the zero page, so we need to close them before we grab a copy.
uz
2009-12-09 12:42:24 +00:00
1fae13274eAn assignment for the ZPSAVE segment was missing in the linker config for the 32K memory config of the VIC20. Hint from Robert Hurst.
uz
2009-12-08 20:41:43 +00:00
7d94dc50a1New option and #pragma --local-strings that causes string literals to be output immediately.
uz
2009-12-08 20:35:24 +00:00
2bca737f57more space improvements by Daniel Serpell
cpg
2009-12-07 18:58:32 +00:00
a467095216Relax header checking somewhat, so second source fonts are accepted.
uz
2009-12-06 12:24:59 +00:00
3976746735Rewrote literal handling. Literals are now saved together with other function data, and at the end of compilation merged if possible. Literals for unused functions are removed together with the function.
uz
2009-12-05 22:39:45 +00:00
9b7c16ec4cFixed problem with last change. Wide string constants were not handled correctly.
uz
2009-12-05 15:14:11 +00:00
50ff6d0768Create one literal pool per function, so that literal pool data is removed together with a function, if it is not used. Literal storage can now be controlled by #pragma writable-strings on a per function basis.
uz
2009-12-04 14:12:25 +00:00
1f90ec93a0Move global segment creation to a better place in source.
uz
2009-12-04 13:04:40 +00:00
ff4eeebec2Makefile patch contributed by Greg King: I added the "MAKEOPTS=" to the top-level "gcc.mak" that he wants, and I changed the tool source tree's top-level make-file so that it supports parallel building. (I added a rule that builds the common library before building anything else.)
uz
2009-12-02 15:21:22 +00:00
dc977737aaPatch contributed by Greg King: 1. Implements a real progress bar. 2. Decomposes the timer's result.
uz
2009-12-02 15:15:49 +00:00
e65719bf98don't hardcode 'D' as device name, use __defdev
cpg
2009-11-26 18:47:14 +00:00
644d44bcaeupdated with defdev.c and scrcode.s
cpg
2009-11-26 18:22:03 +00:00
7fb08aa749move __do_oserror and __inviocb into their own source files
cpg
2009-11-25 17:35:21 +00:00
9b058add4aremove not longer needed import of __errno
cpg
2009-11-25 17:08:24 +00:00
daa41d41d6remove not longer needed import of tmp2 and tmp3
cpg
2009-11-25 17:06:47 +00:00
d17e0f7c02space improvements by Daniel Serpell
cpg
2009-11-25 17:03:18 +00:00
ce931b85beIn case of parse errors for structs, don't just set the type of the result to "int", return a valid lvalue instead.
uz
2009-11-24 23:02:58 +00:00
3fb0c660dcFix a problem with error handling: The E_HAVE_MARKS flag must not be removed from an expression in case of an error.
uz
2009-11-24 22:56:56 +00:00
327c989d8bSupport for the HuC6280 (CPU of the PC Engine) contributed by Tobias Gunkel.
uz
2009-11-24 20:04:27 +00:00
bfbf94404bSqueezed bytes and cycles out of the kbhit functions for almost all platforms.
uz
2009-11-24 18:31:16 +00:00
7357b44104don't use constructor to setup runtime stack
cpg
2009-11-23 22:06:32 +00:00
fa25cc732fmove fdtoiocb function into its own file -- idea by Daniel Serpell
cpg
2009-11-23 21:59:29 +00:00
5a593b8105poor man's _toascii routine, contributed by Fatih Aygun
cpg
2009-11-23 21:35:33 +00:00
314984aae4save 3 bytes, patch by Daniel Serpell
cpg
2009-11-23 21:21:49 +00:00
2011f92c3asave a byte (idea by Uz, done by Daniel Serpell)
cpg
2009-11-23 21:17:56 +00:00
c7a33334baDon't hardcode the address of the SYS call for the startup code of the Commodore machines.
uz
2009-11-23 12:01:24 +00:00
61b2834508don't call __getdevdef in crt0.s, but make it a constructor of getdefdev.s
cpg
2009-11-19 22:12:51 +00:00
38901e1614move setup of stdin/stdout/stderr from crt0.s to getfd.s
cpg
2009-11-19 20:57:23 +00:00
429c3888bcadd a comment describing why this file is really included despite an obvious reference to it
cpg
2009-11-18 23:52:54 +00:00
cce24a2c9ano TGI_ERR_NO_MEM or TGI_ERR_NO_IOCB anymore: replaced by TGI_ERR_NO_RES
cpg
2009-11-15 14:55:14 +00:00
b739a2d335changes from Fatih
cpg
2009-11-15 14:46:09 +00:00
097b094fddReplaced TGI_ERR_NO_MEM by TGI_ERR_NO_RES
uz
2009-11-13 15:53:01 +00:00
e74ed31936Fixed TGI error codes and messages. Removed the Atari specific ones. tgi_load_vectorfont will now return TGI_ERR_NO_MEM and clear the error code if the load was successful.
uz
2009-11-13 12:57:10 +00:00
d1e37cc241The outcode constants from tgi_outcode went into this header file.
uz
2009-11-12 18:01:11 +00:00
d1e4687540Final touches to the first full version of the vector font output.
uz
2009-11-12 18:00:17 +00:00
5dc80c2615Rename the 8x8 multiplication using the same scheme as for the 16x16 multiplication.
uz
2009-11-12 15:48:11 +00:00
80b81549fdMoved outcode calculation in a separate module.
uz
2009-11-12 15:10:45 +00:00
884aff9191Prepare for reading keypresses from the X server.
uz
2009-11-12 11:19:44 +00:00
b30d834772remove superfluous ".code" line
cpg
2009-11-11 23:17:55 +00:00
ab6ff06e76bugfix from Fatih
cpg
2009-11-11 23:15:42 +00:00
b86ded5192add some comments
cpg
2009-11-10 22:00:41 +00:00
b18d6ad8dbadd Atari TGI drivers from Fatih Aygun
cpg
2009-11-10 21:53:55 +00:00
fe5adb5c4eWorking on stroked font output.
uz
2009-11-10 18:50:33 +00:00
1154a11649tgi_vectorchar takes now a char argument. Added tgi_install_vectorfont.
uz
2009-11-06 16:18:13 +00:00
ce02b5668cAdded an include file for TGI vector fonts.
uz
2009-11-06 16:00:43 +00:00
e12bd13e16Added clipping for lines.
uz
2009-11-06 15:26:46 +00:00
24e68f5df3Changed a comment.
uz
2009-11-06 12:08:25 +00:00
e319fc217bHold the maximum X and Y coordinate in variables instead of calculating them when needed. The variables make signed compares in the line clipper easier.
uz
2009-11-06 12:02:52 +00:00
eee4430061Added a tgi_pieslice function.
uz
2009-11-05 20:32:17 +00:00
bafd7a7279Fixed a sign error.
uz
2009-11-05 20:26:23 +00:00
787f069738Moved fixed point multiplication and rounding into an asm module.
uz
2009-11-05 20:16:43 +00:00
de6050f21dAdded a tgi_arc function. Removed the old ellipse code and create a new ellipse module that calls tgi_arc.
uz
2009-11-05 19:52:18 +00:00
78070d8bfbAdded tgi_circle and tgi_ellipse functions. The latter works, but could be optimized.
uz
2009-11-05 17:14:29 +00:00
a08b7d4dafAdded prototypes for more mul/div functions. Some of the don't currently exist.
uz
2009-11-05 17:12:18 +00:00
18272c0427Working on the division and multiplication routines.
uz
2009-11-04 19:41:54 +00:00