--- hatari/doc/manual.html 2019/04/01 07:11:03 1.1 +++ hatari/doc/manual.html 2019/04/01 07:12:00 1.1.1.3 @@ -2,22 +2,24 @@ Hatari User's Manual - - + + - - + + - - +

Hatari User's Manual

-

manual by Matthias Arndt <marndt@asmsoftware.de>

+

+Version 0.60 +

+

+project initiator and main developer of Hatari: Thomas Huth <thothy@users.sourceforge.net>
+manual by Matthias Arndt <marndt@asmsoftware.de> +

+

+Hatari on the WWW: http://hatari.sourceforge.net/ +


Introduction

General description

-

Hatari is an Atari ST emulator for Linux, FreeBSD, BeOS and other -Systems which are supported by the SDL library. See Appendix B -for details on emulation in general.

-

Hatari is based on two main sources:

- -

-Hatari started as an adaption of the free WinSTon source code to Linux. -(WinSTon is a ST emulator for Windows). But since WinSTon's CPU core was -written in i86 assembler, it was not possible to use it for Hatari as -Hatari is intended to be platform independent. So the UAE's CPU core was -used for Hatari instead, because this CPU core has been written in +Hatari is an Atari ST emulator for Linux, FreeBSD, BeOS and other +Systems which are supported by the SDL library. +See Appendix B for details on emulation in general. +The Atari ST was a 16/32 bit computer system which was first released by Atari +in 1985. Using the Motorola 68000 CPU, it was quite a popular computer having +quite a lot of CPU power at that time. +

+

+Hatari started as an adaption of the free +WinSTon source code +to Linux (WinSTon is a ST emulator for Windows). +But since WinSTon's CPU core was written in i86 assembler, it was not possible +to use it for Hatari as Hatari is intended to be platform independent. +So the CPU core of UAE +was used for Hatari instead, because this CPU core has been written in portable C and also has some nice features like 68040 and FPU support.

Features

@@ -100,88 +123,118 @@ and *.MSA) At the time of this writing there is neither a complete MMU emulation nor support for STE specific features.

-

System requirements

Hatari currently has the following system requirements:

Hatari has been succesfully tested on the following machines: -

-

-It has also been tested on Linux/Sparc and it should work by now with the latest CVS version. -

-

Compiling and running

-

Compiling Hatari

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. +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 +

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 src/ directory and adapt the Makefile to suite your -mood (and system of course). Then compile it by typing make. If all -works fine, you'll get the executable hatari.

- +

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: +

+

+ CFLAGS="-O3 -fomit-frame-pointer" ./configure +

+

+Then compile Hatari by typing make. +If all +works fine, you'll get the executable hatari +in the src/ subdirectory. +

Installation of a TOS ROM

-

Then you'll have to copy a TOS ROM to the data directory (the data directory is specified -in the Makefile) and rename it to tos.img, or use the ---tos command line option to tell Hatari where to find a TOS ROM. +

Then you'll have to copy a TOS ROM to the data directory (the data +directory is specified +in the configuration file Makefile.cnf) and +rename it to tos.img, or use the +--tos command line option to tell +Hatari where to find a TOS ROM. Hatari needs a TOS ROM image because this contains the operating system of the emulated Atari. Sorry, it is not possible to ship an image with -the Hatari package since these images are still copyrighted. But you can +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. Or search the internet, but don't ask the Hatari team +ROM-image programs for the ST. Or search the internet, but don't ask +the Hatari team where to find one.

Another solution is EmuTOS, which is an open-source -TOS clone. You can find EmuTOS at: http://emutos.sourceforge.net/. It's +TOS clone. You can find EmuTOS at: http://emutos.sourceforge.net/. +It's not the best solution for playing games or running other old software -due to compatibility issues, but it's free!

+due to compatibility issues, but it's free and officially 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.

-

Installation of the binary

-

Simply copy the hatari binary somewhere in your path where you can -access it easily by typing hatari in your shell.

+

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.

When you finally have got a TOS image, try starting Hatari with the -option --help to find out more about its command line parameters.

- +option --help to find out more about +its command line parameters.

Running Hatari for the first time

-

Now type hatari to run the emulator for the first time. If all goes -well, you should now be presented with a window showing you the familiar -little green desktop of the Atari ST. Press F12 to turn on the GUI to -configure Hatari to suit your needs, press F11 to toggle windowed and fullscreen mode.

- +

