--- hatari/doc/manual.html 2019/04/01 07:13:21 1.1.1.6 +++ hatari/doc/manual.html 2019/04/09 08:51:25 1.1.1.15 @@ -4,7 +4,7 @@
-Version 0.90 -
-
-Project initiator and main developer of Hatari: Thomas Huth
-
-Manual written by: Matthias Arndt
+
+Version 1.6.1
--Hatari on the WWW: http://hatari.sourceforge.net/ +
+Manual written by: Thomas Huth, Matthias Arndt + & Eero Tamminen +
++Hatari on the WWW: http://hatari.tuxfamily.org/
-Hatari is an Atari ST emulator for Linux, FreeBSD, BeOS and other -Systems which are supported by the SDL library. +Hatari is an Atari ST, STE, TT and Falcon emulator for Linux, OSX, +Windows and other Systems which are supported by the SDL library. The emulator is open source software and is distributed under the terms of the -GNU General Public License (GPL). +GNU General +Public License (GPL).
The Atari ST was a 16/32 bit computer system which was first released by Atari @@ -144,139 +170,191 @@ Unlike many other Atari ST emulators whi environment for running GEM applications, Hatari tries to emulate the hardware of a ST as close as possible so that it is able to run most of the old ST games and demos. Of course you can run normal GEM applications with Hatari, too. +Recent versions of Hatari even feature STE, Falcon and basic TT emulation.
There is support for following additional STE features:
-At the time of this writing there is neither a complete MMU emulation -nor support for TT or Falcon specific features. -
+ +There is support for following additional TT features:
+There is support for following additional Falcon features:
+See the developers' doc/todo.txt file +(included with Hatari sources) for the details on the few remaining +emulation gaps and the Hatari Atari +Software Compatibility List for which Atari programs are known +to be affected by them.
Hatari currently has the following system requirements:
+Hatari currently has the following minimum system requirements:
-Certain versions of Hatari have successfully been tested by various people on +In the course of time Hatari has successfully been tested by various people on the following systems:
First, you need the SDL library, you can get it at: -http://www.libsdl.org/. Most -distributions already ship a suitable version. -Make sure to install the appropriate header files as well often called -"libsdl-dev" or the like. -
-Second, you need the zLib compression library. You can get it from http://www.gzip.org/zlib/ -but the version shipped with your distribution will be sufficient in -most cases. Make sure to have the header files -for it installed as well. -
--Of course, you need the GNU C compiler and (GNU) Make, too! -
-Change to the hatari/ directory and adapt the configuration file -Makefile.cnf to suite your system. -Alternatively, you can use the supplied configure script to auto-detect -all parameters (type " ./configure --help" -to see the options of the script). -Don't forget to use some good CFLAGS for the compiler optimizations, e.g. -run configure in the following way: -
+Required:
+Optional:
+- CFLAGS="-O3 -fomit-frame-pointer" ./configure +The versions available in your Linux distribution will be sufficient +in most cases, but make sure you have also the header files installed +for the libraries as well! Typically they're in a corresponding -dev +package.
+ ++After you've verified that you have the required libraries and their +development files, change to the hatari/ +directory. Create a build/ directory under +it and configure the build system for your environment: +
+mkdir -p build +cd build +cmake .. +
Then compile Hatari by typing make. -If all -works fine, you'll get the executable hatari +If all works fine, you'll get the executable hatari in the src/ subdirectory.
++Note: Instead of calling CMake directly, you can also use the supplied +configure script to run CMake and to give the arguments (like install +prefix) in a format familiar from GNU Autotools using programs. Type +"./configure --help" +to see all the options supported by this script. +
Before you can start Hatari, you have to copy a TOS ROM image to the data -directory (the data directory is specified -in the configuration file Makefile.cnf) and +directory (<prefix>/share/hatari/, by +default /usr/local/share/hatari/) and rename it to tos.img, or use the --tos command line option to tell Hatari where to find a TOS ROM. @@ -287,7 +365,7 @@ of the emulated Atari. Unfortunately it is not possible to ship an original ROM image with the Hatari package since these images are still copyrighted. But you can easily create an image with a real ST and one of those various -ROM-image programs for the ST (search for "TOSDUMP" with your +ROM-image programs for the ST (search for "TOSDUMP" with your favourite internet search engine). If your old ST does not work anymore, you can also try to search the internet directly for corresponding TOS ROM image, but don't ask the Hatari team where to get one.
@@ -296,19 +374,19 @@ release versions of Hatari. EmuTOS is an it at: http://emutos.sourceforge.net/. It is not the best solution for playing games or running other old software -due to compatibility issues, but it's free and compatible with Hatari. +due to compatibility issues (see emutos.txt for +more details), but it's free and compatible with Hatari.If you do not specify a TOS image on the commandline nor can Hatari find a suitable TOS image in the default dir, you'll get the chance to select a TOS image file from the GUI.
Type make install as root to do a -systemwide installation. In this case it is recommended -to set the DATADIR variable in Makefile.cnf to a proper value. /usr/local/share/hatari -is a good value in that case.
-The Hatari executable should now be in your PATH and accessible from -anywhere.
+Type make install as "root" user to +do a systemwide installation.
+Assuming you didn't change the default installation prefix and that +/usr/local/bin/ is in your PATH, you should +be now able to start the Hatari executable from anywhere.
When you finally have got a TOS image, try starting Hatari with the option --help to find out more about its command line parameters.
@@ -324,140 +402,1308 @@ to turn on the GUI to configure Hatari to suit your needs, press F11 to toggle windowed and fullscreen mode. -Hatari of course understands several command line options.
-Type hatari --help to list them -all.
-The command line options in detail are as follows (in brackets the -long version):
-| Option | -Purpose | -|
| -h (--help) | -prints command line options and terminates | -|
| -v (--version) | -prints version information and terminates | -|
| -m (--mono) | -starts the emulated Atari ST in monochrome -resolution | -|
| -f (--fullscreen) | -tries to use a fullscreen mode | -|
| --window | -forces Hatari to use a windowed mode | -|
| -j <port> (--joystick <port>) | -activates joystick emulation via cursor keys -for given joystick "port" (0-5, see joystick dialog) | -|
| --nosound | -disables sound (makes emulation faster) | -|
| --frameskip | -drops every second frame (accelerates -emulation) | -|
| -D (--debug) | -activates the simple builtin debugger | -|
| --slowfdc | -slows down FDC emulation (needed to make some -games and demos work) | -|
| -d <dir> (--harddrive <dir>) | -emulates <dir> as a hard disk | -|
| --hdimage <imagefile> | -emulate hard disk with an image file - |
- |
| --cartridge <imagefile> - |
- sets imagefile as the cartridge on the ROM port -This currently does not work together with GEMDOS hard disk emulation! - |
- |
| --tos <imagefile> | -specify TOS ROM image to use | -|
| -s x (--memsize x) | -set amount of emulated RAM upto 14MB -x=0 for 512K, x=1,x=2 or x=4 for 1, 2 or 4 MB |
- |
| --cpulevel x | -specify CPU (680x0) to use - (works on TOS 2.06 only!!) | -|
| --compatible | -use a more compatible but slower 68000 CPU mode | -|
| --blitter | -enable blitter emulation (for ST mode only) | -|
| --vdi | -use extended VDI resolution | -|
| --printer | -enable experimental printer support | -|
| --midi <filename> | -enable experimental MIDI output to the -mentioned file | -|
| --rs232 <filename> | -enable experimental RS232 communication via -the mentioned file | -|
| -c <filename> (--configfile) | -Use the given file as configuration file -instead of ~/.hatari.cfg | -|
| -k <filename> (--keymap) | -Sets keyboard mapping to "From file" and -uses the given file as keyboard mapping file |
- |
| --machine <x> | -Select machine type (x = st, ste or tt) | -
| + | +-h, --help | +
| + | +Print command line options and terminate + | +
| + | +-v, --version | +
| + | +Print version information and terminate + | +
| + | +--confirm-quit <bool> | +
| + | +Whether Hatari confirms quitting + | +
| + | +-c, --configfile +<filename> | +
| + | +use the given file as configuration file instead of +~/.hatari/hatari.cfg + | +
| + | +-k, --keymap +<file> | +
| + | +load keyboard mapping from <file> + | +
| + | +-m, --mono | +
| + | +Start in monochrome mode instead of color + | +
| + | +--monitor <x> | +
| + | +Select monitor type (x = mono/rgb/vga/tv) + | +
| + | +-f, --fullscreen | +
| + | +Start the emulator in fullscreen mode + | +
| + | +-w, --window | +
| + | +Start the emulator in window mode + | +
| + | +--grab | +
| + | +Grab mouse (also) in window mode + | +
| + | +--fast-forward <bool> | +
| + | +On fast machine helps skipping (fast forwarding) Hatari +output + | +
| + | +--frameskips <x> | +
| + | +Skip <x> frames after each displayed frame to +accelerate emulation (0=disabled, >4 uses automatic +frameskip with given value as maximum) + | +
| + | +--statusbar <bool> | +
| + | +Show statusbar (with floppy leds etc etc) + | +
| + | +--drive-led <bool> | +
| + | +Show overlay drive led when statusbar isn’t shown + | +
| + | +--bpp <bool> | +
| + | +Force internal bitdepth (x = 8/15/16/32, 0=disable) + | +
| + | +--borders <bool> | +
| + | +Show screen borders (for low/med resolution overscan demos) + | +
| + | +--desktop-st <bool> | +
| + | +Whether fullscreen mode uses desktop resolution to avoid: messing +multi-screen setups, several seconds delay needed by LCD monitors +resolution switching and the resulting sound break. As Hatari ST/E +display code doesn't support zooming (except low-rez doubling), it +doesn't get scaled (by Hatari or monitor) when this is enabled. +Therefore this is mainly useful only if you suffer from the described +effects, but still want to grab mouse and remove other distractions +from the screen just by toggling fullscreen mode. (disabled by default) + | +
| + | +--spec512 <x> | +
| + | +Hatari uses this threshold to decide when to render a +screen with the slower but more accurate Spectrum512 screen +conversion functions (0 <= x <= 512, 0=disable) + | +
| + | +-z, --zoom <x> | +
| + | +Zoom low resolution (1=no, 2=yes) + | +
+Zooming to sizes specified below is internally done using integer +scaling factors. This means that different Atari resolutions may show +up with different sizes, but they are never blurry. +
+| + | +--desktop <bool> | +
| + | +Whether to use desktop resolution on fullscreen to avoid issues +related to resolution switching. Otherwise fullscreen will use +a resolution that is closest to the Hatari window size. +(enabled by default) + | +
| + | +--max-width <x> | +
| + | +Maximum window width for zooming + | +
| + | +--max-height <x> | +
| + | +Maximum window height for zooming + | +
| + | +--force-max <bool> | +
| + | +Hatari window size is forced to specified maximum size and black borders +used when Atari resolution doesn't scale evenly to it. This is most +useful when recording videos of Falcon demos that change their +resolution. (disabled by default) + | +
| + | +--aspect <bool> | +
| + | +Whether to do monitor aspect ratio correction (enabled by default) + | +
| + | +--vdi <bool> | +
| + | +Whether to use VDI screen mode + | +
| + | +--vdi-planes <x> | +
| + | +Use extended VDI resolution with bit depth <x> (x = 1, 2 or 4) + | +
| + | +--vdi-width <w> | +
| + | +Use extended VDI resolution with width <w> (320 < w <= 1280) + | +
| + | +--vdi-height <h> | +
| + | +Use extended VDI resolution with height <h> (200 < h <= 960) + | +
| + | +--crop <bool> | +
| + | +Remove statusbar from the screen captures + | +
| + | +--avirecord | +
| + | +Start AVI recording + | +
| + | +--avi-vcodec <x> | +
| + | +Select avi video codec (x = bmp/png) + | +
| + | +--avi-fps <x> | +
| + | +Force avi frame rate (x = 50/60/71/...) + | +
| + | +--avi-file <file> | +
| + | +Use <file> to record avi + | +
| + | +-j, --joystick +<port> | +
| + | +Emulate joystick with cursor keys in given port (0-5) + | +
| + | +--joy<port> +<type> | +
| + | +Set joystick type (none/keys/real) for given port + | +
| + | +--printer <file> | +
| + | +Enable printer support and write data to <file> + | +
| + | +--midi-in <filename> | +
| + | +Enable MIDI support and write MIDI data to <file> + | +
| + | +--midi-out <filename> | +
| + | +Enable MIDI support and read MIDI data from <file> + | +
| + | +--rs232-in <filename> | +
| + | +Enable serial port support and use <file> as the input device + | +
| + | +--rs232-out <filename> | +
| + | +Enable serial port support and use <file> as the output device + | +
| + | +--disk-a <file> | +
| + | +Set disk image for floppy drive A + | +
| + | +--disk-b <file> | +
| + | +Set disk image for floppy drive B + | +
| + | +--protect-floppy <x> | +
| + | +Write protect floppy image contents (on/off/auto). With "auto" option +write protection is according to the disk image file attributes. + | +
| + | +--protect-hd <x> | +
| + | +Write protect harddrive <dir> contents (on/off/auto). With "auto" +option the protection can be controlled by setting individual files +attributes as it disables the file attribute modifications for +the GEMDOS hard disk emulation. + | +
| + | +-d, --harddrive <dir> | +
| + | +Emulate harddrive partition(s) with <dir> contents + | +
| + | +--acsi <file> | +
| + | +Emulate an ACSI hard disk with an image <file> + | +
| + | +--ide-master <file> | +
| + | +Emulate an IDE master hard disk with an image <file> + | +
| + | +--ide-slave <file> | +
| + | +Emulate an IDE slave hard disk with an image <file> + | +
| + | +--fastfdc <bool> | +
| + | +speed up FDC emulation (can cause incompatibilities) + | +
| + | +-s, --memsize <x> | +
| + | +Set amount of emulated RAM, x = 1 to 14 MiB, or 0 for 512 +KiB + | +
| + | +--memstate <file> | +
| + | +Load memory snap-shot <file> + | +
| + | +-t, --tos +<imagefile> | +
| + | +Specify TOS ROM image to use + | +
| + | +--patch-tos +<bool> | +
| + | +Use this option to enable/disable TOS ROM patching. Experts only! Leave +this enabled unless you know what you are doing! + | +
| + | +--cartridge <imagefile> | +
| + | +Use ROM cartridge image <file> (only works if +GEMDOS HD emulation and extended VDI resolution are +disabled) + | +
| + | +--cpulevel <x> | +
| + | +Specify CPU (680x0) to use (use x >= 1 with EmuTOS or +TOS >= 2.06 only!) + | +
| + | +--cpuclock <x> | +
| + | +Set the CPU clock (8, 16 or 32 Mhz) + | +
| + | +--compatible <bool> | +
| + | +Use a more compatible but slower 68000 CPU mode + | +
| + | +--machine <x> | +
| + | +Select machine type (x = st, ste, tt or falcon) + | +
| + | +--blitter <bool> | +
| + | +Enable blitter emulation (ST only) + | +
| + | +--dsp <x> | +
| + | +Falcon DSP emulation (x = none, dummy or emu, Falcon only) + | +
| + | +--timer-d <bool> | +
| + | +Patch redundantly high Timer-D frequency set by TOS. This about doubles +Hatari speed (for ST/e emulation) as the original Timer-D frequency causes +most of the interrupts. + | +
| + | +--fast-boot <bool> | +
| + | +Patch TOS and initialize the so-called "memvalid" system variables to +by-pass the memory test of TOS, so that the system boots faster. + | +
| + | +--rtc <bool> | +
| + | +Enable real-time clock + | +
| + | +--mic <bool> | +
| + | +Enable/disable (Falcon only) microphone + | +
| + | +--sound <x> | +
| + | +Sound frequency: 6000-50066. "off" disables the sound and speeds up +the emulation. To prevent extra sound artifacts, the frequency should be +selected so that it either matches evenly with the STE/TT/Falcon sound +DMA (6258, 12517, 250033, 50066 Hz) or your sound card frequencies +(11025, 22050, 44100 or 6000...48000 Hz). Check what your sound card +supports. + | +
| + | +--sound-buffer-size <x> | +
| + | +SDL's sound buffer size : 10-100, or 0 to use default buffer size. +By default Hatari uses an SDL buffer size of 1024 samples, which +gives approximatively 20-30 ms of sound depending on the chosen sound +frequency. Under some OS or with not fully supported sound card, this +default setting can cause a bigger delay at lower frequency (nearly 0.5 sec). +In that case, you can use this option to force the size of the sound +buffer to a fixed number of milliseconds of sound (using 20 is often +a good choice if you have such problems). Most users will not need this option. + | +
| + | +--ym-mixing <x> | +
| + | +Select a method for mixing the three YM2149 voice volumes together. +"model" uses a mathematical model of the YM voices, +"table" uses a lookup table of audio output voltage values measured +on STF and "linear" just averages the 3 YM voices. + |
| + | +-D, --debug | +
| + | +Toggle whether CPU exceptions invoke the debugger + | +
| + | +--bios-intercept | +
| + | +Toggle Bios/XBios call interception and BIOS CON: output +(e.g. EmuTOS console) redidirection to host terminal. +Needed for Bios/XBios call tracing. Allows Atari programs +to modify Hatari state through XBios 255 calls. + | +
| + | +--trace <trace1,...> | +
| + | +Activate debug traces, see --trace help for available tracing options + | +
| + | +--trace-file <file> | +
| + | +Save trace output to <file> (default=stderr) + | +
| + | +--parse <file> | +
| + | +Parse/execute debugger commands from <file> + | +
| + | +--control-socket <file> | +
| + | +Hatari reads options from given socket at run-time + | +
| + | +--log-file <file> | +
| + | +Save log output to <file> (default=stderr) + | +
| + | +--log-level <x> | +
| + | +Log output level (x=debug/todo/info/warn/error/fatal) + | +
| + | +--alert-level <x> | +
| + | +Show dialog for log messages above given level + | +
| + | +--run-vbls <x> | +
| + | +Exit after X VBLs + | +
Type hatari --help to list all +the command line options supported by a given version of Hatari.
+Once you've started Hatari succesfully, you can use the emulator as -an allmost complete Atari ST computer system.
+an almost complete Atari ST computer system.
+
From the main menu, you can reach the other setup dialogs by clicking on -the appropriate buttons.
++You can reach the other setup dialogs from the main menu by clicking on +the appropriate buttons. +
++You can load the current settings from a configuration file by clicking +on and you can save +the current settings to a configuration file by clicking on +. +
++Click to go back and continue the emulation. +All changed options will be applied. +
++Select the option if you +want the emulated machine to perform a cold reset. This is equal to +switching the power off and on again on a real Atari machine. +
++Click to terminate Hatari +and return to the host OS. +
++Click to abandon any +changes that you have made. +
+ + +
++ The file selector dialog appears whenever you are prompted to choose a file + or folder. +
++ To enter a folder or choose a file, simply click on the entry in the main box + of the dialog. You can use the arrows at the right, the cursor up and down + keys and the page up and down keys to navigate through the list. +
++ You can use the three buttons in the upper right corner for additional folder + navigation. Use the button to go up one level + in the directory tree. Use the button to return + to your home directory. The button can be used + to go to the root directory of the file system. +
-You can load the current settings from a configuration file by clicking -on the button and you can save the -current settings to a configuration file with the button.
- -Click to go back to the emulated -ST. All changed options will be applied.
-Check the option if you want -the emulated ST to perform a cold reset. This is equal to -switching the power off and on again on a real ST. -
-Click to terminate Hatari and -return to the host OS.
-Click to abandon any changes -that you have made.
-
+
Select the CPU type to use here. For best Atari ST compatibility choose a - plain 68000.
-Choose whether you want to emulate a normal ST or an STE. - Note: STE emulation is very incomplete. It may not work very well.
-For STE emulation a STE compatible TOS image, e.q. version 1.06, 1.62 or -2.x, is strongly recommended. EmuTOS can also be used.
-Select the CPU clock you want to use. 8Mhz is ST standard and the most - compatible, 16MHz is for Mega STE emulation.
-With the "Slower but more compatible CPU" option, you can enable +
+ First you can select the CPU type here. Here are some important hints for + choosing the correct CPU type: +
+
+ Beside the CPU type, you can also choose the machine type to emulate.
+ The ST was the very first 16/32-bit computer from Atari. Most older games
+ and demos require an ST. The STE was introduced some years later and had
+ some more advanced hardware features. There are not that many demos or
+ games that really require an STE but since most normal ST games/demos also
+ work with an STE, it's normally safe to always work in STE mode.
+
+ TT and Falcon are more advanced, but they are not as compatible to the ST as
+ the STE was. Therefore many old games and demos do not work with these machine
+ types anymore. There were only very few programs that were made for the TT
+ exclusively, while there were some interesting games and demos specially made
+ for the Falcon.
+ Note: TT and Falcon emulation are incomplete. They may not work
+ very well.
+
+ For STE emulation a STE compatible TOS image, e.q. version 1.06, 1.62 or + 2.x, is strongly recommended. For TT emulation you need TOS 3.0x and for Falcon + emulation you need TOS 4.0x. EmuTOS can be used on all machine types. +
++ Select the CPU clock you want to use. 8Mhz is ST standard and the most + compatible. Use 16MHz for Mega STE and Falcon emulation. + The CPU in the TT was clocked with 32 MHz. +
+With the "Slower but more compatible CPU" option, you can enable the emulation of 68k address errors and the CPU prefetch buffer. This is needed for best compatibility, but it slows down emulation a little bit so you can disable it if you don't need it.
++ For Falcon mode, you can choose whether you want to enable DSP emulation, + fake it or completely disable it. Most Falcon programs only play sound or work + correctly when you enable the DSP emulation, but it needs a lot of host CPU + power (more than 2 GHz). So if you have a slow host CPU, you can try if your + Falcon program also runs with DSP disabled or in "dummy" mode. + Note that you can not change this option while the DSP based program already + runs. +
You can also enable/disable Blitter emulation here. The Blitter is a custom chip that accelerates some graphical operations. This switch only toggles the Blitter in plain ST mode. In STE mode, the Blitter is always enabled (since all STEs have been sold with a Blitter chip).
-If you enable the "Real time clock emulation" switch, a RTC will +
If you enable the "Real time clock emulation" switch, a RTC will be emulated based on the time of the host computer. Note that you need at least TOS 1.02 for proper RTC emulation, TOS 1.00 does not support this.
The Timer-D patch changes the Timer-D initialization from TOS. TOS uses the MFP timer D as a baudrate generator for RS232. However, the TOS default value slows down the emulation. The patch gives you a better performance. - It is normally save to enable the patch, but if you encounter a program that + It is normally safe to enable the patch, but if you encounter a program that does not work, you can try to disable the patch to see if it works then.
-Select if you want to use slow FDC emulation. Slow is more compatible esp. - with games and demos that use custom loaders.
-NOTE: These parameters are very sensitive to the emulated -ST and it is strongly recommended to -reset the emulated ST after changing these options.
+NOTE: The emulated Atari is very very sensitive to these options + and it is strongly recommended to reset the emulation after changing + them (for most things that's done automatically). The correct + CPU type and clock are automatically selected when one uses the + --machine command line option.
-
-Use the upper dialog to choose which floppy disks should be emulated -in the disk drives.
- -You can use most standard Atari ST disk image files. See the chapter -"Floppy disk images" -for details.
-Click on the button next to the -A: and B: option to go to the fileselector. -You may select and browse zipped disk images as well.
+
+-The fileselector looks like this: + This dialog can be used to choose which floppy disks should be emulated + in the disk drives. You can use most standard Atari ST disk image files. + You may select and browse also zipped disk images. See the chapter + "Floppy disk images" for details. +
++ Click on the button next to the + A: and B: option to go to the fileselector to choose a disk image for the + corresponding drive.
- -
-Click on to eject a disk image from the emulated drive. The emulated ST will act as if had no floppy disk in its drive.
@@ -566,38 +1891,80 @@ you have to insert the second disk in dr first disks ends with an 'a' before the extension and the second disk name ends with a 'b'. -If you need to create a new blank disk image, click on . -Parameters for the new image can be set in the following dialog. Click -on create to create the image or on to get back to the -disk dialog. -
--After clicking , a fileselector -appears. You can browse the filesystem now. Select the target -directory, click beside File: -and type in a name for the new disk image. The name should terminate -with .st or .msa. -
-Hatari can currently create plain .ST and .MSA disk images -exclusively.
-You can choose if you want Hatari to writeprotect your disks. Atari ST virii can spread on disk images too so it is ok to -enable the write protection option. However you can't save highscores or games to your disk images then.
-Use the lower dialog to change the harddisk settings.
-You can select a harddrive image for harddrive emulation via image -file here or you may select -a directory of your local filesystem to be emulated as the ST's -harddrive.
-Check "Boot from HD" if you want Hatari to execute the AUTO folder -on the harddrive. -This option is checked by default if you specify a harddrive image or a -directory via the command line.
++ Select if you want to use fast FDC (Floppy Disk Controller) emulation. + "Fast floppy access" will speed up disk accesses, but this could give + some incompatibilities with some programs that expect correct delays. + (some games/demos don't expect data to be read too fast from the disk) +
++ You can choose if you want Hatari to write-protect your disks. Atari ST virii + can spread on disk images too so it might be a good idea to enable the write + protection option. However you can't save highscores or games to your disk + images in that case. +
+ +
++ If you need to create a new blank disk image, click on + . + Parameters for the new image can be set in the following dialog. + HD and ED disk sector counts are for non-Atari disk sizes, but such + disks are useful for programs that don't work with GEMDOS emulation. + Click on to save the new image or on + to return to the disk dialog. +
++ After clicking , a fileselector + appears. You can browse the filesystem now. Select the target directory, + click beside "File:" and type in a name for the new disk image. + The name should terminate with .st or .msa. +
++ Hatari can currently create plain .ST and .MSA disk images exclusively. + hmsa command line utility can be used + to convert disk images between .ST and .MSA formats. +
+ + +
++ This dialog can be used to change the harddisk settings. +
++ You can select a harddrive image for ACSI, IDE master or slave hard drive + emulation via image file here or you may select a directory of your local + filesystem to be emulated as the harddrive of the emulated system. +
++ Check "Boot from HD" if you want Hatari to execute the AUTO folder + on the harddrive. + This option is checked by default if you specify a harddrive image or + a directory via the command line. +
++ Removing the check from the "Allow GEMDOS drive modification" option + will prevent Atari programs from modifying the files in GEMDOS HDD + emulation directory or creating new files under it. +
++ Note that for IDE hard disk emulation you also need a TOS version >= 2.05. + And ACSI hard disk emulation does not work with TOS 4.0x in Falcon mode. +
-
+
You can select the amount of RAM for the emulated ST here. Only @@ -615,10 +1982,11 @@ restored.
different versions of Hatari. E.q. if you compile a newer Hatari, you cannot load your old memory snapshots back. -
+
Here you can select the TOS image to use. Click on to select one via the fileselector. Click on to disconnect the custom cartridge image.
-Keep in mind that any custom cartridge image will not work together with +
+For ST mode, use TOS 1.00, 1.02, 1.04 or 2.06. +For STE mode, use TOS 1.06, 1.62, 2.05 or 2.06. +If you want to use the TT mode, you must specify a TOS 3.06 image here. +And in Falcon mode, you have to use either TOS 4.00, 4.02, 4.04 or 4.92. +However, you should always use TOS 4.04 for Falcon mode, it's the most common one. +Also note that TOS 4.92 can not be booted from a boot disk (like it's done on a +real Falcon), you have to specify it directly in the TOS ROM setup dialog here. +
+
+Keep in mind that any custom cartridge image will not work together with
GEMDOS hard disk emulation or the VDI extended resolution emulation
since some additional driver code will be used in the cartridge memory
-space for these emulations.
-
Note: These options are critical and you are strongly +space for these emulations. +
++Note: These options are critical and you are strongly advised to reset the emulated ST -when changing one of these option.
+when changing one of these option. + + -
@@ -653,142 +2035,250 @@ which are plugged in the enhanced joysti
Only very few STE games support these joypads, so you often won't need this.
Finally, Hatari also emulates joysticks which were plugged on the parallel port with a special adapter on a real ST. These were used in some few -multi-player games like "Gauntlet 2".
+multi-player games like "Gauntlet 2".For each ST joystick, choose whether you want to disable it, use the keyboard for emulation or use a real PC joystick.
For keyboard emulation, you can select the keys by pressing the - button. You will be prompted to press + button. You will be prompted to press the keys for up, down, left, right and fire.
If you want to use a real PC joystick for the emulation, you should connect it to your PC before you start Hatari. Then you can choose the joystick with the two lower arrows.
-Check the "Enable autofire" option if you are too lazy to pound +
Check the "Enable autofire" option if you are too lazy to pound on the fire button in shoot'em-up games. However, this option only works with certain games. In some other games, it gets worse if you enable this option.
See also the chapter "Emulated Joystick" for details.
-
+
Here you control the video output of the emulated ST.
-Check "Fullscreen" to run Hatari fullscreen, default is windowed.
-Check "Interleaved mode" if you wish to have that old TV feeling in -Hatari. Every second line will be black. -This will only work in ST-MEDIUM or ST-LOW in scaled up resolutions.
-Check "Frame Skip" to speed Hatari up if emulation is too slow. This -will only draw every second ST frame -instead of the default of drawing every ST frame. Uncheck if you have a -fast PC.
-Check "Use Borders" if you wish to have the borders around the ST -screen.
-"Force 8Bpp" will force SDL to use an 8bit video mode. You don't -need this for modern video cards.
-You can select which sort of monitor to use. Check "Color" for games -and demos. If you check "Mono" here, -Hatari will emulate the good old SM124 and will not allow you to switch -to color modes from the running ST. -This toggle acts like a monitor switch with a color and monochrome -monitor connected.
-"Zoom ST-Low res." will control if Hatari renders ST-LOW to a -320x200 or 640x400 PC display (with borders turned off) or 384x276 or -768x552. -Basically select this to toggle between a small or a large window.
-Extended GEM resolutions will emulate some sort of extended graphics -card in the emulated ST giving you larger resolutions and a higher -colordepth in GEM. Select a resolution and color depth. Check to ++ Here you control the video output of the emulated Atari. +
+
+ You can select which sort of monitor to use. This option depends on
+ the machine type which you have selected in the "System options"
+ dialog. In ST and STE mode, you can choose between monochrome mode
+ (select "Mono") and color mode (select one of the other monitor types).
+ Note that when you select "TV" and use zoomed low resolution or
+ switch to ST medium resolution, you will get a TV-like screen rendering
+ which is a little bit faster but darker compared to the normal "RGB"
+ monitor mode. Switching between mono and a color monitor acts like a monitor
+ switch on a real ST - so beware, this will reboot your emulated system!
+ In TT mode, you can only choose between TT-high resolution ("Mono")
+ and normal modes (select one of the other monitor types).
+ Finally the Falcon mode supports all four types of monitors. Note that most
+ Falcon demos/games require a RGB or TV mode and do not work with VGA.
+
+ "Show ST/STE borders" toggles the displaying of the borders around the ST / + STE screen. Some demos and games use the screen borders for displaying + additional graphics. As enabling this option increases CPU computing time, + don't enable it if you have a very slow computer. + This option affects only the ST and STE modes, TT and Falcon modes are + always displayed without borders. +
+
+Extended VDI resolutions will emulate a sort of extended graphics
+card in the emulated ST which give you larger resolutions with a higher
+colordepth for GEM. Select a resolution and color depth. Check to
activate. It will disable all other video options mentioned above.
Uncheck to get back to a normal ST behaviour.
Note: Using an extended resolution will only work with GEM
conformant applications. 99% of all games and demos will not run if you
-activate any extended resolution here.
-
Click to create a -screenshot in .BMP format to the current working directory or click to record a sequence of single -screenshots. You can opt to only record new movie frames when the -screen content really changed. +activate any extended resolution here.
-
+
++Here you control how the video output of the emulated Atari appears +on your screen. +
+ ++ Check "Fullscreen" to run Hatari in fullscreen. By default Hatari + runs in windowed mode. +
+
+ The "Frame Skip" option can be used to speed up the emulator
+ if it is running too slow on your system. Disable frame-skip if you have
+ a fast computer. When selecting 1, 2 or 4, drawing of corresponding number
+ of frames will be skipped after each frame actually shown by Hatari.
+ Select "Auto" to let the emulator to decide whether, and
+ how many frames will be skipped.
+ Note: The frameskip option also affects the frame rate of the
+ screen animation recording!
+
+Indicators that you can have on the Hatari window: +
++"Keep desktop resolution" option will use your desktop resolution +for fullscreen to avoid issues related to resolution switching, +especially on LCD monitors (they're slow). If this isn't enabled, +values from the "Max zoomed win" option are used in selecting +a suitable resolution. +
+"Max zoomed win" option controls up to which size Hatari tries to scale +the Atari resolutions and how much of the borders (enabled in Atari +Monitor dialog) will be shown. Note that there are several limitations +in this and the "Keep desktop resolution" option, partly because Hatari +has different implementations for different video modes: +
++You should set these values to a size that suits best your monitor +resolution. It's intended to help in getting Hatari to best use your +monitor space on a windowed mode and in fullscreen avoiding "fuzzy" +scaling done by your LCD monitor. +
++Giving "-z 2" option on command line will reset max zoomed size to +default values and "-z 1" will disable all zooming. +Note that zooming takes additional CPU computing time and should +not be enabled on very slow computers. +
+Click the button to create +a screenshot in PNG (or BMP) format to the current working directory +or click the button to +record an AVI format video of Hatari screen (and audio) output. +
++Selecting "Crop statusbar" option will leave statusbar out from +the screenshots and recorded videos. +
+ +
Here you can select the keyboard mapping to use. Two different mappings - called "Symbolic" and "Scancode" are predefined.
-"Symbolic" tries to map the symbolic values of your PC keys + called "Symbolic" and "Scancode" are predefined.
+"Symbolic" tries to map the symbolic values of your PC keys to the ST keys. It should be working pretty good on all systems as long as your keyboard layout looks close to the standard english keyboard layout. However, you might experience some problems with special keys like brackets etc.
-"Scancode" uses the scancode values of your PC keys for keyboard +
"Scancode" uses the scancode values of your PC keys for keyboard mapping. This only works on certain architectures like Linux where the scancodes are similar to the ST scancodes (e.g. it does not work on Mac OS X). If it works on your system, this often gives better results than the symbolic mapping. Note that you also need a TOS version with the right language (e.g. use a French TOS if you are using a French keyboard).
You can also load a custom keyboard mapping file here if you wish. Please - note that the custom keyboard mapping will use the "symbolic" + note that the custom keyboard mapping will use the "symbolic" mapping for all keys that are not defined by your map file. Have a look at the supplied example mapfile (keymap-sample.txt) to see how to create your own keyboard mapping.
++ When the emulator runs in fast forward mode, and you want to type text, + it can be annoying that the emulated system detects multiple key events + due to the key repetition of the emulated system. To avoid this you can + disable the key repetition in fast forward mode here. +
-
+
Here you can control the sound subsystem.
Check if you want emulated sound at all. Emulation is faster if sound emulation is turned off.
-3 frequencies from low to high quality are available. Experiment a -little bit to find out which fits best for your setup. -Medium quality will work ok in most cases.
-You can select to record a piece of sound here. Check which format -to use and click the button. It is a toggle button so -you will need to return to the GUI to switch sound recording off again.
++ Nine frequencies from low to high quality are available. Experiment a + little bit to find out which fits best for your setup. + For most modern computers, 44100 Hz or 48000 Hz should be fine. + For older or slower host systems, you should use a lower frequency. + 12517, 250033 and 50066 Hz are frequencies supported by + the STE/TT/Falcon sound DMA. +
++YM voice volume mixing "ST table" method uses a lookup table of audio output +voltage values measured on STF and "Linear" just averages the 3 YM voices. +
++ You can select to record a piece of sound here. + Use the button to choose a file. + The file name extension that you use (.WAV or .YM) determines in which format + the sound is recorded in. The button + is a toggle so you will need to return to the GUI to switch sound recording off + again (or to use the keyboard shortcut for that). +
-Check here if you want to enable experimental printer support. See -the chapter "Emulated printer" for details.
+
+
Check the first checkmark to enable experimental printer support. +See the Emulated printer section for +details.
+As Hatari currently only supports printing to file, click on to select the file to print to. You can + class="button">Browse to select the file to print to. You can enter a new filename as well.
-NOTE: As the printer emulation is not perfect yet, -activated printer support may interfere with the emulated sound. -This is due to the fact that the Atari ST uses some general I/O ports -of the soundchip for the printer port. The Hatari team suggests to -disable printing while using games and demos. -
-Check the second checkmark if you want to enable experimental RS232 -support. The RS232 device is configured according to the settings of +
Check the second checkmark to enable experimental RS232 support. +The RS232 device is configured according to the settings of the emulated RS232 of the Atari ST. This means Hatari will automatically use baudrate and handshaking as configured for the emulated ST.
-Select a suitable device file for input and output. Click on to select. -A good choice is /dev/ttyS0 or /dev/ttyS1. -
-You can enable MIDI as well. This currently works for outputting -MIDI data only. A good choice is /dev/midi00.
-Click on to select a suitable -MIDI device file for output.
-Your sound driver must support MIDI to make this work.
-NOTE: RS232 and MIDI emulation are very experimental, too. -Don't enable them unless you really need them! +
Click on to select suitable +device files for serial input and output. On Linux a good choice is +/dev/ttyS0 or /dev/ttyS1. +
+Check the third checkmark to enable experimental MIDI support. +Click on to select a suitable +MIDI device files for MIDI input and output.
+midi-linux.txt file explains how to +select the correct MIDI device file, how to set up software sound +synthetizing on Linux (using Alsa) if your sound card/driver doesn't +support MIDI, and how to set up MIDI networking e.g. between multiple +Hatari instances.
-While the emulator is running, you can activate or toggle various features via Hatari keyboard shortcuts. Below are listed the default @@ -805,21 +2295,21 @@ shortcut key bindings:
You can change the key bindings from the Hatari configuration file. -The required key values you can see from the SDL_keysym.h include file -(usually in /usr/include/SDL/). +The required key values can be seen in the SDL_keysym.h include file +(usually in /usr/include/SDL/).
The right CTRL key is used by default as the -fire button of the emulated joystick when you turn on joystick emulation -via keyboard.
-The cursor keys will be used by default as the emulated ST joystick, -unless you are using joystick emulation via a real joystick or have disabled -joystick emulation completely. Then the cursor keys will act as the cursor -keys of the emulated Atari ST, of course.
+If joystick emulation via keyboard is enabled, by default cursor keys +are used for the directions and right CTRL key +as the fire button. Otherwise they act as corresponding keys of the emulated +Atari ST.
+ +NOTE: Problems with simultenous keypresses most likely aren't an +issue in Hatari as many modern keyboards report/support only three +simultenous key presses (or even just two depending on which keys +are in question). Expensive gaming keyboards support more.
+However it is a little bit different in windowed mode. To make the mouse work there as expected you need to grab it first or lock it into the Hatari window. Do this by pressing the ALTGR+m -hotkey combination. -Press it again to go back to normal mouse behaviour which allows you to -work in other X11 windows while Hatari is up and running.
+hotkey combination or starting Hatari with the +--grab command line option. +Press the shortcut key (again) to go back to normal mouse behaviour +which allows you to move mouse outside outside the Hatari window while +Hatari is up and running. Note: pausing the emulation will also +(temporarily) release the mouse grab.Mouse scrollwheel will act as cursor up and down keys.
If you do not have a PC joystick or joypad, then you do not need to desperate. You can emulate one of the two Atari ST joysticks via the @@ -948,19 +2459,19 @@ cursor keys. Just activate it in the GUI as the joystick directions, the right CTRL key will act as the firebutton. You can still use the cursor keys as the ST's cursorkeys in this mode as long as you press SHIFT -along with the cursorkeys.
+along with the cursorkeys. You can also configure these keys from the +joystick options.Hatari by default only handles ST modes, ST-LOW, ST-MED and ST-HIGH.
-Overscan effects and socalled "Border Removal" are possible too.
-Due to the fact that these effects are achieved by using quirks and -glitches in the original chips to do things beyond their specification -emulation is a bit tricky for these and not all ST applications -utilizing these techniques will work properly in Hatari. -Especially socalled "Sync Scrolling", a special technique to emulate -the low byte of the video address, currently does not work properly in -Hatari. +
Hatari emulates all screen modes of the original machine.
++ST/STE shifter overscan effects are emulated, but due to the fact +that these effects are achieved by using quirks and glitches in the +original chips to do things beyond their specification, emulation is +a bit tricky for these effects. As a result, some demos using these +techniques might not be displayed correctly in Hatari, known ones are +listed in the compatibility.html file.
Beside that you can setup extended VDI modes. These only work with GEM-compliant applications and they are equal to fitting a videocard @@ -1017,7 +2528,7 @@ might have to use another device name he /dev/fd0u720 for 720kB disks). However, if the disk is copy-protected or doesn't use a MSDOS compatible file system, this might fail. So be very -careful if you're not sure about the disk format.
+careful if you are not sure about the disk format.The other possibility is to image the disk on a real Atari ST. There are programs like the Magic Shadow Archiver for this task. Hatari @@ -1068,63 +2579,1415 @@ so your highscores and savegames are lost if you load the game from such a zipped disk image.
-Hatari supports two ways of emulating a ST hard drive: The low-level -ACSI hard disk emulation and a GEMDOS based drive emulation.
+-To use the ACSI hard disk emulation, you need a hard disk image file -with a pre-installed HD driver in it. So either try to image your old -ST hard disk or grab one from the internet (e.g. from the Hatari website). -Please note that AHDI 5.0 is the only hard disk driver that -is currently working and supported. Other hard disk drivers likely will not -work. -
--To create a new ACSI hard disk image, you can start with an empty image that -you have for example created with the following command: -dd if=/dev/zero of=hd.img bs=512 count=xxx. -Then copy the complete AHDI 5.0 package to a floppy disk image, and enable -this floppy disk image and the fresh hard disk image in the emulator. -Start HDX.PRG from the floppy disk and format and partition the hard disk -with this tool. When you're finished, you have to restart the emulated system, -run AHDI.PRG from the floppy disk and HINSTALL.PRG afterwards. -With HINSTALL.PRG you can install the hard disk driver to the fresh HD image, -so you can directly boot from the hard disk image in the future. +Hatari supports three ways of emulating Atari hard drives: The low-level +ACSI and IDE hard disk emulation and a GEMDOS based drive emulation. +In most cases the GEMDOS based hard disk emulation is best as it allows +exchanging files easily between the emulated and the host environment. +
++Please note that changing the HD-image or the GEMDOS HD-folder will reset +the emulated Atari since it is not possible to switch the hard disk +while the emulator is running. +
++On a 32-bit host system, the size of a hard disk image is limited to 2 GB. +On 64-bit host systems, bigger images might be possible but the support +for bigger images is not tested very well yet. How large partition sizes +are supported inside the hard disk (images) depends on the TOS version. +TOS 1.0x supports up to 256MB partitions and TOS 4.0x up to 1GB ones.
+With the GEMDOS based drive emulation, you can easily "mount" a +
+With the GEMDOS based drive emulation, you can easily "mount" a folder from the host file system to a drive of the emulated Atari. To use the GEMDOS based drive emulation, you should use a folder on your hard disk that only contains files and folders with valid TOS -filenames. -That means that all files/folders should be written in capital letters -and their length mustn't exceed the 8+3 file name length limit. If you -don't want to rename all files to get capital letters, it is also -possible to store that folder on a FAT filesystem since those -filesystems are case-insensitive.
-GEMDOS drive emulation is an easy way to share files between the -host system and the emulated Atari, but it is known to be incomplete -and -a little bit unstable, especially if you use it together with the ACSI -hard disk emulation. So if your programs complain that they could not -find/read/write files on the GEMDOS HD drive, you should try to copy -them to a floppy disk image or a real hard disk image!
-Due to the way the GEMDOS drive emulation is implemented at the -moment, it is not possible to use a cartridge image together with -GEMDOS drive emulation.
-Note that changing the HD-image or the GEMDOS HD-folder will reset -the emulated Atari since it is not possible to switch the hard disk -while the emulator is running.
+filenames i.e. file and folders names shouldn't contain invalid GEMDOS +filename characters and their length shouldn't exceed the 8+3 file name +length limit. + ++If you provide --harddisk option +a directory containing only single letter (C-Z) subdirectories, each +of these subdirectories will be treated as a separate partition, +otherwise the given directory itself will be assigned to drive "C:". +In the multiple partition case, the letters used as the subdirectory +names will determine to which drives/partitions they're assigned. +
++GEMDOS drive emulation is an easy way to share files between the +host system and the emulated Atari, but there are also some known +limitations which are due to the way the GEMDOS drive emulation is +implemented: +
++So, if your programs complain that they could not find/read/write +files on the GEMDOS emulated drive, you should try to copy them to a +floppy disk image or a real hard disk image! +
+ ++To use the ACSI hard disk emulation, you need a hard disk image file +with a pre-installed HD driver in it. You can try to get an image of +your old ST hard disk or grab one from the internet (e.g. from the +Hatari website). +
++To create a new ACSI hard disk image, you can start with an empty +image that you have created for example with the following command: +dd if=/dev/zero of=hd.img bs=512 count=xxx +(where 'xxx' is size in 512 byte blocks). Copy the complete AHDI 5.0 +package to a floppy disk image, then boot Hatari with this floppy disk +image and the fresh hard disk image like this: +--acsi hd.img ahdi.st. +Then start HDX.PRG from the floppy disk and format + partition the hard +disk image with it. +
++Formatting and partitioning works currently only with AHDI 5, but you +can install the AHDI 6 driver to the hard disk after it's formatted. +Restart the emulated system, run AHDI.PRG from the floppy disk to access +the hard disk image from the emulated Atari and then run HINSTALL.PRG. +After installing the hard disk driver to the fresh HD image with +HINSTALL.PRG, you can boot directly from the hard disk image. +
+ ++
+As the IDE disk format (little endian) differs from the ACSI disk format +(big endian), you need separate disk images for them. Hatari doesn't +currently support formatting IDE disks with AHDI, but you can do it with +Cecile. +
++First create an empty image file with the size of your choice with: +dd if=/dev/zero of=hd.img bs=1k count=xxx. +Then get the Cecile hard disk driver from +http://centek.free.fr/atari/softs/s_cecile.htm +and put it on a floppy disk image (e.g. to one named "cecile.st" using: +zip2st.sh cecile.zip). +
++Run Hatari with +hatari --machine falcon --tos tos404.rom +--ide-master hd.img cecile.st, switch to larger color resolution +and warm up your French language skills. Then start the Cecile hard +disk driver CECILE.PRG and run CC_TOOLS.APP to partition your hard +disk image. Click the "Partition" button, select "Hatari IDE disk" and set +suitable partition size with the arrows (below type field). Then click +"Valider". +
++If you only want to use your HD image in Falcon mode, you can install +the Cecile hard disk driver to the image from the Cecile CC_TOOLS.APP: +Click the "Installer" button and save the Cecile driver to the +1st partition on "Hatari IDE disk". If you want to also use your HD +image in ST/STE mode, you need to get and install AHDI 6 driver on it +instead (see ASCI hard disk +emulation section). +
++Then you can boot from your hard disk image by simply specifying it +with the --ide-master parameter. +
+ + +Moving files to and from Atari hard disk images can be done +either through GEMDOS partitions (host directories mounted inside +Hatari emulation) or accessing the images directly on the host +(outside the emulation). Both have their own limitations.
+ +If it's fine for the IDE/ACSI partitions to be first, you can use +hard disk images with AHDI or Cecile driver and a multipartition +GEMDOS setup as described in above sections. If you want to boot from +a GEMDOS partition i.e. such to be before hard disk image partitions, +and still to be able to access all the IDE/ACSI partitions, you need to +use HD Driver.
+ +Uwe Seimet's HD +Driver works fine with both the Hatari GEMDOS partitions and normal +hard disk images. However, it doesn't work with EmuTOS so you need +real TOS (at least version v1.04). +
+ +First copy the HDDRIVER.PRG binary into your GEMDOS drive emulation +directory AUTO folder. Then start the HDDRUTIL.APP configuration utility, +locate HDDRIVER.PRG, open the +"Devices +and Partitions" dialog and select the "Preserve Existing Partitions" +option. Then you can just start Hatari with your hard disk image and +this GEMDOS directory, for example like this: +"hatari --harddisk gemdos-hd/ --ide-master +ide-hd.image".
+ +If you're using the demo version of HD Driver, you can +write files only to the C: partition, i.e. in above case only copy +files from the hard disk image partition to the GEMDOS partition (with +some write slowndowns included into the demo version). If you want to +copy files to the hard disk image with the demo version of +the HD Driver, you need to set the hard disk image as drive C:.
+ +To accomplish this, set the GEMDOS partitions to be from D: forward, +i.e. have a directory which contains only single letter subdirectories, +starting from "D" like in "mkdir gemdos-hd; +mkdir gemdos-hd/D". Then give Hatari (as the last parameter) +a boot floppy image containing the demo version of HDDRIVER.PRG in +its AUTO folder, like this: "hatari +--ide-master ide-hd.image --harddisk gemdos-hd/ hd-driver-floppy.st". +
+ + ++If you want to access the harddisk image partitions also outside +the emulation, the disk image needs to have a DOS partition table. +The atari-hd-image script included +with Hatari can be used to create such an image. +
++Inside the Hatari emulator, EmuTOS can access partition(s) on these +kind of images directly without any driver software. Of the Atari HD +drivers mentioned above, Centek's Cecile and Uwe Seimet's HD Driver +(demo) work fine with these partitions. E.g. AHDI and CBHD don't. +
++Note that plain EmuTOS supports only ACSI and the listed HD drivers +support only IDE (emulation). Cecile needs TT or Falcon and HD Driver +doesn't work with EmuTOS. To summarise; if ASCI emulation and +EmuTOS are enough, use those. Otherwise, if you want to use TT or +Falcon emulation, use Cecile (or full HD Driver version if you have +it), otherwise use HD Driver (demo). +
++To access the content of the partitions on Linux host, there are two +possibilities: + +
+For this you need to add an entry for the hard disk +image to your ~/.mtoolsrc and +specify which partition you want to access from the image. For +an image created with the above mentioned script, the line in +the configuration file should look something like this: +
++MTOOLS_NO_VFAT=1 +drive c: file="/home/user/hatari/hd.img" partition=1 ++
+Note that Mtools is instructed to use FAT compatibility mode because +EmuTOS cannot deal properly with VFAT file information. If you don't +want this setting for all your Mtools drives, you can set it also via +the environment like this ("::" refers to the drive image given with +the "-i" option): +
++MTOOLS_NO_VFAT=1 mcopy -spmv -i hd.img files/* :: ++ +
+This is recommended even by Mtools documentation, but it's less +convenient as it requires root rights. First you need to "loop" +mount the image: +
+
+$ su
+# image="hd.img"; mountdir="hd"
+# start=$(parted $image unit s print | awk '/ 1 /{print $2}' | tr -d s)
+# losetup -f $image -o $((512*$start))
+# loop=$(losetup -a | tail -1 | cut -d: -f1)
+# mkdir -p $mountdir
+# mount -t msdos $loop $mountdir
+
++This uses parted to find out the first +partition offset in sectors and then tells losetup +to bind the first free loop device to a corresponding offset from +the hd.img image. +mount is then used to mount the file system +from the loop device on top of the "hd" directory. +
++After you've copied the relevant files to the "hd" directory, you need +unmount the file system and remove the loop device binding before using +the disk image from Hatari: +
++# umount $mountdir +# losetup -d $loop ++ +
+Hatari has a built-in debugging interface which can be used for +analyzing code that runs in the emulated system. To invoke the +debugger, press the AltGr + Pause +key combination. +
+ ++If you start Hatari with the "-D" command line option, m68k +exceptions will automatically invoke the debugger. You can +toggle this also later from the debugger with the "setopt -D" +command. +
+ ++To run debugger commands at Hatari startup, one can use the "--parse +<file>" command line option. This is useful e.g. for debugging +TOS or some demo startup code, or if you always want to use some +specific debugger setup (breakpoints etc). +
+ ++The debugger uses Hatari's parent console window, so make sure you run +Hatari from the command line when you want to use the debugger. On +Linux you can add for example an icon to your desktop that does it +with something like this (replace "xterm" with your favorite terminal +program): +
++xterm -T "Hatari debug window" -e hatari ++ + +
+At the debugger prompt, type "help" to get a list of all +the available commands and their shortcuts: +
++Generic commands: + cd ( ) : change directory + evaluate ( e) : evaluate an expression + help ( h) : print help + history (hi) : show last CPU & DSP PC values & executed instructions + info ( i) : show machine/OS information + lock ( ) : specify information to show on entering the debugger + logfile ( f) : open or close log file + parse ( p) : get debugger commands from file + setopt ( o) : set Hatari command line and debugger options + stateload ( ) : restore emulation state + statesave ( ) : save emulation state + trace ( t) : select Hatari tracing settings + quit ( q) : quit emulator + +CPU commands: + address ( a) : set CPU PC address breakpoints + breakpoint ( b) : set/remove/list conditional CPU breakpoints + disasm ( d) : disassemble from PC, or given address + profile ( ) : profile CPU code + cpureg ( r) : dump register values or set register to value + memdump ( m) : dump memory + memwrite ( w) : write bytes to memory + loadbin ( l) : load a file into memory + savebin ( s) : save memory to a file + symbols ( ) : load CPU symbols & their addresses + cont ( c) : continue emulation / CPU single-stepping + +DSP commands: + dspaddress (da) : set DSP PC address breakpoints + dspbreak (db) : set/remove/list conditional DSP breakpoints + dspdisasm (dd) : disassemble DSP code + dspmemdump (dm) : dump DSP memory + dspsymbols ( ) : load DSP symbols & their addresses + dspprofile (dp) : profile DSP code + dspreg (dr) : read/write DSP registers + dspcont (dc) : continue emulation / DSP single-stepping ++ + +
+After writing (with TAB completion) one of the above command names, +pressing TAB will (for most commands) show all the available subcommands. +
+ ++If you want to give numbers in other number bases +than the default/selected one, they need to be prefixed with a +character indicating this. For decimals this prefix is "#" (#15), +for hexadecimals "$" ($F), and for binary values it's "%" (%1111). +
+ ++By default debugger expects all numbers without a prefix to be +decimals, but you can change the default number base with the "setopt" +command, just give it the desired default number base (bin/dec/hex). +When using the hexadecimal number base, remember still to prefix +hexadecimal numbers with '$' if they could be confused with register +names (a0-7, d0-7)! Otherwise results from expressions and +conditional breakpoints can be unexpected. +
+ + ++Instead of a number, you can also use an arithmetic expression, by +surrounding it with quotes (""). An expression can contain +calculations with CPU and DSP register, symbol and Hatari variable +values in addition to numbers. For example to give a sum of A0 and +D0 register values to a command, use "a0+d0". +
+ ++Within arithmetic expressions parenthesis are used both to change +the order of precendence and to indicate indirect addressing. +Unlike with conditional breakpoint expressions (explained below), you +cannot give size for the indirect addressing, a long value is always +read from the RAM address given within parenthesis. For example to +get a long value pointed by stack pointer + 2, use "(a7+2)". +
+ ++Values of arithmetic expressions are always evaluated before being +given to a command. Except for "evaluate" and "address" commands, +they always need to be marked with quotes (""). Besides arithmetics, +this can be used also to give symbol/register/variable values to +commands that don't otherwise interpret them. If command complains +that it didn't recognize e.g. a register name, just put it to quotes +and it will be "evaluated" before being given to the command. +
+ ++With command argument completion (see build +notes), result from the last "evaluate" command can be inserted +by typing '$' and pressing TAB. +
+ + ++In the beginning, probably the most interesting commands are "m" and "d" +for dumping and disassembling memory regions. You can use "dm" and "dd" +commands to do the same for the DSP. +
++> help memdump +'memdump' or 'm' - dump memory +Usage: m [start address-[end address]] + dump memory at address or continue dump from previous address. ++
+> help disasm +'disasm' or 'd' - disassemble from PC, or given address +Usage: d [start address-[end address]] + If no address is given, this command disassembles from the last + position or from current PC if no last position is available. ++
+> disasm pc +$00aa6e : 2f08 move.l a0,-(sp) +$00aa70 : 0241 0fff andi.w #$fff,d1 +$00aa74 : 207c 00fe 78c0 movea.l #$fe78c0,a0 +$00aa7a : 2070 1000 movea.l (a0,d1.w),a0 +$00aa7e : 4ed0 jmp (a0) ++ +
+Both commands accept in addition to numeric addresses also register +and symbol names, like in above example. If you don't specify an +address, the commands continue showing from an address that comes +after the previously shown data. "disasm" command default address +will be reseted to PC address everytime you re-enter the debugger. +
+ ++You can use the "info" command to see state of specific sets of HW +registers (e.g. "info videl") and Atari OS structures (e.g. "info gemdos"). +
+ + ++By using the "lock" command, you can ask Hatari to show specific +information whenever you enter the debugger / hit a breakpoint. For +example to see disassembly from current PC address, use "lock disasm". +
+ ++With the "regaddr" subcommand, you see disassembly or memory +dump of an address pointed by a given register ("lock regaddr disasm +a0"). Of the DSP registers, only Rx ones are valid for this +subcommand. +
+ ++"file" subcommand can be used to get (arbitrary number of) commands +parsed and executed from a given debugger input file whenever debugger +is entered. With this you can output any information you need: +
++lock file debugger.ini ++ +
+To disable showing of this extra information, use "lock default". +Without arguments "lock" command will show the available options +(like the "info" command does). +
+ + ++You can load symbol name/address information from a file to the +debugger with the "symbols" command (and with "dspsymbols" for DSP). +These symbolic names can be used in arithmetic expressions and +conditional breakpoint expressions. They also show up in the "disasm" +command output. +
+ +The symbols file format is following:
++e01034 T random +e01076 T kbdvbase +e0107e T supexec ++
+Where 'T' means text (code), 'D' means data and 'B' means BSS section +type of address. The hexadecimal address, address type letter and the +symbol name are separated by white space. Empty lines and lines +starting with '#' (comments) are ignored. +
+ ++AHCC C-compiler can provide a symbol file suitable for this with its +"-n" 'nm' list option (not enabled by default). If you're reverse +engineering some code, you could just create your own symbols file to +help in debugging it later. +
+ ++If you're debugging normal TOS/GEM programs instead of code loaded +into a fixed address (like e.g. EmuTOS is), after the program has been +loaded, load the symbols with the program text segment address offset: +
++symbols calc.sym "TEXT" ++
+(The value of the above virtual "TEXT" debugger variable comes from a +program basepage, it's set after the program is loaded by TOS, see +"info basepage" output.) +
+ + ++There are two ways to specify breakpoints for Hatari. First, there are +the simple address breakpoints which trigger when the CPU (or DSP) +program counter hits a given address. Use "a" (or "da" for the DSP) +to create them, for example: +
++a $e01034 +a some_symbol ++ +
+Note that address breakpoints are just wrappers for conditional +breakpoints so you need to use "b" command to remove or list them. +
+ ++Then there are the conditional breakpoints which can handle much more +complex break condition expressions; they can track changes to +register and memory values with bitmasks, include multiple conditions +for triggering a breakpoint and so on. Use "b" (or "db" for the DSP) +to manage them. +
+ +Help explains the general syntax:
++> help b +'breakpoint' or 'b' - set/remove/list conditional CPU breakpoints +Usage: b <condition> [&& <condition> ...] [:<option>] | <index> | help | all + +Set breakpoint with given <conditions>, remove breakpoint with +given <index>, remove all breakpoints with 'all' or output +breakpoint condition syntax with 'help'. Without arguments, +lists currently active breakpoints. ++ +
+Unless you give breakpoint one of the pre-defined subcommands ('all', +'help'), index for a breakpoint to remove or no arguments (to list +breakpoints), the arguments are interpreted as a new breakpoint +definition. +
+ ++Each conditional breakpoint can have (currently up to 4) conditions +which are separated by "&&". All of the breakpoint's +conditions need to be true for a breakpoint to trigger. +
+ + ++Normally when a breakpoint is triggered, emulation is stopped and you +get to the debugger. Breakpoint options can be used to affect what +happens when a breakpoint is triggered. These options are given after +the conditions and are prefixed with ':'. +
+ ++a $1234 :2 ++
+b pc > "pc" :once +continue ++
+Note: you can give multiple options for conditional breakpoints, but +for address breakpoints you can give only one these options. And +"file" option is supported only for conditional breakpoints. +
+ + ++"b help" explains very briefly the breakpoint condition syntax: +
++> b help +condition = <value>[.mode] [& <mask>] <comparison> <value>[.mode] + +where: + value = [(] <register/symbol/variable name | number> [)] + number/mask = [#|$|%]<digits> + comparison = '<' | '>' | '=' | '!' + addressing mode (width) = 'b' | 'w' | 'l' + addressing mode (space) = 'p' | 'x' | 'y' ++ +
+For CPU breakpoints, mode is the address width; it can be byte ("b"), +word ("w") or long ("l", default). For DSP breakpoints, mode specifies +the address space: "P", "X" or "Y". Note that on DSP only R0-R7 +registers can be used for memory addressing. For example; +
+db (r0).x = 1 && (r0).y = 2 ++ +
+If the value is in parenthesis like in '($ff820)' or '(a0)', then the +used value will be read from the memory address pointed by it. Note +that this conditional breakpoint expression value is checked at +run-time whereas quoted arithmetic expressions (mentioned in +Entering arguments +to debugger commands above) are evaluated already when +adding a breakpoint. For example, to break when a value in an address +(later) pointed by A0 matches the value currently in D0, one +would use: +
++b (a0) = "d0" ++ +
+If you're interested only on certain bits in the value, you can use +'&' and a numeric mask on either side of comparison operator to +mask the coresponding value, like this: +
+b ($ff820).w & 3 = (a0) && (a1) = d0 & %1100 ++ +
+Comparison operators should be familiar and obvious, except for '!' +which indicates inequality ("is not") comparison. For example: +
++b d0 > $20 && d0 < $40 && d0 ! $30 ++ +
+As a convenience, if the both sides of the comparison are exactly the +same (i.e. condition is redundant as it's always either true or +false), the right side of the comparison is replaced with +its current value. This way you can give something like this: +
++b pc > "pc" ++
As:
++b pc > pc ++ +
+That in itself isn't so useful, but for inequality ('!') comparison, +conditional breakpoint will additionally track and output all further +changes for the given address/register expression. This can be used +for example to find out all value changes in a given memory address, +like this: +
++b ($ffff9202).w ! ($ffff9202).w :trace ++
+Typically with this one would use the breakpoint "trace" option like +above. +
+ + ++In addition to loaded symbols, the debugger supports also setting +conditional breakpoints on values of some "virtual" variables listed +by "b help". For example: +
++b pc = TEXT :once ++Note1: It's better to trigger it only once because if you'd leave it on, +during reboot you would get a warning for every instruction until TOS sets +a valid basepage. +
+m DATA +m BSS ++
+b HBL = "HBL+20" ++
+b AesOpcode ! AesOpcode && AesOpcode < 0xffff :trace ++
+Hint: "info" command "aes", "gemdos" and "vdi" subcommands for can be +used to list the corresponding OS-call opcodes. For example, +to see the GEMDOS opcodes, use:
++info gemdos 1 ++ + + +
+As the file pointed by the breakpoint ":file" option (see +Breakpoint options) can contain any +debugger commands, it can also be used to do automatic "chaining" of +debugger and breakpoint actions so that after one breakpoint is hit, +another one is set. +
+ +For example if you have these input files:
++b GemdosOpcode = 0x3D :trace :file trace.ini ++
+setopt --bios-intercept --trace gemdos,xbios,fdc,io_all +b VBL = "VBL+4" :trace :file disable.ini ++
+trace none +b all ++
+And then start Hatari with the first debugger input file and a GEMDOS +harddisk directory containing "desktop.inf" file: +
++hatari --parse break.ini -d testdir ++ +
+Note: because debugger input files cannot "continue" +emulation, ":trace" option needs to be used for the breakpoint(s) +if you want emulation to continue after the breakpoint action(s). +
+ ++Hint: It's better to test each input file separate before testing the +whole chain. Besides the ":file" breakpoint option, these debugger +input files can be also read with the debugger "file" command, "lock" +command "file" option and with the Hatari "--parse" command line +option. +
+ + ++After analyzing the emulation state and/or setting new breakpoints, +you can continue the emulation with the "c" command. You can continue +for a given number of CPU instructions (or DSP instructions when "dc" +is used), or you can continue forever (until a non-tracing breakpoint +triggers) if you omit the instruction count. +
+ ++If you want to continue with real-time disassembling, you can enable +it with "trace cpu_disasm" (or "trace dsp_disasm" for DSP) at the +debugger prompt before continuing. +
++Disable tracing with "trace none" when you enter the debugger again. +"trace help" (or TAB) can be used to list all the (over 30) supported +traceable things, from HW events to OS functions. +
++Because Hatari normally emulates things at the hardware level, tracing +certain Atari OS Traps requires setting additional Hatari options +which tell it to intercept this higher level functionality: +
+If use of above isn't possible for the things you'd like to track, +you can use the OS call opcode breakpoints explained above with the +":trace" breakpoint option. +
++Tracing options can be set even from a program within the emulation +if you enable the Hatari "--bios-intercept" option and call XBios 255 +from the program with a suitable Hatari command line string. Bios +interception will also show the (Bios level) CON: output on the host +console. +
++Note that the trace output file can be set only when Hatari starts, +it cannot be changed from within the debugger (or emulation). +
+ + ++Profiling tells where the emulated code spends most of its (emulated) +time. It can be used to find out where a program is (apparently) +stuck or what are the largest performance bottlenecks for a program. +
+ ++Profiling is used by first enabling the profiler (use "dp" for DSP): +
++> profile on +Profiling enabled. ++
+And profiling will start once you continue the emulation: +
++> c +Returning to emulation... +Allocated CPU profile buffer (18 MB). ++ +
+When you get back to the debugger, the collected profiling information +is processed and a summary of in which parts of the RAM the execution +happened is shown: +
++Allocated CPU profile address buffer (4 KB). +Normal RAM (0-0x400000): +- no activity +Cartridge ROM (0xFA0000-0xFC0000): +- no activity +ROM TOS (0xE00000-0xE80000): +- active address range: + 0xe0014c-0xe23f02 +- active instruction addresses: + 707 (100.00% of all) +- executed instructions: + 629144 (100.00% of all) +- used cycles: + 9408503 (100.00% of all) +- address with most cycles: + 0xe0dcca, 402628 cycles (4.28% of all in area) +- address with most hits: + 0xe004a4, 4900 hits (0.78% of all in area) ++
+(DSP RAM will be shown only as single area in profile information.) +
+ ++After this you can request more detailed profiling information: +
++> profile +'profile' - profile CPU code +Usage: profile <on|off|counts|cycles|symbols|stats> [show count] + on & off enable and disable profiling. Data is collected + until debugger is entered again after which you can view + statistics about the data or view PC addresses that took + most cycles or functions/symbols called most often. + You can specify how many items are shown at most. ++ +
For example:
++> profile counts 8 +addr: count: +0xe004a4 0.78% 4900 +0xe004b6 0.78% 4896 +0xe0dcbc 0.55% 3448 +0xe0dcc6 0.55% 3448 +0xe0f59e 0.55% 3446 +0xe0dcce 0.55% 3445 +0xe0dcd6 0.55% 3445 +8 CPU addresses listed. ++
+If you have loaded symbol information for code addresses, with the +"profile symbols" command you get a list of how many times the code +execution passed through the defined symbol addresses. +
+ ++After the profiling information has been post-processed, it will +also be shown in the disassembly output. +
+ + ++Here's a list of some common debugging tasks and how to do them +with the Hatari debugger: +
+ ++trace gemdos,io_all ++Please see Tracing section for more information +on tracing, what's possible with it and what are its limitations. +
+a $12345 :6 ++
+b d1 = 5 ++
+b d1 ! d1 ++
+b d1 > 9 && d1 < 31 ++
+b ($ff820a).b & 2 = 2 ++
+b ($ff820a).b & 2 ! ($ff820a).b & 2 ++
+b ($ff820a).b & 2 ! ($ff820a).b & 2 :trace ++
+b VBL = 100 && HBL = 40 && FrameCycles = 5 ++
+b d0 = "d0 + 10" ++
+history on +c +[breakpoint is hit and debugger entered] +history 16 ++
+history on +lock history 16 +c ++
+lock registers +c 1 +[new register values] +c 1 +[new register values] +... ++
+m "a7-64"-a7 ++
+lock file stack.ini ++Please see also Chaining breakpoints +section for more examples on what you can do with the debugger input files. +
+profile on +c +[after a while, use AltGr+Pause to get back to debugger] +profile counts ++
+Hint: for most of above commands, one just needs to prefix them with +"d" (or "dsp" if using full command names) to do similar operation on +DSP. +
+ + ++Lastly, the debugger is much nicer to use with the command line +history, editing and especially with the command, command argument and +symbol name completion support. If you're building Hatari yourself, +please make sure that you have the GNU readline development files +installed (on Debian / Ubuntu these come from the libreadline5-dev +package). Otherwise completion doesn't get enabled when you configure +Hatari. +
+ ++ENABLE_TRACING define needs to be set for tracing to work. +By default it should be enabled. +
+ + +Hatari performance varies between Atari programs, depending on what +features Hatari needs to emulate for them. Less accurate Atari +emulators may be faster as emulation accuracy has a performance +overhead.
+The operating system and libraries below Hatari can also sometimes +have a noticeable effect on performance.
+ + ++Hatari currently runs best in 16 or 32 bits per pixel color depth +mode, so try to avoid 24 bits per pixel display modes if possible. +16-bit mode is fastest. +
+ ++On OSX, frame skipping, zooming and drive LED options (listed below) +seem to have a large effect on performance in the windowed mode. +This is apparently due to issues in the SDL OSX backend and how OSX +itself composites non-fullscreen window contents. OSX uses always +32-bit mode. +
+ ++Unless you've disabled compiler optimizations (like GCC's -O2 or -O3 +options) in the Hatari build, the extra optimization flags (like GCC's +"-mtune=i686") don't seem to have very large effect on Hatari +performance. Using GCC -O3 option instead of -O2 can give minor +(5-10%) performance improvements for things (demos) that use very +heavily interrupts. +
+ ++However, Hatari can be sped up considerably by giving up some +emulation or emulator accuracy. Except for DSP, these options +should be needed only on very slow devices like handhelds. See below. +
+ ++If nothing else helps, try an earlier Hatari version. More accurate +emulation or emulator output in newer Hatari versions means that they +can be slower despite optimizations. +
+ + ++Emulation options have the largest impact on performance. +These options can be changed from the Hatari GUI System dialog and +the emulation needs to be rebooted for any of these changes to take +an effect! +
+ ++Emulating the Falcon DSP is performance-wise several times more demanding +than emulating the m68k; DSP runs at higher frequency, executes many +instructions for each m68k instruction and emulation isn't as mature +and optimized. Unless some program needs DSP, none or +dummy DSP emulation mode could be used. Even of the programs +that do use DSP, many use it only for background music and work +fine without the real DSP emulation. +
+ ++The single largest factor contributing to general Hatari emulation +performance is the handling of interrupts. Enabling Timer-D patching +option (about) doubles Hatari ST/STE emulation performance as it +significantly reduces the number of interrupts generated by the emulated +Atari machine. Using this has adverse effect only for very rare programs. +
+ ++After the DSP and interrupts, m68k emulation takes most time. +Disabling the "Slower but more compatible CPU" option will speed up +the emulation a lot, but it won't anymore be cycle accurate. This can +be fine for many games and other programs, but won't work e.g. for demos +using overscan or rasters. +
+ ++Roughly speaking, for DSP emulation, one needs at least 2Ghz machine. +For normal (unpatched) Timer-D frequency on some specific cases (like +demos with overscan 512 color animations) one may need over 1GHz +machine, but some rare ST/STE demos may require over 1GHz machine even +with Timer-D patching. For "Compatible CPU" one needs at least 1/2Ghz +machine. +
+ ++NOTE: Above options may cause some programs not to work correctly. +The Hatari Software Compatibility List +lists programs known to need real real Falcon DSP emulation or Timer-D +frequency. Disabling "Compatible CPU" option is recommended only as +a last resort. +
+ + ++Emulator options don't usually have as large effect on performance as +emulation options, but they don't affect the emulated programs at all, +just the quality of the emulation "output". These options can also +be toggled at run-time without rebooting the emulation. +
+ ++Internal Hatari sound handling and the SDL_mixer sound thread +libALSA sound processing can account up to 1/3 of the Hatari CPU usage +in normal ST/STE emulation. Disabling sound will get rid of that. +Using low sound frequency or one matching your sound card may also help. +Best is if you disable also background music from the programs you run +in Hatari as this can significantly reduce the number of generated +interrupts. +
+ ++Screen rendering can take noticeable amount of CPU time. The default +Hatari "auto" frame skipping should be used unless there's a good +reason not to. It will skip converting and showing some of the frames +if there's not enough time for them. +
++Also, if your monitor refresh frequency is lower than the selected +Hatari monitor frequency (e.g. LCD monitors usually use 60Hz whereas +Atari monochrome monitor uses 71Hz), you should use frameskip of one. +The reason is that if your SDL library uses VSync to synchronize the +output to screen (like OSX one?), with zero frame skip that forces the +emulation to run slower than a real Atari. If SDL doesn't use VSync, +Hatari does redundant work to convert frames you can't see. +
+ ++If you are not using frame skip, disabling zooming can have +noticeable improvement on performance. You can do this by specifying +suitably low "Max zoomed" resolution (--zoom +1 command line option sets it to 320x200). If you still want to +have a nice fullscreen mode, you should rather add the right resolution +mode-lines (e.g. "320x200") to your xorg.conf file. If you still want +to use zooming, disabling borders may help a bit. +
+ ++Handling Spec512 color modes which change the ST/e palette constantly +takes some extra CPU. If you have problems with CPU usage in such +screens and you care more e.g. from the sound quality than visuals, you +can disable the Spec512 mode handling by zeroing the threshold for that +with the --spec512 0 option. +
+ ++If your version of libSDL uses VSync to synchronize the screen output, +drawing of the statusbar or the drive LED may have some minor impact +on performance too. Normally they shouldn't. +
+ + ++There are a couple of ways to monitor and measure Hatari performance. +
++By default Hatari has Statusbar visible and automatic frameskip +enabled. When Hatari has enough time that it can sleep a little each +frame, the statusbar frame skip ("FS") value keeps at zero. If Hatari +is completely busy, it will increase to the maximum specified +(automatic) frame skip value. +
++Hatari has also a facility to measure FPS i.e. Frames Per Second. +Just enable the --fast-forward option +on command line (or use the corresponding keyboard shortcut), and +after a while, press the "Pause" key. Whenever Hatari emulation is +paused, Hatari will output on console how many VBLs it could show per +second along with some other numbers. +
++It depends on what you want to measure, but usually it's best to +disable sound and set high frame skip like +--sound off --frameskips 60 so that +the associated external overheads are minimized. E.g. video output +can on some platforms do VSync and measurements would then show +your monitor refresh frequency instead of actual Hatari performance. +
++On Unix systems with times() function +call, only the time spent by the Hatari process itself is measured. +On other systems much less accurate SDL "wall clock" timings are +used. To make latter more accurate you could use also +--run-vbls option to specify how many +VBLs Hatari should run before it exits. In this case it's best to +either have the test-case run automatically from the AUTO-folder or +given as memory snapshot to Hatari with the frame skip set equal to +the VBL count. +
-That's all for the moment. -May the fun without the price to be with you ;-) ! +Note that the numbers can fluctuate quite a bit, especially +when the SDL timings are used, so for (statistically) reliable numbers +you may need to repeat the measurement several times. You should of +course make also sure that the system doesn't have any other activity +at the same time you're making the measurements.
+This is a little compilation of what Atari software does work in -Hatari. It is by no means finished.
- -First is listed software (games, demos and applications) that work -on normal STs, after them is listed STE only software that has been -tested with the current STE hardware emulation.
- -| Game | -Working | -Sound | -Comment | -
| Eliminator | -yes | -perfect | -- |
| Speedball | -yes | -perfect | -- |
| Xenon | -yes | -music ok - fx dodgy | -bullets and explosions sound weired | -
| Bubble Bobble | -yes | -- | - |
| F15 Strike Eagle 2 | -yes | -ok | -keyboard emulation seems to be dodgy | -
| Rick Dangerous | -yes | -perfect | -- |
| Slayer | -yes | -ok | -raster fx at highscore entry dodgy | -
| Lethal Xcess | -no | -- | crashes while loading, sync scrolling will not work properly | -
| Star Goose | -yes | -music ok - bullet sound dodgy | -- |
| Xenon 2 - Megablast | -yes | -nearly perfect (including sampled intro) | -- |
| Metal Mutant | -yes | -seems ok | -some color effects in the lower screen seem buggy | -
| Defenders Of The Earth | -yes | -- | - |
| Nebulus | -yes | -music ok; snowball, balls and trapdoors dodgy | -otherwise working to a playable extend | -
| Leander | -yes | -- | - |
| Navy Seals | -yes | -- | - |
| Armalyte | -yes | -- | - |
| Wings Of Death | -yes | -- | works in STE mode too | -
| Toki | -yes | -- | - |
| Alien World | -yes | -- | Only works with "--slowfdc" | -
| Skweek | -yes | -- | Does not work with cartridge / HD emulation | -
| Demo | -Working | -Sound | -Comment | -
| Fantasia (by Dune/Sector1) | -yes | -- | Only works with "--slowfdc" | -
| Oddstuff (by Dune/Sector1) | -yes | -- | Only works with "--slowfdc". - Enable "frameskip" to avoid the flicker. | -
| If pigs could fly (by Syndicate) | -yes | -- | Only works with "--slowfdc" | -
| LongScreen (by X-Troll) | -yes | -- | Only works with "--slowfdc" | -
| Overdose (by Aggression) | -yes | -- | Does not work with cartridge / HD emulation | -
| Virtual Escape (by Equinox) | -yes | -- | - |
| Posh (by Checkpoint) | -yes | -- | - |
| Flipo (by Oxygene) | -yes | -- | - |
| Syntax Terror (by DeltaForce) | -yes | -- | - |
| Hallucinations (by Reservoir Gods) | -yes | -- | - |
| Sweety (by DHS) | -yes | -- | Does not work with HD emulation | -
| Popstars (chiptunes by YmRockerz) | -yes | -- | Sound works only with Hatari version >0.80 | -
| B.I.G-demo (musicdemo by Exceptions) | -partially | -- | Flickers and colors in 3 of the screens don't look right | -
| SoWatt (by CareBears) | -partially | -- | Colors and scrolling in the main menu are broken | -
| Punish your machine | -partially | -- | Colors and scrolling in the main menu are broken | -
| Froggies over the Fence Oh no more Froggies |
- No | -- | Stop when the main menu loads | -
Note that some applications can even crash at startup if their -configuration or data files are not writable. - -
| Application | -Working | -Comment | -
| Programming | -||
| DevPac 2.2 | -yes | -MonST crashy | -
| Turbo Assembler | -yes | -Due to a bug you need to have a proper disk image inserted into drive A. Works otherwise! | -
| GFABASIC 3.6TT | -yes | -MENU.PRG does not like harddisks. Use diskimages for -compiling. | -
| ST Basic | -yes | -- |
| Gulam shell | -yes | -- |
| Orcs Resource editor | -yes | -- |
| Graphics | -||
| Crackart | -yes | -Harddisk access does not work with GEMDOS emulation - fine -with disk images | -
| ImCon | -yes | -- |
| Mgif | -yes | -- |
| Neochrome | -yes | -rasters sometimes unstable | -
| OCR | -yes | -Didn't try scanning | -
| Speed Of Light | -yes | -- |
| Sound | -||
| MusicMon 2 | -yes | -- |
| Noise Tracker | -yes | -Sound is very noisy, and didn't work with v0.80 (and earlier?) | -
| Protracker | -yes | -- |
| Quartet | -yes | -- |
| SidSound Designer | -yes | -- |
| Accompanist (Henry Cosh Sequencer) |
- yes | -Program works, but couldn't get Hatari midi output to work | -
| Cubase Lite | -yes | -Program works, but couldn't get Hatari midi output to work | -
| Sequencer One | -yes | -Program and sample sounds work, but couldn't get Hatari midi - output to work | -
| Text Editors | -||
| Tempus | -yes | -- |
| Qed editor | -yes | -- |
| Everest editor | -yes | -- |
| Business applications | -||
| Opus spreadsheet | -yes | -- |
| SBase database | -yes | -- |
| Sheet spreadsheet | -yes | -- |
| Calamus SL (demo) | -yes | -Nice with Hatari 32Mhz 68020+FPU STE emulation at 1024x768x1 - resolution... | -
| Outline Art 3 (demo) | -yes | -- |
| Communications | -||
| CAB browser | -yes | -- |
| Connect | -yes | -- |
| Kivi QWK Reader | -yes | -- |
| Desktops | -||
| Teradesk desktop | -yes | -- |
| Thing desktop | -yes | -- |
| Science | -||
| Euler | -yes | -- |
| Minidraft | -yes | -- |
| Molsys | -yes | -- |
| Utilities | -||
| Revenge Document Displayer | -yes | -- |
| ST-Guide | -yes | -- |
| ST-Zip | -yes | -- |
| STCat | -yes | -- |
| Lharc Shell | -yes | -- |
| TwoInOne | -yes | -- |
| Sagrotan viruskiller | -yes | -- |
| Others | -||
| ZX Spectrum emulator | -yes | -Installer needs to be run from a floppy image and (HD) - install directory needs to be already present. After installing, - use unzip to get zero byte sized files from the original - self-extracting zip files. Both 68000 and 68030 versions work - both in color and mono. | -
First are some STE games that do work with the STE features -in Hatari. Most of these games work only on STE, but here are also some -games which work (or have a version that works) also on ST, i.e. they -are just STE enhanced. These are marked with '*'.
-| Title | -Working | -Sound | -Comment | -
| Alien Blast | -yes | -- | - |
| Astrodia* | -yes | -- | Blitter support doesn't work with EmuTOS, only real STE TOS | -
| Battletris+ | -yes | -- | - |
| Blat! | -yes | -- | - |
| Bombaman | -yes | -- | - |
| Breakdance | -yes | -- | THE ultimate scene game | -
| Chronicles of Omega* | -yes | -- | - |
| Chaos Engine (demo) | -yes | -- | - |
| ChuChu Rocket | -yes | -- | needs to be run from disk image | -
| Dynabusters+ | -yes | -- | - |
| H.E.R.O. 2 | -yes | -- | Requires 4MB RAM | -
| Manga Puzzle | -yes | -- | - |
| Penta* | -yes | -- | Blitter, DMA audio and STE fadings do work properly | -
| No Limit II | -yes | -- | - |
| Obsession (demo) | -yes | -- | opens top, right and bottom borders | -
| Operation Garfield | -yes | -- | - |
| Pacman on E | -yes | -- | - |
| Pooz* | -yes | -- | Uses STE DMA, blitter and palette | -
| Power Up* | -yes | -- | Problems with music, but DMA sound effects work | -
| Roger | -partially | -- | Blitter timings inaccurate - game is too fast, - needs to be run from disk image | -
| Skulls | -yes | -- | Opens right border | -
| Starball* | -yes | -- | Uses DMA sound | -
| Stardust (demo) | -yes | -- | - |
| Stupid Balloon game | -yes | -- | - |
| Substation (demo) | -yes | -- | - |
| TomTar | -yes | -- | - |
| Utopos (demo) | -partially | -- | screen corrupted | -
| Ultimate Arena | -yes | -- | - |
| Wolfenstein 3D* | -yes | -- | v0.8 needs to be run from a disk image, STE DMA sound | -
| Zool (demo) | -partially | -- | screen corrupted, scrolling fails | -
Some tested STE demos and intros
-| Title | -Working | -Sound | -Comment | -
| Aggression: Braindamage | -yes | -- | Colors in the last 2 screens don't look right | -
| Armada: Armada is Dead | -yes | -- | bottom border broken | -
| T. Barker: Fantasia | -yes | -- | For any other than TOS 1.6, you need to use fantfix.prg first | -
| T. Barker: TT-Wars STE | -yes | -- | - |
| DHS: Tyranny & Massacre | -yes | -- | - |
| GGN: Alive | -yes | -- | - |
| Ice: Extacy | -yes | -- | - |
| Imagina: 1992 X-mas demo | -yes | -- | flickers without frameskip | -
| MJJ-Prod: 1st Step | -yes | -- | - |
| New Core: Beyond Deadline | -yes | -- | - |
| N.L.C: Techno Drugs | -yes | -- | - |
| Omega: Grotesque | -yes | -- | - |
| Paradox: X-mas 1994 demo | -Partially | -- | Fullscreen scroller doesn't work | -
| Paradox: Pacemaker | -yes | -- | The end screen doesn't look quite correct and when returning - to desktop, the screen is corrupted. Otherwise this is perfect. - With EmuTOS, stops in the middle. | -
| Reservoir Gods: Mind Rewind | -yes | -- | Opens all borders | -
| Reservoir Gods: Grimey | -yes | -- | - |
| Syntax: Reanimation | -yes | -- | - |
| MJJ-Prod: Tribute To Rainbow Tos | -partially | -- | screen corrupted, Blittermania does not work but the code - does not crash nor lockup | -
| MJJ-Prod: Badger Badger | -yes | -- | - |
| Armada: RGBRuler demo | -partially | -- | doesn't look right | -
| New Core: Core Flakes | -partially | -- | doesn't look right | -
| Percy of Light: VGA slideshow | -partially | -- | doesn't look right | -
| GGN: The Sierpinski overdose 4K | -no | -- | Hatari doesn't have required blitter support | -
Finally some STE only or STE enhanced applications
-| Title | -Working | -Sound | -Comment | -
| MaxYMiser DMA | -yes | -- | - |
| Octalyzer | -yes | -- | opens right and bottom borders, doesn't work with EmuTOS | -
| Protracker STE | -yes | -- | garbage at screen bottom, 50KHz replay duff | -
Here're listed some Atari programs that don't work on STs/STEs because -they require 68030 CPU, but work in Hatari TT-emulation when using -ST-resolution
-| Title | -Working | -Sound | -Comment | -
| TT/Falcon bytetros (ray//.tSCc) | -yes | -- | glasstro, bragg256, 256mbrot, yabt | -
| Movie player | -yes | -- | 68030 version | -
(Naturally these work also on TTs and Falcons)
-