Debian Codegraph @

DOC/INSTALL

raw
1 Installation of the Atari800 Emulator
2 --------------------------------------
3
4 Irrespective of whether you are going to compile the emulator yourself
5 or install a pre-compiled binary version you must obtain a copy of the
6 Operating System ROMs.
7
8 The ROM images are distributed within the PC Xformer 2.5 package (other
9 versions of this program do not contain the ROMs in a suitable format)
10 which can be downloaded from:-
11
12 http://prdownloads.sf.net/atari800/xf25.zip
13
14 If you are creating the ROM images yourself they should be copied from
15 the following locations:-
16
17 1. Atari BASIC (8192 bytes between $a000 and $bfff)
18 Note: On a 400/800/1200XL system a BASIC cartridge must be inserted, and on
19 other systems the built-in BASIC must be enabled by setting bit 1 of PORTB
20 to 0.
21 2. Atari 400/800 OS (10240 bytes between $d800 and $ffff)
22 3. Atari XL/XE OS (16384 bytes between $c000 and $ffff)
23 Note: If you are extracting the XL/XE OS you will find that the ROM area
24 under the custom chip ($d000 to $d7ff) is mapped between $5000 and $57ff
25 when bit 7 of PORTB is set to 1. I.e. you should set bit 7 of PORTB and
26 then dump the memory out in the following order:- $c000 to $cfff,
27 $5000 to $57ff and finally $d800 to $ffff.
28 4. Atari XEGS built-in game (8192 bytes between $a000 and $bfff)
29 Note: the built-in game must be enabled by setting bit 1 of PORTB to 1 and
30 bit 6 to 0.
31 5. Atari 5200 BIOS (2048 bytes between $f800 and $ffff)
32
33 The first time you run the emulator it will scan the current directory for
34 compatible ROMs and load them. At the same time, a new configuration file
35 will be created, with the new paths stored so the next time you run the
36 emulator the ROMs would be find automatically.
37
38 Compiling the Emulator
39 ----------------------
40
41 The emulator can be compiled for the following systems (and probably
42 many others with a little work):-
43
44 1. X Window Version (including SUN OpenWindows) on a Unix Platform
45 (prefer the SDL version)
46 2. CURSES version
47 3. Graphical Version for the Amiga (not maintained)
48 4. Graphical version for the Atari TT/Falcon and compatible computers
49 5. "simple" version (no graphics). Should be straightforward to configure
50 for any 32-bit environment supporting ANSI C.
51 6. VGA Version for DOS
52 7. SDL (Linux/Unix, Windows, BeOS)
53 8. WinCE
54 9. Java (various platforms)
55 10. Static library version: libatari800
56
57 Installed zlib (compression library) enables building the emulator with
58 compressed statesave images support.
59
60 Installed libpng makes the emulator capable of generating screenshots in
61 the PNG format.
62
63 Installed libmp3lame enables MP3 audio to be saved in video and audio
64 files.
65
66 Building the Emulator on most platforms
67 ---------------------------------------
68
69 1. Change your working dir to the atari800 path
70 2. Check if "configure" script is there. If it is skip to step 4.
71 3. Run "./autogen.sh" (make sure you have autoconf >= 2.5x installed).
72 4. Type "./configure".
73 5. Type "make".
74 6. Change directory to atari800/src
75 7. Install the emulator by typing "make install".
76
77 Please note it is also possible to build atari800 outside the source
78 directory. Just follow steps 1-3 and then call `configure' from your build
79 directory, i.e. ../atari800/configure if your build directory is located next
80 to atari800 source directory.
81
82 By default, the "configure" script attempts to auto-detect the best interfaces
83 available to use for emulating video and sound. It is also possible to
84 override autodetection and select a specific interface by appending the
85 "--with-video=<value>" and "--with-sound=<value>" options to the command
86 in step 4. Below is the list of available values for these options:
87 a) Video interfaces (--with-video):
88 - dosvga: use direct access to VGA card, only under DOS/DJGPP
89 - sdl: use the Simple DirectMedia Library
90 - curses: use the curses library
91 - ncurses: use the ncurses library
92 - pdcurses: use the pdcurses library
93 - no: use only stdin/stdout for input/output. Supported on all platforms
94 b) Sound interfaces (--with-sound):
95 - win: use the WinMM library, only under Windows
96 - falcon: use Atari Falcon native sound
97 - dossb: use direct access to a Sound Blaster-compatible card, only under
98 DOS/DJGPP
99 - sdl: use the Simple DirectMedia Library
100 - oss: use Open Sound System
101 - no: disable sound altogether. Supported on all platforms
102
103 Only the video and sound interfaces listed above are autodetected, but the
104 emulator also supports other ones. To build for a platform that is
105 not automatically detected, replace step 4 of the above instructions with:
106
107 4a. Type "./configure --target=help" for a list of supported platforms.
108 4b. Type "./configure --target=<YourTarget>" (choose from the list above)
109
110
111 Building the Emulator for Curses
112 --------------------------------
113
114 Follow the instruction above but note that you must be using the
115 System V Curses Library. BSD Curses is lacking a few functions and
116 will not work (nodelay, attron, attroff, keypad and curs_set).
117
118 Building the Emulator for DOS
119 -----------------------------
120
121 To compile, use DJGPP the DOS port of gcc, which can be got from
122 http://www.delorie.com/djgpp/. You will need complete environment
123 in order to configure and build the executables.
124 You may need zlib (compression library) to use compressed statesave images
125 and libpng for PNG screenshots. To build curses (text mode) version install
126 curses-compatible library (e.g. PDCurses) and add
127 "--with-video=pdcurses" when invoking "./configure".
128
129 Since the source code contains files with long file names, you must unpack
130 and compile the source on a filesystem supporting long file names (for example
131 VFAT of Windows95). An additional change of DJGPP setting is required:
132 open the DJGPP.ENV file in editor and change the LFN= line to LFN=y
133
134 1. Run "configure_dos.bat".
135 2. Run "make" and "make joycfg".
136 3. If everything went good you should have atari800.exe and joycfg.exe -
137 copy them to destination directory.
138
139 Building the Emulator for Windows
140 ---------------------------------
141
142 See DOC/BUILD.windows.
143
144 Building the Emulator for Falcon
145 --------------------------------
146
147 You need a recent GCC, for example 4.6.4, running on a filesystem with long
148 file names (either minixfs/ext2fs of MiNT, or VFAT of MagiC).
149
150 1. Type "./configure --target=falcon".
151 2. Type "make".
152 3. Copy atari800 to destination directory or try "make install".
153
154 You also can build the default target (by omitting the "--target" option)
155 with optional support for curses or SDL - see "Building the Emulator on most
156 platforms".
157
158 Building the Emulator for SDL
159 -----------------------------
160
161 1. Please install (and configure) SDL library (http://www.libsdl.org).
162 2. If you want to build an OpenGL-capable version, you'll need OpenGL headers
163 installed. They should support OpenGL version 2.1 or later, ie. with support
164 for the Pixel Buffer Object (PBO) extension. The result binary, however, will
165 not require an OpenGL 2.1-capable video card - it will also support OpenGL
166 1.1 video cards (PBOs simply won't be used), and machines without OpenGL
167 support aat all (only software modes will be available).
168 3. Follow the instructions in the "Building the Emulator on most platforms"
169 section above. NOTE: To be sure, force using SDL by adding
170 "--with-video-input=sdl --with-sound=sdl" when calling "./configure".
171 Otherwise the configure script may autodetect and use other libraries for
172 video and audio.
173 4. When building on Windows, see DOC/BUILD.windows for additional notes.
174
175 Building the Emulator for Java using NestedVM
176 ---------------------------------------------
177
178 1. Get and build NestedVM (nestedvm.ibex.org). make env.sh and unix_runtime.jar
179 2. source env.sh in the NestedVM directory.
180 3. Follow steps 1-5 of the "Building the Emulator on most platforms" section
181 above, but when calling ./configure, add these two parameters:
182 --host=mips-unknown-elf --disable-ide
183 ie.
184 ./configure --host=mips-unknown-elf --disable-ide
185 You might want to add --enable-veryslow --disable-monitorbreak to the above.
186 This should result in creation of the file named atari800.jar.
187 4. atari800.jar requires unix_runtime.jar in the same directory. Copy it from
188 the NestedVM directory where you made it using "make unix_runtime.jar" as
189 stated above.
190 5. To run use: java -jar atari800.jar
191 Add -o UnixRuntime to the NestedVM compiler options to enable directory
192 browsing.
193 This requires changing Windows paths to the form: /c:/file in all configuration
194 files and on the command line. It will look for .atari800.cfg in your
195 Windows home directory.
196 Applet version:
197 You must compile with -o UnixRuntime
198 Apply UnixRuntime.patch to NestedVM.
199 To use:
200 <APPLET CODE="atari800.class" WIDTH=672 HEIGHT=480 ARCHIVE="atari800.jar, unix_runtime.jar">
201 <PARAM name=args value="-config /resource/http://atari800_applet.cfg -xlxe_rom /resource/http://ospp.rom -basic_rom none -nobasic -nopatchall /resource/http://disk.atr">
202 </APPLET>
203 All files should have /resource/http:// in front of their names.
204 Edit atari800_applet.cfg and add /resource/http:// to all rom files, even those
205 you are not providing.
206 Legal distribution of Atari800 as an applet cannot include the OS and BASIC
207 ROM Files. You can run without BASIC by using -basic_rom none and Thomas
208 Richter's Os++.
209
210 Building the libatari800 static library
211 ---------------------------------------
212
213 The libatari800 target requires no external libraries and is platform
214 independent. It also has no user interface, as it's designed to be embedded
215 into another program that controls the operation of the emulator.
216
217 The build procedure is much the same as on most platforms, except for step 4:
218
219 4. Type "./configure --target=libatari800".
220
221 The resulting libatari800.a file can be linked with user programs to create an
222 embedded atari800 emulator.
223
224 Running on macOS
225 ----------------
226
227 The macOS .dmg package contains an ad-hoc signed Atari800.app bundle.
228 Before launching it for the first time, right-click the app in Finder
229 and select "Open" to bypass Gatekeeper, then confirm the dialog.
230 The app will run normally afterwards. Alternatively, remove the
231 quarantine attribute from Terminal:
232
233 xattr -dr com.apple.quarantine /Applications/Atari800.app
234