Now type hatari to run the +emulator for the first time. If all goes +well, you should now be presented with a window showing you the +familiar +little green desktop of the Atari ST. Press F12 +to turn on the GUI to +configure Hatari to suit your needs, press F11 +to toggle windowed and fullscreen mode.

Command line options

Hatari ofcourse understands several command line options.

-

Type hatari --help to list them all.

+

Type hatari --help to list them +all.

The command line options in detail are as follows (in brackets the long version):

- - +
@@ -205,6 +258,10 @@ resolution + + + + @@ -222,21 +279,35 @@ emulation) + + + + - + + + + + - - + + +x=0 for 512K, x=1,x=2 or x=4 for 1,2 or 4 MB @@ -254,112 +325,256 @@ emulation) + + + + + + + + + + + + + + + +
Option tries to use a fullscreen mode
--windowforces Hatari to use a windowed mode
-j (--joystick) activates joystick emulation via cursor keys
activates the simple builtin debugger
--slowfdcslows 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 fileemulate 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 harddisc emulation!
+
--tos <imagefile> specify TOS ROM image to use
--memsize x
--memsize x set amount of emulated RAM
- x=0 for 512K, x=1,x=2 or x=4 for 1,2 or 4 MB
--cpulevel x --vdi use extended VDI resolution
--printerenable 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 mentioned file as configuration file +instead of ~/.hatari.cfg
-

Using the emulated system

Once you've started Hatari succesfully, you can use the emulator as an allmost complete Atari ST computer system.

-

The GUI

-

General usage

-

Press F12 to enter the GUI. Navigate it with the mouse. +

Press F12 to enter the GUI. Navigate it +with the mouse. The GUI is rather self explanatory.

-

Click "Okay" to go back to the emulated ST. All checked options will be applied.

-

Check the "Reset ST" option if you want the emulated ST to perform a soft reset.

-

Click "Quit" to terminate Hatari and return to the host OS.

-

Click "Cancel" to abandon any changes made.

- +

Click Okay to go back to the emulated +ST. All checked options will be applied.

+

Check the Reset ST option if you want +the emulated ST to perform a soft reset. This should be equal to +pressing the reset button on your ST. +

+

Click Quit to terminate Hatari and +return to the host OS.

+

Click Cancel to abandon any changes +made.

The System Dialog

-

Check the CPU type to use here, enable prefetch mode and if the Blitter should be active.

+

Check the CPU type to use here, enable prefetch mode and if the +Blitter should be active.

For best Atari ST compatibility choose plain 68000 here.

-

NOTE: These parameters are sensitive to the emulated ST and it is strongly recommended to +

The Timer-D patch changes the Timer-D initialization from TOS. TOS +uses Timer-D as a baudrate generator for RS232. +The TOS default slows the emulation down so the patch gives you a +faster emulation. +

+

You can disable the Timer-D patch if games or demos require the +original TOS setting.

+

NOTE: These parameters are very sensitive to the emulated +ST and it is strongly recommended to reset the emulated ST after changing these options.

- -

The Floppy Disk Dialog

-

Use this dialog to choose which disks should be emulated in the disk drives.

-

You can use most standard Atari ST disk image files. See the chapter "Floppy disk images" +

The Discs Dialog

+

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 "Browse" next to the A: and B: option to go to the fileselector.

-

You can specify a default directory where Hatari will start to browse the filesystem.

-

Check the "Auto insert B" option if you want Hatari to be smart and insert the second disk -of a two disk game automatically. This option will insert the second disk in drive B and some -games may not be able to find the disks there. In that rare case you will need to insert the +

Click on the button Browse next to the +A: and B: option to go to the fileselector. +You may select and browse zipped disk images as well.

+

Click on Eject to eject a disk image +from the emulated drive. The emulated ST will act as if had no floppy +disk in its drive.

+

You can specify a default directory where Hatari will start to +browse the filesystem.

+

Check the "Auto insert B" option if you want Hatari to be smart and +insert the second disk +of a two disk game automatically. This option will insert the second +disk in drive B and some +games may not be able to find the disks there. In that rare case you +will need to insert the second disk manually when prompted.

-

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.

- +

+NOTE: This option does not always work properly. +

+

If you need to create a new blank disk image, click on Create disk image. +Parameters for the new image can be set in the following dialog. Click +on create to create the image or on back to get back to the +disk dialog. +

+

+After clicking create, 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.

+

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.

The Memory Dialog

-

You can select the amount of RAM for the emulated ST here.

