]> git.sur5r.net Git - cc65/blob - doc/gamate.sgml
Fixed typo.
[cc65] / doc / gamate.sgml
1 <!doctype linuxdoc system>
2
3 <article>
4 <title>Gamate System specific information for cc65
5 <author>
6 <url url="mailto:groepaz@gmx.net" name="Groepaz/Hitmen">
7
8 <abstract>
9 An overview over the Gamate runtime system as it is implemented for the
10 cc65 C compiler.
11 </abstract>
12
13 <!-- Table of contents -->
14 <toc>
15
16 <!-- Begin the document -->
17
18 <sect>Overview<p>
19
20 This file contains an overview of the Gamate runtime system as it comes
21 with the cc65 C compiler. It describes the memory layout, Gamate specific header
22 files, available drivers, and any pitfalls specific to that platform.
23
24 Please note that Gamate specific functions are just mentioned here, they are
25 described in detail in the separate <url url="funcref.html" name="function
26 reference">. Even functions marked as "platform dependent" may be available on
27 more than one platform. Please see the function reference for more
28 information.
29
30
31 <sect>Binary format<p>
32
33 The standard binary output format generated by the linker for the Gamate target
34 is a cartridge image with header. It is of course possible to change this
35 behaviour by using a modified startup file and linker config.
36
37 Note: the first two bytes of the header contain a checksum that must be inserted
38 by an external program. Such an utility is provided in util/gamate/gamate-fixcart.c
39
40 <sect>Platform specific header files<p>
41
42 Programs containing Gamate specific code may use the <tt/gamate.h/ header file.
43
44
45 <sect1>Gamate specific functions<p>
46
47 <itemize>
48 <item>waitvsync</item>
49 </itemize>
50
51
52 <sect1>Hardware access<p>
53
54 The following pseudo variables declared in the <tt/gamate.inc/ include file do
55 allow access to hardware located in the address space.
56
57 <descrip>
58
59 </descrip><p>
60
61
62
63 <sect>Loadable drivers<p>
64
65 All drivers must be statically linked because no file I/O is available.
66 The names in the parentheses denote the symbols to be used for static linking of the drivers.
67
68
69 <sect1>Graphics drivers<p>
70
71 No TGI graphics drivers are currently available for the Gamate.
72
73
74 <sect1>Extended memory drivers<p>
75
76 No extended memory drivers are currently available for the Gamate.
77
78
79 <sect1>Joystick drivers<p>
80
81 <descrip>
82
83   <tag><tt/gamate-stdjoy.joy (gamate_stdjoy)/</tag>
84   A joystick driver for the standard two buttons joypad is available.
85
86 </descrip><p>
87
88
89 <sect1>Mouse drivers<p>
90
91 No mouse drivers are currently available for the Gamate.
92
93
94 <sect1>RS232 device drivers<p>
95
96 No serial drivers are currently available for the Gamate.
97
98
99
100 <sect>Limitations<p>
101
102 <itemize>
103 <item>When using the C-compiler, keep in mind that only 0x200 bytes RAM in total
104 can be used for variables and the runtime stack.
105 </itemize>
106
107 <sect1>Disk I/O<p>
108
109 The existing library for the Gamate doesn't implement C file
110 I/O. There are no hacks for the <tt/read()/ and <tt/write()/ routines.
111
112 To be more concrete, this limitation means that you cannot use any of the
113 following functions (and a few others):
114
115 <itemize>
116 <item>printf
117 <item>fclose
118 <item>fopen
119 <item>fread
120 <item>fprintf
121 <item>fputc
122 <item>fscanf
123 <item>fwrite
124 <item>...
125 </itemize>
126
127 <sect>Other hints<p>
128
129 <itemize>
130 <item>The Gamate is emulated by MESS (<url url="http://www.mess.org/">),
131 run like this: <tt>mess gamate -debug -window -skip_gameinfo -cart test.bin</tt>
132 </itemize>
133
134 some resources on the Gamate:
135
136 <itemize>
137 <item><url url="http://en.wikipedia.org/wiki/Gamate">
138 </itemize>
139
140 <sect>License<p>
141
142 This software is provided 'as-is', without any expressed or implied
143 warranty.  In no event will the authors be held liable for any damages
144 arising from the use of this software.
145
146 Permission is granted to anyone to use this software for any purpose,
147 including commercial applications, and to alter it and redistribute it
148 freely, subject to the following restrictions:
149
150 <enum>
151 <item>  The origin of this software must not be misrepresented; you must not
152         claim that you wrote the original software. If you use this software
153         in a product, an acknowledgment in the product documentation would be
154         appreciated but is not required.
155 <item>  Altered source versions must be plainly marked as such, and must not
156         be misrepresented as being the original software.
157 <item>  This notice may not be removed or altered from any source
158         distribution.
159 </enum>
160
161 </article>
162
163
164