36cf23680c
MAde 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
14030c0852
Added a missing "the".
uz
2009-12-10 22:48:06 +00:00
7ec8a5b6dc
Added some definitions for version 1.3 of the o65 format.
uz
2009-12-10 22:44:27 +00:00
c7ff487d6b
Cleaned BUGS list (which is rather old anyway).
uz
2009-12-10 22:30:32 +00:00
6bfa7fbaa2
Added some more detail to the "Binary format" section of the CBM docs.
uz
2009-12-10 22:25:17 +00:00
7e2a24176f
Replaced $30 by literal '0' for better readability.
uz
2009-12-10 22:12:24 +00:00
13698871cb
Removed the call to CLRCH in the startup code.
uz
2009-12-10 21:22:17 +00:00
6b148748a9
Replaced 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
1fae13274e
An 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
7d94dc50a1
New option and #pragma --local-strings that causes string literals to be output immediately.
uz
2009-12-08 20:35:24 +00:00
2bca737f57
more space improvements by Daniel Serpell
cpg
2009-12-07 18:58:32 +00:00
a467095216
Relax header checking somewhat, so second source fonts are accepted.
uz
2009-12-06 12:24:59 +00:00
3976746735
Rewrote 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
9b7c16ec4c
Fixed problem with last change. Wide string constants were not handled correctly.
uz
2009-12-05 15:14:11 +00:00
50ff6d0768
Create 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
1f90ec93a0
Move global segment creation to a better place in source.
uz
2009-12-04 13:04:40 +00:00
ff4eeebec2
Makefile 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
dc977737aa
Patch 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
e65719bf98
don't hardcode 'D' as device name, use __defdev
cpg
2009-11-26 18:47:14 +00:00
644d44bcae
updated with defdev.c and scrcode.s
cpg
2009-11-26 18:22:03 +00:00
7fb08aa749
move __do_oserror and __inviocb into their own source files
cpg
2009-11-25 17:35:21 +00:00
9b058add4a
remove not longer needed import of __errno
cpg
2009-11-25 17:08:24 +00:00
daa41d41d6
remove not longer needed import of tmp2 and tmp3
cpg
2009-11-25 17:06:47 +00:00
d17e0f7c02
space improvements by Daniel Serpell
cpg
2009-11-25 17:03:18 +00:00
ce931b85be
In 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
3fb0c660dc
Fix 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
327c989d8b
Support for the HuC6280 (CPU of the PC Engine) contributed by Tobias Gunkel.
uz
2009-11-24 20:04:27 +00:00
bfbf94404b
Squeezed bytes and cycles out of the kbhit functions for almost all platforms.
uz
2009-11-24 18:31:16 +00:00
7357b44104
don't use constructor to setup runtime stack
cpg
2009-11-23 22:06:32 +00:00
fa25cc732f
move fdtoiocb function into its own file -- idea by Daniel Serpell
cpg
2009-11-23 21:59:29 +00:00
5a593b8105
poor man's _toascii routine, contributed by Fatih Aygun
cpg
2009-11-23 21:35:33 +00:00
314984aae4
save 3 bytes, patch by Daniel Serpell
cpg
2009-11-23 21:21:49 +00:00
2011f92c3a
save a byte (idea by Uz, done by Daniel Serpell)
cpg
2009-11-23 21:17:56 +00:00
c7a33334ba
Don'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
61b2834508
don't call __getdevdef in crt0.s, but make it a constructor of getdefdev.s
cpg
2009-11-19 22:12:51 +00:00
38901e1614
move setup of stdin/stdout/stderr from crt0.s to getfd.s
cpg
2009-11-19 20:57:23 +00:00
429c3888bc
add a comment describing why this file is really included despite an obvious reference to it
cpg
2009-11-18 23:52:54 +00:00
4ee7121ba2
small space optimization -- 3 bytes reduced
cpg
2009-11-18 22:16:13 +00:00
cce24a2c9a
no 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
b739a2d335
changes from Fatih
cpg
2009-11-15 14:46:09 +00:00
097b094fdd
Replaced TGI_ERR_NO_MEM by TGI_ERR_NO_RES
uz
2009-11-13 15:53:01 +00:00
e74ed31936
Fixed 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
d1e37cc241
The outcode constants from tgi_outcode went into this header file.
uz
2009-11-12 18:01:11 +00:00
d1e4687540
Final touches to the first full version of the vector font output.
uz
2009-11-12 18:00:17 +00:00
5dc80c2615
Rename the 8x8 multiplication using the same scheme as for the 16x16 multiplication.
uz
2009-11-12 15:48:11 +00:00
80b81549fd
Moved outcode calculation in a separate module.
uz
2009-11-12 15:10:45 +00:00
884aff9191
Prepare for reading keypresses from the X server.
uz
2009-11-12 11:19:44 +00:00
b30d834772
remove superfluous ".code" line
cpg
2009-11-11 23:17:55 +00:00
ab6ff06e76
bugfix from Fatih
cpg
2009-11-11 23:15:42 +00:00
b86ded5192
add some comments
cpg
2009-11-10 22:00:41 +00:00
b18d6ad8db
add Atari TGI drivers from Fatih Aygun
cpg
2009-11-10 21:53:55 +00:00
fe5adb5c4e
Working on stroked font output.
uz
2009-11-10 18:50:33 +00:00
1154a11649
tgi_vectorchar takes now a char argument. Added tgi_install_vectorfont.
uz
2009-11-06 16:18:13 +00:00
ce02b5668c
Added an include file for TGI vector fonts.
uz
2009-11-06 16:00:43 +00:00
e12bd13e16
Added clipping for lines.
uz
2009-11-06 15:26:46 +00:00
24e68f5df3
Changed a comment.
uz
2009-11-06 12:08:25 +00:00
e319fc217b
Hold 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
eee4430061
Added a tgi_pieslice function.
uz
2009-11-05 20:32:17 +00:00
bafd7a7279
Fixed a sign error.
uz
2009-11-05 20:26:23 +00:00
787f069738
Moved fixed point multiplication and rounding into an asm module.
uz
2009-11-05 20:16:43 +00:00
de6050f21d
Added 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
78070d8bfb
Added tgi_circle and tgi_ellipse functions. The latter works, but could be optimized.
uz
2009-11-05 17:14:29 +00:00
a08b7d4daf
Added prototypes for more mul/div functions. Some of the don't currently exist.
uz
2009-11-05 17:12:18 +00:00
18272c0427
Working on the division and multiplication routines.
uz
2009-11-04 19:41:54 +00:00
655ba3e6ee
Added a C callable entry point for the division routine.
uz
2009-11-04 18:25:29 +00:00
c200e0ec94
Added division routine. Removed C callable entry points from mul routines, they're now in common.
uz
2009-11-04 18:23:40 +00:00
851926b301
Add C callable special multiplication routines.
uz
2009-11-04 18:17:00 +00:00
56e035635b
Use new multiplication routine.
uz
2009-11-04 13:46:16 +00:00
7c804513fa
The upper 16 bit differ between signed and unsigned multiplication, so while for 16x16=16, the unsigned routine can be used, regardless of signedness, this is not true for 16x16=32.
uz
2009-11-04 13:45:27 +00:00
1bec071755
- Replaced font .byte's with font .incbin file - Adjusted font width declaration from 8 to 7 - Modified font using Beagle Bros Shape Mechanic font editor to look like Apple2 text mode glyphs (with the exception of '_' because OUTTEXT _always_ inserts 2 empty pixels between chars)
ol.sc
2009-11-03 22:20:48 +00:00
2135bd1543
Added prototypes for C callable multiplication routines.
uz
2009-11-03 20:36:30 +00:00
100c470727
Added C callable entry point for the 16x16=32 multiplication.
uz
2009-11-03 17:43:57 +00:00
0c1703f8fd
Added 16*16=32 multiplication routine.
uz
2009-11-03 13:40:03 +00:00
6078953baa
Do not use a separate byte for an END opcode, instead place the bit into the previous opcode. This saves one byte per character with the exception of characters without a vector representation, where we loose one byte, because we need to add a dummy vector just to apply our END bit.
uz
2009-11-02 22:31:32 +00:00
87866e3099
Working on the TGI API, adding vector fonts. Only roughly tested!
uz
2009-11-02 22:29:49 +00:00
fdc7604d8f
Added separate 8x8=>16 multiplication routine as start of the multiplication and division stuff cleanup.
uz
2009-11-02 22:28:02 +00:00
4b601bea40
- Adjusted TEXTSTYLE and OUTTEXT to TGI specs - Removed defunct scaling support from TEXTSTYLE - Optimized OUTTEXT - Clarified font source and format - Removed generic macpack
ol.sc
2009-11-02 21:38:18 +00:00
0787e45aee
Added macros for jumps after unsigned compares to the "generic" macro package. Removed BGE/BLT as native instructions for the 65816.
uz
2009-11-02 16:26:46 +00:00
1518a4813c
The X register must be zero on return.
uz
2009-11-02 16:24:26 +00:00
3b06aaaf85
Added the new toascii function for the CBMs.
uz
2009-11-02 16:23:32 +00:00
38641d9af8
Added prototype for toascii(c);
uz
2009-11-02 16:11:32 +00:00
7f865046f3
Fixed an error in the color setting code which caused tgi_init to fail.
uz
2009-11-02 15:36:13 +00:00
1e777d9406
Added a typedef for tgi_vectorfont_header, because the name is so long.
uz
2009-11-01 22:43:09 +00:00
2e5281fa2d
Added tgi_load_vectorfont(). Fixed tgi_free_vectorfont().
uz
2009-11-01 22:35:22 +00:00
25ccbeeaa8
When initializing the driver, set white as the drawing color.
uz
2009-11-01 22:33:27 +00:00