-

Note: This option is critical and you are strongly advised to reset the emulated ST +

You can select the amount of RAM for the emulated ST here. Only +amounts that were valid on a real unmodified STFM can be selected.

+

Note: This option is critical and you are strongly advised +to reset the emulated ST when changing this option.

- -

The TOS/GEM Dialog

-

Here you can select the TOS image to use. Click on "Browse" to select it via the fileselector.

-

In the GEM setup you can select a larger resolution for GEM conformant apps. Select resolution -and colour depth. Almost all games and demos will not work in one of these resolutions.

-

Note: These options are critical and you are strongly advised to reset the emulated ST +

Here you will find the options to save memory snapshots as well.

+

Click on Save to save a memory snapshot +to file. You can select a new filename here.

+

Click on Restore to restore a memory +snapshot from a file. Use the fileselector to select the snapshot to be +restored.

+

NOTE: Memory snapshots are not interchangeable between +different versions of Hatari. E.q. if you compile a newer Hatari, you +cannot load your old memory snapshots back.

+ +

The ROM Dialog

+

Here you can select the TOS image to use. Click on Browse to select it via the fileselector.

+You can also select an optional cartridge image to use. Click on Browse to select one via the fileselector. Keep +in mind that any custom cartridge image will not work together with +GEMDOS harddisc 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 +advised to reset the emulated ST when changing one of these option.

-

The Joystick Dialog

-

Here you can select which joystick you want to emulate via the cursor keys.

-

Joystick 1 is the normal ST joystick port and 99.9% of all ST games use this port, Joystick 0 -emulates a joystick plugged into the ST mouse port allowing you to play 2 player games.

-

If no joystick is checked here, joystick emulation is done via a connected PC joystick.

+

Here you can select which joystick you want to emulate via the +cursor keys.

+

Joystick 1 is the normal ST joystick port and 99.9% of all ST games +use this port, Joystick 0 +emulates a joystick plugged into the ST mouse port allowing you to play +2 player games.

+

If no joystick is checked here, joystick emulation is done via a +connected PC joystick.

See the chapter "Emulated Joystick" for details.

The Screen Dialog

Here you control the video output of the emulated ST.

Check "Fullscreen" to run Hatari fullscreen, default is windowed.

-

Check "Interlace" if you wish to have that old TV feeling in Hatari. Every second line will be black. +

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.

-

"ST-Low mode" will control if Hatari renders ST-LOW to a 320x200 or 640x400 PC display (with borders turned off) or 384x267 or 768x534. +

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 384x267 or +768x534. Basically select this to toggle between a small or a large window.

-

Click "Capture Screen" to create a screenshot in .BMP format to the current working directory or click "Record Animation" -to record a little movie. +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 +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 Capture Screen to create a +screenshot in .BMP format to the current working directory or click Record Animation to record a sequence of single +screenshots. You can opt to only record new movie frames when the +screen content really changed.

-

The Keyboard Dialog

Here you can select the keyboard mapping to use.

-

Two different mappings called "Symbolic" and "Scancode" are predefined.

-

You can also load a custom keymapping file here if you wish. Please note that selecting to use a custom keyboard mapping will -use the "symbolic" mapping for all keys not defined by your map file. See the supplied example mapfile on how to build your +

Two different mappings called "Symbolic" and "Scancode" are +predefined.

+

You can also load a custom keymapping file here if you wish. Please +note that selecting to use a custom keyboard mapping will +use the "symbolic" mapping for all keys not defined by your map file. +See the supplied example mapfile on how to build your own keyboard mapping.

-

The Sound Dialog

-

Here you 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. +

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 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.

- - +

The Devices Dialog

+

Check here if you want to enable experimental printer support. See +the chapter "Emulated printer" for details.

+

As Hatari currently only supports printing to file, click on Select 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 +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 Browse 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 Browse 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! +

Keyboard shortcuts

While the emulator is running, you can activate or toggle various features via the following keyboard shortcuts.

- - +
+ + + + + + + + @@ -369,37 +584,53 @@ features via the following keyboard shor - + - + + + + + + + + + + + + + - + - +
Shortcut Purpose
ALTGR+arecord animation
ALTGR+g grabs a screenshot
ALTGR+iboss key: leave full screen mode and iconify +window
ALTGR+j activates joystick emulation via cursor keys
ALTGR+rreset the ST(warm) reset the ST
ALTGR+ccoldreset the ST (same as the original power switch)coldreset the ST (same as the original power +switch)
ALTGR+senable/disable sound
ALTGR+q quit the emulator
ALTGR+xtoggle normal/max speed
ALTGR+yenable/disable sound recording
F11 toggles fullscreen and windowed mode
F12activate the GUI +

activate the GUI

+

You may need to hold SHIFT down +while in windowed mode.

+
PAUSEwill go to the debugger if it was activated at compile timewill go to the debugger if it was activated at +compile time
-

Emulated Atari ST keyboard

All other keys on the keyboard act as the normal Atari ST keys so pressing SPACE on your PC will result in an emulated press of the SPACE key on the ST. The following keys have special meanings:

- - +
@@ -414,33 +645,42 @@ key on the ST. The following keys have s - + - + + + + + + + + +
Keywill act as the ST's CONTROL key
Page UpPrint Screen will emulate the ST's HELP key
Page DownScroll Lock will emulate the ST's UNDO key
Page Upwill emulate the ST's ( key in the keypad
Page Downwill emulate the ST's ) in the keypad
- -

ALTGR will act as ALTERNATE as well as long as you do not press it +

ALTGR will act as ALTERNATE as well as +long as you do not press it together with a Hatari hotkey combination.

-

The right CTRL key is used as the fire button of the emulated +

The right CTRL key is used as the fire +button of the emulated joystick when you turn on joystick emulation via keyboard.

-

The cursor keys will act as the cursor keys on the Atari ST as long as joystick emulation +

The cursor keys will act as the cursor keys on the Atari ST as long +as joystick emulation via keyboard has been turned off.

-

Emulated mouse

For obvious reasons your PC mouse will act as the emulated Atari ST mouse. In fullscreen mode it will act as expected, directly controlling the ST mouse pointer.

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. +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.

-

Emulated joystick

The Atari ST joysticks are emulated ofcourse allowing you to play your favourite games with Hatari.

@@ -450,290 +690,500 @@ other applications, it will likely work it is calibrated and then off you go. Move the stick to point into the desired direction. Please note that Hatari will not detect analogue movement as the Atari ST only had digital joysticks. The first -firebutton will act as the normal firebutton on the Atari ST while the second -firebutton will emulate a keypress of the SPACE key on the ST as many ST -games utilitze the SPACE bar for secondary game functions. (Xenon for example)

+firebutton will act as the normal firebutton on the Atari ST while the +second +firebutton will emulate a keypress of the SPACE +key on the ST as many ST +games utilitze the SPACE bar for secondary game functions. (Xenon for +example)

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 cursor keys. Just activate it in the GUI. Then the cursor keys will act 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.

- +cursorkeys in this mode as long as you press SHIFT +along with the cursorkeys.

+

Emulated video

+

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. +

+

Beside that you can setup extended VDI modes. These only work with +GEM-compliant applications and they are equal to fitting a videocard +into your Mega ST.

+

Make sure to disable extended VDI modes for playing games as 99% of +all ST games will not be able to make use of higher resolutions.

+

Emulated printer

+

Due to the fact that printer handling is very different between Unix +style machines and the Atari ST, emulation +of the printer is achieved by writing all printer output to a file.

+

The file will contain a sequence of data, the same that would appear +on the data pins of the Atari ST printer port. +That would include control characters and commands for graphic +printing. Clicking "Print desktop" on the GEM desktop would result +in a messy data dump in the printer output.

+

Printer emulation works best for plain text files or programs that +do not format the output for a specific printer. +The file contents can be used with your favourite text editor for +further processing and printing to a real printer.

+

To get real direct printing out of Hatari on a PostScript printer, +you may set up a GDOS printer with a PostScript driver on the emulated +Atari and set your printer device file as Hatari's printer output.
+NOTE: This has not been tested yet and the Hatari team cannot +guarantee that it will work.

+

Emulated RS232

+

Serial communications in Hatari is designed to directly use a serial +port on your PC.

+

Communications parameters are set automatically upon the settings of +the emulated ST. This means all you do is to set +the communication parameters like baudrate from your ST communications +software. Hatari will do the rest and handle +the serial input and output for you.

Floppy disk images

Hatari does not use floppy disks directly but disk images due to differences between the floppy disk controllers of the ST and the PC. -Two types of disk images are currently supported: The raw "ST" type and -the "MSA" (Magic-Shadow-Archiver) type.

+Three types of disk images are currently supported: The raw "ST" type, +the similar "DIM" type and +the compressed "MSA" (Magic-Shadow-Archiver) type.

The raw type (file suffix should be "*.st") is simply a sector by sector image of a real floppy disk. You can easily create such an image -with the dd program which should normally be pre-installed on every -Unix-like system. Simply type something like dd if=/dev/fd0 of=myimage.st to create a disk image. Of course you need access to +with the dd program which should +normally be pre-installed on every +Unix-like system. Simply type something like dd +if=/dev/fd0 of=myimage.st to create a disk image. Of course you +need access to /dev/fd0, and depending on your system and the type of floppy disk you might have to use another device name here (for example I use -/dev/fd0u720 for 720kB disks). However, if the disk is copy-protected or +/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.

-

The other possibility is to image the disk on a real Atari ST. There +

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 -supports this slightly compressed MSA disk images, too. Note that Hatari -only supports the "old" MSA format, there are some Magic Shadow Archiver +supports this slightly compressed MSA disk images, too. Note that +Hatari +only supports the "old" MSA format, there are some Magic Shadow +Archiver clones (like Jay-MSA) that create better compressed but -Hatari-incompatible disk images.

+Hatari-incompatible disk images. However, if you have got such a MSA +disk and want to use it with Hatari, you can still run the +corresponding +MSA program within Hatari to extract the incompatible disk image to a +normal floppy disk image.

While *.ST and *.MSA are more or less the "standard" types of Atari -disk images, you might sometimes also find DIM or ADF images on the -internet. These currently do not work with Hatari. But since DIM images -are nearly the same as the raw ST images (they only have an additional -32 byte header) you can easily transform the DIM images into ST images -by stripping the header from the files. For example try something like: -dd if=input.dim of=output.st bs=32 skip=1

+disk images, you might sometimes also find STT or ADF images on the +internet. These currently do not work with Hatari.

+

Hatari can now also utilize *.DIM images just as *.ST ones without +any problems. +Note that DIM images are nearly the same as the raw ST images +(they only have an additional 32 bytes header), so you can easily +transform +the DIM images into ST images by stripping the header from the files. +For example try something like: +dd if=input.dim of=output.st bs=32 skip=1 +

If you've got a disk image that has been created with the old ST emulator PaCifiST (for DOS) or with early versions of the program Makedisk, and the disk image does not work with Hatari, then the disk -probably suffers from the "PaCifiST bootsector bug" (Hatari will print a +probably suffers from the "PaCifiST bootsector bug" (Hatari will +display a warning message then). In this case, the bootsector of the disk contains some illegal data, so that the disk even does not work on a real ST any more. However, if it is a .ST and not a .MSA disk, you can -easily fix it by using a hex-editor to change the byte at offset $D (13) +easily fix it by using a hex-editor to change the byte at offset $D +(13) from 0 to 1 (don't forget to backup your disk image first, since you can also easily destroy your disk image when changing a wrong byte there). If the disk contains a bootsector program, you probably have to adjust the boot sector check sum, too (it can be found at offset $1FE + $1FF).

-

Hatari supports zipped disk images so you can archive your disk images into zip archives. -You can also directly run the zip archives you may download from the net as long as the archive contains a -disk image in .ST or .MSA format.

-

Note: Hatari does not save disk images back to zipfiles so your highscores and savegames are lost if you -loaded the game from a zipped disk image.

- +

Hatari supports disk images that are compressed with (Pk-)ZIP +(file suffix must be ".zip") or GZip (file suffix must be ".st.gz" or +".msa.gz"), so you can archive your disk images into zip archives. +You can also directly run the zip archives you may download from the +net as long as the archive contains a disk image in .ST or .MSA format.

+

Note: Hatari does not save disk images back to *.ZIP files +so +your highscores and savegames are lost if you load the game from such +a zipped disk image.

Hard disk support

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 +with a pre-installed HD driver in it. So either try to image your old +ST hard disk or grab one from the internet. There is a HD image on the Hatari web page for download. Perhaps we'll also provide a tool for creating HD images one day.

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. +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 +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!

+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.

May the fun without the price to be with you ;-) !

-

Appendix

-

Copying

This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by the +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

- -

The GNU Project and the Free Software Foundation | The GNU General Public License

- +

The GNU Project and the Free Software +Foundation | The +GNU General Public License

Introduction to Emulation

Emulation via software is an art and Hatari is an example of this.

-

Emulation is to make a computer behave like a (probably) completely different machine on the lowest possible niveau. -This includes CPU and custom chip emulation allowing software written for the emulated machine to be run without notice. -A good emulator will run most of the software intended for the emulated platform without trouble. +

Emulation is to make a computer behave like a (probably) completely +different machine on the lowest possible niveau. +This includes CPU and custom chip emulation allowing software written +for the emulated machine to be run without notice. +A good emulator will run most of the software intended for the emulated +platform without trouble.

-The key to emulation is to simply do those things with a software program, the emulator, that normally chips would perform. -So you have an CPU emulator that basically consists of a large loop that does exactly what the real thing would do: +The key to emulation is to simply do those things with a software +program, the emulator, that normally chips would perform. +So you have an CPU emulator that basically consists of a large loop +that does exactly what the real thing would do:

-The typical von-Neumann CPU can be emulated very fast, stable and error-free using such a simple loop system. +The typical von-Neumann CPU can be emulated very fast, stable and +error-free using such a simple loop system.

-But in most cases the CPU emulation is the simplest part. Correct emulation of the various cutom chips and hardware +But in most cases the CPU emulation is the simplest part. Correct +emulation of the various custom chips and hardware parts of the emulated system is much trickier.

-

Software compatibility list

-

This is a little compilation of what software does work in Hatari. It is by no means finished.

+

This is a little compilation of what Atari software does work in +Hatari. It is by no means finished.

- - - +
tested games
+ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
tested games
Game WorkingSoundCommentSoundComment
Eliminatoryesperfect 
Speedballyesperfect 
Xenonyesmusic ok - fx dodgybullets and explosions sound weired
Bubble Bobbleyes  
F15 Strike Eagle 2yesokkeyboard emulation seems to be dodgy
Rick Dangerousyesperfect 
Slayeryesokraster fx at highscore entry dodgy
Lethal Xcessno crashes while loading, sync scrolling will not work properly
Star Gooseyesmusic ok - bullet sound dodgy 
Xenon 2 - Megablastyesnearly perfect (including sampled intro) 
Metal Mutantyesseems oksome color effects in the lower screen seem buggy
Defenders Of The Earthyes  
Nebulusyesmusic ok; snowball, balls and trapdoors dodgyotherwise working to a playable extend
Leanderyes  
Navy Sealsyes  
Armalyteyes  
Wings Of Deathyes  
Tokiyes  
Alien Worldyes Only works with "--slowfdc"
Skweekyes Does not work with cartridge / HD emulation
Eliminatoryesperfect 
Speedballyesperfect 
Xenonyesmusic ok - fx dodgybullets and explosions sound weired
F15 Strike Eagle 2yesokkeyboard emulation seems to be dodgy
Rick Dangerousyesperfect 
Slayeryesokraster fx at highscore entry dodgy
Lethal Xcessno crashes while loading
Star Gooseyesmusic ok - bullet sound dodgy 
Xenon 2 - Megablastyesperfect (including sampled intro) 
Metal Mutantyesseems oksome color effects in the lower screen seem buggy
Defenders Of The Earthyes  
Nebulusyesmusic ok; snowball, balls and trapdoors dodgyotherwise working to a playable extend
- - - +
+ +
tested applications
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
tested demos
DemoWorkingSoundComment
Fantasia (by Dune)yes Only works with "--slowfdc"
Oddstuff (by Dune/SectorOne)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
+ +
+ + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
tested applications
Application WorkingCommentComment
DevPac 2.2yesMonST crashy
Turbo Assembleryes 
GFABASIC 3.6TTyesMENU.PRG does not like harddisks. Use diskimages for +compiling.
ST Basicyes 
Neochromeyesrasters sometimes unstable
CrackartyesHarddisk access does not work with GEMDOS emulation - fine +with disk images
Tempusyes 
Sagrotanyes 
SidSound Designeryes 
MusicMon 2yes 
Protrackeryes 
Teradeskyes 
Qedyes 
Everestyes 
Speed Of Lightyes 
DevPac 2.2yesMonST crashy
Turbo Assembleryes 
GFABASIC 3.6TTyes 
ST Basicyes 
Neochromeyesrasters sometimes unstable
Tempusyes 
Sagrotanyes 
MusicMon 2yes 
Protrackeryes 
-
+
+
- + - - + + - +
Valid HTML 4.01!
Matthias Arndt July 08 2003
Valid HTML 4.01! +
Matthias Arndt +December 18 2004
+
- -