--- hatari/doc/manual.html 2019/04/01 07:15:04 1.1.1.8 +++ hatari/doc/manual.html 2019/04/09 08:48:58 1.1.1.12 @@ -12,7 +12,7 @@ @@ -43,18 +52,18 @@ -

Hatari User's Manual

+

Hatari User's Manual

-

-Version 1.1 +

-

+

-

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

Index

@@ -64,8 +73,8 @@ Hatari on the WWW: General description
  • Features
  • STE hardware emulation -
  • Very experimental TT hardware emulation -
  • Very experimental Falcon hardware emulation +
  • Experimental TT hardware emulation +
  • Falcon hardware emulation
  • System requirements
  • Compiling and running @@ -81,12 +90,15 @@ Hatari on the WWW: The GUI
    • The Main Menu +
    • The File Selector Dialog
    • The System Dialog -
    • The Disks Dialog +
    • The Floppy Disks Dialog +
    • The Hard Disks Dialog
    • The Memory Dialog
    • The ROM Dialog
    • The Joystick Dialog -
    • The Screen Dialog +
    • The Atari Monitor Dialog +
    • The Hatari Screen Dialog
    • The Keyboard Dialog
    • The Sound Dialog
    • The Devices Dialog @@ -102,8 +114,28 @@ Hatari on the WWW: Floppy disk images
    • Hard disk support +
    • Moving files to/from hard disk images + +
    • The debugger + +
    • Performance +
    • Appendix
        @@ -153,8 +185,8 @@ Recent versions of Hatari even feature b
      • Blitter chip emulation
      • PSG YM2149 emulation (soundchip) including STFM samples
      • Printer port emulation on hardware level (print to file)
      • -
      • experimental support for RS232
      • -
      • experimental MIDI output support (no MIDI input/through support)
      • +
      • RS232 emulation
      • +
      • MIDI input/output/through emulation
      • Mega ST real time clock
      • IKBD emulation (keyboard, mouse and joystick) with custom keyboard mapping
      • @@ -163,33 +195,34 @@ Recent versions of Hatari even feature b
      • FDC emulation using floppy disk images in standard formats (*.ST, *.MSA and *.DIM)
      • support for packed disk images (PkZip and Gzip)
      • -
      • optional write-protection for disk images
      • +
      • optional write-protection for floppy disk images
      • partial ACSI emulation for harddisk support
      • -
      • GEMDOS interface driver to mount a directory as a harddrive
      • +
      • GEMDOS interface driver to mount directories as harddrives + with optional write-protection
      • support for memory snapshots (save whole system state)
      • driver for extended VDI resolutions
      • recording of sound as .WAV and .YM files
      • screenshots in PNG or BMP format
      • -
      • animation capturing
      • +
      • AVI animation capturing with sound
      • TOS versions 1.00, 1.02, 1.04 and 2.06 (and EmuTOS) can be used in ST mode.

      STE hardware emulation

      -STE emulation is still a little bit experimental, but basically -there is support for most of the enhanced/additional STE features: +There is support for following additional STE features:
      • horizontal and vertical hardware fine scrolling
      • split screen techniques / in-screen video address manipulations
      • (STE specific) left border opening
      • 4096 colors STE palette
      • -
      • Stereo DMA sample sound ("microwire" audio balance support missing)
      • +
      • Stereo DMA sample sound
      • +
      • Experimental Microwire/LMC1992 emulation
      • STE joypads
      • TOS versions 1.06, 1.62, 2.05 and 2.06 (and EmuTOS) can be used in STE mode.
      - -

      Very experimental TT hardware emulation

      + +

      Experimental TT hardware emulation

      There is support for following additional TT features:
      • TT low/med/high resolution support
      • @@ -198,34 +231,41 @@ There is support for following additiona
      • Only TOS version 3.06 (and EmuTOS) can be used in TT mode.
      - -

      Very experimental Falcon hardware emulation

      + +

      Falcon hardware emulation

      There is support for following additional Falcon features:
        -
      • Videl emulation for all Falcon screen modes
      • +
      • Partial Videl emulation for all Falcon screen modes
      • +
      • Aspect correction and scaling of small resolutions by an integer factor
      • STE/Falcon palette switching and shifter
      • Mono/RGB/VGA/TV monitor types
      • -
      • Some few parts of the Falcon sound system are emulated - (e.g. the additional sample rates of the DMA sound)
      • +
      • DSP co-processor emulation
      • +
      • Experimental microphone (jack) emulation
      • +
      • Experimental Crossbar sound matrix (ADC (mic & PSG), DAC, DMA, DSP) + interconnect emulation + support for the additional DMA sound + sample rates
      • +
      • Experimental IDE master and slave emulation for harddisk support
      • TOS versions 4.00, 4.02, 4.04 and 4.92 (and EmuTOS) can be used in Falcon mode.
      -

      -DSP emulation is still very experimental and unstable, but there's a dummy mode, -too, which helps to get some demos and games running. -

      +

      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.

      System requirements

      Hatari currently has the following system requirements:

        -
      • a fast PC (>500MHz, for Falcon and TT emulation even faster)
      • +
      • a fast PC (>500MHz, for Falcon and TT emulation + even faster)
      • some sort of Unix (preferable GNU/Linux)
      • the SDL library (http://www.libsdl.org/)
      • the zLib (http://www.gzip.org/zlib/) -for support of ZIP-packed disk images (*.zip and *.gz)
      • + for support of ZIP-packed disk images (*.zip and *.gz)

      @@ -243,7 +283,7 @@ the following systems:

    • OpenBSD 3.5
    • Solaris 8 on a SUN UltraSparc 1
    • Linux/ARM (oabi) on Sharp Zaurus SL-C760 PDA
    • -
    • Linux/ARM (eabi) on Nokia 770, N800 and N810 Internet Tablets
    • +
    • Linux/ARM (eabi) on Nokia Maemo Internet Tablets and N900 phone

    Compiling and running

    @@ -265,6 +305,7 @@ for it installed as well.

    For optional features like PNG format screenshots and Hatari window embedding, you need to have the header files for libpng and libX11. +For Falcon microphone recording support portaudio library is needed.

    Of course, you need the GNU C compiler and (GNU) Make, too! @@ -279,9 +320,9 @@ 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 -

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

    Then compile Hatari by typing make. If all @@ -305,7 +346,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.

    @@ -365,14 +406,14 @@ and removing extra paragraphs:

    General options

    + cellspacing="0" cellpadding="0"> +-h, --help
    -−h, −−help
    + cellspacing="0" cellpadding="0">
    @@ -380,14 +421,14 @@ Print command line options and terminate
    + cellspacing="0" cellpadding="0"> +-v, --version
    -−v, −−version
    + cellspacing="0" cellpadding="0">
    @@ -395,14 +436,14 @@ Print version information and terminate
    + cellspacing="0" cellpadding="0"> +--confirm-quit <bool>
    -−−confirm-quit <bool>
    + cellspacing="0" cellpadding="0">
    @@ -410,15 +451,15 @@ Whether Hatari confirms quitting
    + cellspacing="0" cellpadding="0">
    -−c, −−configfile +-c, --configfile <filename>
    + cellspacing="0" cellpadding="0">
    @@ -427,14 +468,14 @@ use the given file as configuration file
    + cellspacing="0" cellpadding="0"> +--fast-forward <bool>
    -−−fast-forward <bool>
    + cellspacing="0" cellpadding="0">
    @@ -445,14 +486,14 @@ output

    Display options

    + cellspacing="0" cellpadding="0"> +-m, --mono
    -−m, −−mono
    + cellspacing="0" cellpadding="0">
    @@ -460,14 +501,14 @@ Start in monochrome mode instead of colo
    + cellspacing="0" cellpadding="0"> +--monitor <x>
    -−−monitor <x>
    + cellspacing="0" cellpadding="0">
    @@ -475,14 +516,14 @@ Select monitor type (x = mono/rgb/vga/tv
    + cellspacing="0" cellpadding="0"> +-f, --fullscreen
    -−f, −−fullscreen
    + cellspacing="0" cellpadding="0">
    @@ -490,14 +531,14 @@ Start the emulator in fullscreen mode
    + cellspacing="0" cellpadding="0"> +-w, --window
    -−w, −−window
    + cellspacing="0" cellpadding="0">
    @@ -505,14 +546,29 @@ Start the emulator in window mode
    + cellspacing="0" cellpadding="0"> + + + +
    +--grab
    + + + + +
    +Grab mouse (also) in window mode +
    + +-z, --zoom <x>
    -−z, −−zoom <x>
    + cellspacing="0" cellpadding="0">
    @@ -520,47 +576,91 @@ Zoom low resolution (1=no, 2=yes)
    + cellspacing="0" cellpadding="0"> +--max-width <x>
    -−−frameskips <x>
    + cellspacing="0" cellpadding="0">
    -Skip <x> frames after each displayed frame to -accelerate emulation (0=disabled, >4 uses automatic -frameskip with given value as maximum) +Maximum window width for zooming (Falcon/TT only)
    + cellspacing="0" cellpadding="0"> +--max-height <x>
    -−−borders <bool>
    + cellspacing="0" cellpadding="0">
    -Show screen borders (for overscan demos, ST(e) color mode -specific etc) +Maximum window height for zooming (Falcon/TT only)
    + cellspacing="0" cellpadding="0"> +--aspect <bool>
    -−−statusbar <bool>
    + cellspacing="0" cellpadding="0"> + + + +
    +Whether to do monitor aspect ratio correction (Falcon/TT only) +
    + + + + +
    +--borders <bool>
    + + + + +
    +Show ST/STE screen borders (for low/med resolution overscan demos) +
    + + + + +
    +--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>
    +
    @@ -568,14 +668,14 @@ Show statusbar (with floppy leds etc etc
    + cellspacing="0" cellpadding="0"> +--drive-led <bool>
    -−−drive-led <bool>
    + cellspacing="0" cellpadding="0">
    @@ -584,14 +684,14 @@ shown
    + cellspacing="0" cellpadding="0"> +--spec512 <x>
    -−−spec512 <x>
    + cellspacing="0" cellpadding="0">
    @@ -601,14 +701,14 @@ conversion functions (0 <= x <= 51
    + cellspacing="0" cellpadding="0"> +--bpp <bool>
    -−−bpp <bool>
    + cellspacing="0" cellpadding="0">
    @@ -618,14 +718,14 @@ Force internal bitdepth (x = 8/15/16/32,

    VDI options

    + cellspacing="0" cellpadding="0"> +--vdi <bool>
    -−−vdi <bool>
    + cellspacing="0" cellpadding="0">
    @@ -633,65 +733,139 @@ Whether to use VDI screen mode
    + cellspacing="0" cellpadding="0"> + + + +
    +--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) +
    + +

    Video recording options

    + +--avirecord
    -−−vdi−planes <x>
    + cellspacing="0" cellpadding="0">
    -Use extended VDI resolution with bit depth <x> (x = -1, 2 or 4) +Start AVI recording
    + cellspacing="0" cellpadding="0"> +--avi-vcodec <x>
    -−−vdi−width <w>
    + cellspacing="0" cellpadding="0">
    -Use extended VDI resolution with width <w> (384 -<= w <= 1024) +Select avi video codec (x = bmp/png)
    + cellspacing="0" cellpadding="0"> +--avi-fps <x>
    -−−vdi−height <h>
    + cellspacing="0" cellpadding="0"> +
    -Use extended VDI resolution with height <h> (200 -< h <= 768) +Force avi frame rate (x = 50/60/71/...) +
    + + + + +
    +--avi-crop <bool>
    + + + + +
    +Remove status bar from the recorded file +
    + + + + +
    +--avi-file <file>
    + + + +
    +Use <file> to record avi

    Devices options

    + cellspacing="0" cellpadding="0">
    -−j, −−joystick +-j, --joystick <port>
    + cellspacing="0" cellpadding="0">
    @@ -699,15 +873,15 @@ Emulate joystick with cursor keys in giv
    + cellspacing="0" cellpadding="0">
    -−−joy<port> +--joy<port> <type>
    + cellspacing="0" cellpadding="0">
    @@ -715,14 +889,14 @@ Set joystick type (none/keys/real) for g
    + cellspacing="0" cellpadding="0"> +--printer <file>
    -−−printer <file>
    + cellspacing="0" cellpadding="0">
    @@ -730,48 +904,76 @@ Enable printer support and write data to
    + cellspacing="0" cellpadding="0"> + + + +
    +--midi-in <filename>
    + + + + +
    +Enable MIDI support and write MIDI data to <file> +
    + +--midi-out <filename>
    -−−midi <filename>
    + cellspacing="0" cellpadding="0">
    -Enable midi support and write midi data to -<file> +Enable MIDI support and read MIDI data from <file>
    + cellspacing="0" cellpadding="0"> +--rs232-in <filename>
    -−−rs232 <filename>
    + cellspacing="0" cellpadding="0"> +
    -Enable serial port support and use <file> as the -device +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 options

    + cellspacing="0" cellpadding="0"> +--disk-a <file>
    -−−disk-a <file>
    + cellspacing="0" cellpadding="0">
    @@ -779,14 +981,14 @@ Set disk image for floppy drive A
    + cellspacing="0" cellpadding="0"> +--disk-b <file>
    -−−disk-b <file>
    + cellspacing="0" cellpadding="0">
    @@ -794,31 +996,63 @@ Set disk image for floppy drive B
    + cellspacing="0" cellpadding="0"> + + + +
    +--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>
    -−d, −−harddrive -<dir>
    + cellspacing="0" cellpadding="0">
    -Emulate an ST harddrive (<dir> = root -directory) +Emulate harddrive partition(s) with <dir> contents
    + cellspacing="0" cellpadding="0"> +--acsi <file>
    -−−acsi <file>
    + cellspacing="0" cellpadding="0">
    @@ -826,30 +1060,44 @@ Emulate an ACSI hard disk with an image
    + cellspacing="0" cellpadding="0"> + + + +
    +--ide-master <file>
    + + + + +
    +Emulate an IDE master hard disk with an image <file> +
    + +--ide-slave <file>
    -−−ide <file>
    + cellspacing="0" cellpadding="0">
    -Emulate an IDE hard disk with an image <file> (not -working yet) +Emulate an IDE slave hard disk with an image <file>
    + cellspacing="0" cellpadding="0"> +--slowfdc <bool>
    -−−slowfdc <bool>
    + cellspacing="0" cellpadding="0">
    @@ -859,14 +1107,14 @@ slow down FDC emulation (deprecated)

    Memory options

    + cellspacing="0" cellpadding="0"> +-s, --memsize <x>
    -−s, −−memsize <x>
    + cellspacing="0" cellpadding="0">
    @@ -875,15 +1123,15 @@ KiB
    + cellspacing="0" cellpadding="0">
    -−t, −−tos +-t, --tos <imagefile>
    + cellspacing="0" cellpadding="0">
    @@ -891,14 +1139,14 @@ Specify TOS ROM image to use
    + cellspacing="0" cellpadding="0"> +--cartridge <imagefile>
    -−−cartridge <imagefile>
    + cellspacing="0" cellpadding="0">
    @@ -908,14 +1156,14 @@ disabled)
    + cellspacing="0" cellpadding="0"> +--memstate <file>
    -−−memstate <file>
    + cellspacing="0" cellpadding="0">
    @@ -925,14 +1173,14 @@ Load memory snap-shot <file>

    CPU options

    + cellspacing="0" cellpadding="0"> +--cpulevel <x>
    -−−cpulevel <x>
    + cellspacing="0" cellpadding="0">
    @@ -941,14 +1189,14 @@ TOS >= 2.06 only!)
    + cellspacing="0" cellpadding="0"> +--cpuclock <x>
    -−−cpuclock <x>
    + cellspacing="0" cellpadding="0">
    @@ -956,14 +1204,14 @@ Set the CPU clock (8, 16 or 32 Mhz)
    + cellspacing="0" cellpadding="0"> +--compatible <bool>
    -−−compatible <bool>
    + cellspacing="0" cellpadding="0">
    @@ -973,14 +1221,14 @@ Use a more compatible but slower 68000 C

    Misc system options

    + cellspacing="0" cellpadding="0"> +--machine <x>
    -−−machine <x>
    + cellspacing="0" cellpadding="0">
    @@ -988,14 +1236,14 @@ select machine type (x = st, ste, tt or
    + cellspacing="0" cellpadding="0"> +--blitter <bool>
    -−−blitter <bool>
    + cellspacing="0" cellpadding="0">
    @@ -1003,14 +1251,31 @@ Enable blitter emulation (ST only)
    + cellspacing="0" cellpadding="0"> + + + +
    +--timer-d <bool>
    + + + + +
    +Patch redundantly high Timer-D frequency set by TOS. This about doubles +Hatari speed as the original Timer-D frequency causes most of the +interrupts. +
    + +--dsp <x>
    -−−dsp <x>
    + cellspacing="0" cellpadding="0">
    @@ -1019,30 +1284,62 @@ only)
    + cellspacing="0" cellpadding="0"> +--sound <x>
    -−−sound <x>
    + cellspacing="0" cellpadding="0">
    -Sound quality (off/low/med/hi, off=faster) +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.
    + + cellspacing="0" cellpadding="0"> +
    -−k, −−keymap +--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. +
    + + + + + + + +
    +-k, --keymap <file>
    + cellspacing="0" cellpadding="0"> - + @@ -1671,14 +2141,17 @@ switch) - + + + + +
    @@ -1052,30 +1349,29 @@ load keyboard mapping from <file>

    Debug options

    + cellspacing="0" cellpadding="0"> +-D, --debug
    -−D, −−debug -<bool>
    + cellspacing="0" cellpadding="0">
    -Enable Hatari debugger console interface +Toggle whether CPU exceptions invoke the debugger
    + cellspacing="0" cellpadding="0"> +--bios-intercept
    -−−bios-intercept
    + cellspacing="0" cellpadding="0">
    @@ -1083,14 +1379,14 @@ Enable Bios/XBios interception
    + cellspacing="0" cellpadding="0"> +--trace <trace1,...>
    -−−trace <trace1,...>
    + cellspacing="0" cellpadding="0">
    @@ -1098,14 +1394,44 @@ Activate debug traces, see --trace he
    + cellspacing="0" cellpadding="0"> + + + +
    +--trace-file <file>
    + + + + +
    +Save trace output to <file> (default=stderr) +
    + +--parse <file>
    -−−control-socket <file>
    + cellspacing="0" cellpadding="0"> + + + +
    +Parse/execute debugger commands from <file> +
    + + + + +
    +--control-socket <file>
    +
    @@ -1113,14 +1439,14 @@ Hatari reads options from given socket a
    + cellspacing="0" cellpadding="0"> +--log-file <file>
    -−−log-file <file>
    + cellspacing="0" cellpadding="0">
    @@ -1128,14 +1454,14 @@ Save log output to <file> (default
    + cellspacing="0" cellpadding="0"> +--log-level <x>
    -−−log-level <x>
    + cellspacing="0" cellpadding="0">
    @@ -1143,20 +1469,35 @@ Log output level (x=debug/todo/info/warn
    + cellspacing="0" cellpadding="0"> +--alert-level <x>
    -−−alert-level <x>
    + cellspacing="0" cellpadding="0">
    Show dialog for log messages above given level
    + + + + +
    +--run-vbls <x>
    + + + + +
    +Exit after X VBLs +

    Type hatari --help to list all @@ -1165,7 +1506,7 @@ the command line options supported by a

    Using the emulated system

    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.

    The GUI

    @@ -1176,32 +1517,66 @@ The GUI is rather self explanatory.

    The Main Menu

    -Hatari's GUI - the main menu +Hatari's GUI - the main menu +
    + +

    +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 Load config. and you can save +the current settings to a configuration file by clicking on +Save config.. +

    +

    +Click OK to go back and continue the emulation. +All changed options will be applied. +

    +

    +Select the Reset machine 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 Quit to terminate Hatari +and return to the host OS. +

    +

    +Click Cancel to abandon any +changes that you have made. +

    + + +

    The File Selector Dialog

    + +
    +Hatari's GUI - the fileselector
    -

    From the main menu, you can reach the other setup dialogs by clicking on -the appropriate buttons.

    +

    + 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 Load config button and you can save the -current settings to a configuration file with the Save -config button.

    - -

    Click Okay to go back to the emulated -ST. All changed options will be applied.

    -

    Check the Reset ST 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 Quit to terminate Hatari and -return to the host OS.

    -

    Click Cancel to abandon any changes -that you have made.

    The System Dialog

    -Hatari's GUI - the system dialog +Hatari's GUI - the system dialog

    @@ -1215,8 +1590,8 @@ that you have made.

  • Atari TT and Falcon computers were using the 68030 CPU, so you should switch - either to 68020 or 68020+FPU when you want to use TT or Falcon mode. - (The 68020 and 68030 were pretty much the same apart from some minor details). + use 68EC030+FPU (Hatari doesn't support 030 with MMU and some programs don't + work with 68020 so this is the best choice).
  • TOS 1.0x only works with 68000, while TOS 3.0x and 4.0x work only with a CPU @@ -1241,7 +1616,7 @@ that you have made.

    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 very incomplete. They may not work + Note: TT and Falcon emulation are incomplete. They may not work very well.

    @@ -1254,15 +1629,24 @@ that you have made.

    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 +

    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 @@ -1270,36 +1654,30 @@ that you have made.

    value slows down the emulation. The patch gives you a better performance. 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 down FDC" is - normally not required, except for some few slideshows / intros which run too - fast without this option. -

    -

    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 Disks Dialog

    - -
    -Hatari's GUI - the disks dialog -
    +

    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. You may select -and browse also zipped disk images. See the chapter "Floppy disk images" -for details.

    +

    The Floppy Disks Dialog

    -

    Click on the button Browse next to the -A: and B: option to go to the fileselector: -

    - -
    -Hatari's GUI - the fileselector +
    +Hatari's GUI - the floppy disks dialog
    +

    + 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 Browse next to the + A: and B: option to go to the fileselector to choose a disk image for the + corresponding drive. +

    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.

    @@ -1316,33 +1694,74 @@ 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 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.

    -

    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 slow FDC (Floppy Disk Controller) emulation. + "Slow floppy access" is normally not required, except for some few + slideshows / intros which run too fast without this option. +

    +

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

    + +
    +Hatari's GUI - the new floppy dialog +
    + +

    + If you need to create a new blank disk image, click on + Create blank image. + 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 Create to save the new image or on + Back to return 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. + hmsa command line utility can be used + to convert disk images between .ST and .MSA formats. +

    + + +

    The Hard Disks Dialog

    + +
    +Hatari's GUI - the hard disks dialog +
    + +

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

    +

    The Memory Dialog

    @@ -1418,94 +1837,135 @@ 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 -Define keys button. You will be prompted to press +Define keys 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.

    -

    The Screen Dialog

    +

    The Atari Monitor Dialog

    -Hatari's GUI - the screen dialog +Hatari's
+GUI - the Atari monitor dialog

    Here you control the video output of the emulated Atari.

    - Check "Fullscreen" to run Hatari fullscreen, default is windowed. + 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.

    - "Use Borders" toggles the displaying of the borders around the ST - screen. Some few demos/games use the borders for displaying additional - graphics. However, when you enable this option, it increases CPU computing - time, so you should not enable it if you have a slow computer. - Please note that this option also only affects the ST and STE mode, TT and - Falcon modes are always displayed without borders. + "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.

    + + +

    The Hatari +Screen Dialog

    + +
    +Hatari's
+GUI - the Hatari screen dialog +
    +

    - "Zoom ST-Low res." controls whether Hatari doubles the low - resolutions. For example Hatari then zooms the ST low resolution 320x200 to - 640x400 and it doubles 384x267 (ST low with borders) to 768x534. - Note that zooming also takes a lot of CPU computing time and should not be - enabled on slow computers. +Here you control how the video output of the emulated Atari appears +on your screen.

    +

    - "Statusbar" toggles the statusbar at the bottom of the screen. - The statusbar shows the floppy drive LEDs, the current frameskip value, - the machine type including TOS version and memory size, and whether - recording is currently active. + Check "Fullscreen" to run Hatari in fullscreen. By default Hatari + runs in windowed mode.

    - The "Frame Skip" option can be set to speed up the emulator + 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 + 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!

    - 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. + "Statusbar" toggles the statusbar at the bottom of the screen. + The statusbar shows the floppy drive LEDs, the current frameskip value, + the machine type including TOS version and memory size, and whether + recording is currently active.

    -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. +"Max zoomed" 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. There are several limitations in +this:

    -

    Click Capture Screen to create a -screenshot in PNG (or 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. +

      +
    • VDI resolutions (selectable in Atari Monitor dialog) aren't scaled.
    • +
    • ST and STE video emulation supports only doubling of the ST-low + resolution.
    • +
    • Hatari doesn't support downscaling. If the original Atari resolution + is larger (for example TT-high), the Hatari screen size will also be + larger than requested.
    • +
    • TT and Falcon resolutions support only integer scaling ratios. + If the scaling ratio cannot match the requested size exactly, Hatari + will use a ratio that will produce smaller size closest to the + requested one.
    • +
    +

    +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 either by Hatari or 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 Screenshot button to create +a screenshot in PNG (or BMP) format to the current working directory +or click the Record AVI button to +record an AVI format video of Hatari screen (and audio) output. You +can opt to record new movie frames only when the screen content really +changed.

    @@ -1516,20 +1976,20 @@ screen content really changed.

    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.

    @@ -1544,50 +2004,60 @@ screen content really changed.

    The Sound Dialog

    -Hatari's GUI - the sound dialog +Hatari's GUI - the sound dialog

    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. The file name -extension you use (.WAV or .YM), determines in which format the sound -is recorded in. The record 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).

    +

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

    +

    + You can select to record a piece of sound here. + Use the Browse 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 Record sound 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). +

    The Devices Dialog

    -Hatari's GUI - the device dialog +Hatari's GUI - the device dialog
    -

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

    -

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

    Click on Browse 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 Browse 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.

    @@ -1647,7 +2117,7 @@ switch)
  • ALTGR+xtoggle normal/max speedtoggle normal speed/fast forward
    ALTGR+y
    PAUSEpause emulation or go to the debugger - if Hatari was started with the -D optionpause emulation
    AltGr+PAUSEinvoke the internal Hatari debugger

    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 +The required key values can be seen in the SDL_keysym.h include file (usually in /usr/include/SDL/).

    @@ -1725,6 +2198,11 @@ are used for the directions and +

    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.

    +

    Emulated mouse

    @@ -1734,9 +2212,12 @@ 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. -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.

    Emulated joystick

    @@ -1830,7 +2311,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 @@ -1881,61 +2362,849 @@ 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. Please -note that changing the HD-image or the GEMDOS HD-folder will reset +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.

    - -

    ACSI hard disk 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 currently the only hard disk driver -that is officially supported. Other hard disk drivers might 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. +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.

    +

    GEMDOS based hard disk emulation

    -

    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!

    -

    -There are also some known limitations which are due to the way the GEMDOS -drive emulation is implemented: First, it is not possible to use a cartridge -image together with GEMDOS drive emulation at the same time. -Second, the GEMDOS HD emulation does not work very well with TOS -1.00 and 1.02. So you should use at least TOS 1.04 if you want -to use the GEMDOS HD emulation. +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 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: +

    +
      +
    • It is not possible to use a cartridge image at the same time +with the GEMDOS drive emulation (Hatari has it's own cartridge code +that is used for GEMDOS emulation).
    • +
    • As MiNT installs its own GEMDOS handler, it doesn't work with +the GEMDOS drive emulation. MiNT needs to be booted from a real hard +disk image.
    • +
    • GEMDOS drive emulation conflicts with the ACSI and IDE harddisk images. +If you want to use GEMDOS HD emulation and ACSI/IDE disk images together, +use a multiple partition GEMDOS emulation setup and select the partition +subdirectories (letters) so that they don't conflict with the ACSI/IDE +drive partitions (letters). With HD Driver you have also another option, +see Using HD Driver +with GEMDOS partitions.
    • +
    • The GEMDOS drive emulation does not work (very well) with TOS +1.00 and 1.02. Use at least TOS 1.04 if you want the GEMDOS drive +emulation to work properly.
    • +
    +

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

    + +

    ACSI hard disk emulation

    +

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

    + +

    IDE hard disk emulation

    +

    +

    +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/from hard disk images

    + +

    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.

    + +

    Using HD Driver +with GEMDOS partitions

    + +

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

    + + +

    Accessing +HDD image partitions outside of Hatari

    + +

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

    Using Mtools

    +

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

    Using a loopback device

    +

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

    The debugger

    + +

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

    + +

    +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 runs: xterm -T "Hatari debug window" -e hatari. +

    + + +

    General debugger use

    + +

    +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
    +         exec (  ) : execute a shell command
    +         help ( h) : print help
    +         info ( i) : show machine/OS information
    +         lock (  ) : lock info to show on entering 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
    +       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
    +       dspreg (dr) : read/write DSP registers
    +      dspcont (dc) : continue emulation / DSP single-stepping
    +
    + +

    +When entering numbers to the debugger commands 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 the 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). +

    + +

    +Instead of a number, you can also use an expression, by surrounding +it with quotes (""). An expression can contain calculations with +register and symbol values in addition to numbers. For example to +give a sum of A0 and D0 register values to a command, use "a0+d0". +

    + +

    +Note that within expressions parenthesis are used to change +the order of precendence, they cannot be used for +indicating indirect addressing like with conditional breakpoints +(explained below). Even when using expressions within conditional +breakpoints. +And when using the hexadecimal number base, remember still to prefix +with '$' hexadesimal numbers that can be confused with register names +(a0-7, d0-7), otherwise results from expressions and conditional +breakpoints can be quite surprising. +

    + +

    +Expressions are always evaluated before being given to a command. +Expressions don't need to be quoted for the "evaluate" or "address" +commands as those always interpret their results as expressions. +

    + +

    +With command argument completion (see build +notes), result from last "evaluate" command can inserted by +typing '$' and pressing TAB. +

    + + +

    Inspecting emulation state

    + +

    +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
    +0000aa6e: 2f08 0241 0fff 207c 00fe MOVE.L A0,-(A7)
    +0000aa70: 0241 0fff 207c 00fe 78c0 AND.W #$0fff,D1
    +0000aa74: 207c 00fe 78c0 2070 1000 MOVEA.L #$00fe78c0,A0
    +0000aa7a: 2070 1000 4ed0 0241 0ffe MOVEA.L (A0, D1.W*1, $00) == $00fe34ae,A0
    +0000aa7e: 4ed0 0241 0ffe 6712 e549 JMP.L (A0)
    +
    + +

    +You can use the "info" command to see state of specific sets of HW +registers ("info videl") or Atari OS structures ("info basepage"). +

    + +

    +By using the "lock" command, you can ask Hatari to show above kind of +information whenever you enter the debugger ("lock disasm"). With the +"regaddr" subcommand, it can show also 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. To +disable showing of this extra information, use "lock default". +

    + +

    Debug symbols

    + +

    +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 expressions and all breakpoints. +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' BSS section type +of address. The symbol hexadecimal address, type letter and 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 fixed address (like EmuTOS), you can use the "info basepage" +command to find out the text segment address to which the program code +has been loaded into, and then load symbols so that their addresses +are offset by the text segment address: +

    +
    +> info basepage
    +Process basepage information:
    +- TPA start      : 0x01a1bc
    +- TPA end +1     : 0x7da700
    +- Text segment   : 0x01a2bc
    +- Text size      : 0xe1e0
    +- Data segment   : 0x02849c
    +- Data size      : 0x1b76
    +- BSS segment    : 0x02a012
    +- BSS size       : 0x3750
    +- Process DTA    : 0x01a23c
    +- Parent basepage: 0x00e91c
    +- Environment    : 0x01a1ae
    +'PATH='
    +'C:\'
    +- Command argslen: 0
    +> symbols calc.sym 0x01a2bc
    +
    + +

    Breakpoints

    + +

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

    +(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 conditions; 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. "b help" explains the syntax: +

    + +
    +breakpoint = <condition> [ && <condition> ... ] [option]
    +condition = <value>[.mode] [& <number>] <comparison> <value>[.mode]
    +
    +where:
    +        value = [(] <register/symbol/variable name | number> [)]
    +        number = [#|$|%]<digits>
    +        comparison = '<' | '>' | '=' | '!'
    +        addressing mode (width) = 'b' | 'w' | 'l'
    +        addressing mode (space) = 'p' | 'x' | 'y'
    +        option = : <count> | 'once' | 'trace'
    +
    + +

    +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 value is checked at run-time whereas quoted expressions +(mentioned above, please read!) are evaluated already when adding a +breakpoint. For example, to break when value in adress pointed by A0 +matches the value currently in D0, one would use: +

    +
    +> b (a0) = "d0"
    +
    + +

    +M68k addresses can have byte ("b"), word ("w") or long ("l", default) +width. DSP addresses belong to different address spaces: "P", "X" or +"Y". Note that on DSP only R0-R7 registers can be used for memory +addressing. +

    + +

    Examples:

    +
    +b (r0).x = 1 && (r0).y = 2
    +b pc = $64543  &&  ($ff820).w & 3 = (a0)  &&  d0 = %1100
    +
    + +

    +The debugger supports also setting conditional breakpoints on values +of some internal Hatari variables (listed by "b help"). For example +if you want to stop at a specific cycle within a frame (that is, PC +relative to the current VBL/HBL in cycles), set breakpoints to +specific "HBL" and "LineCycles" variable values. The "e" command +can be used to calculate suitable register and variable values. +

    + +

    +As a convenience, if the value expressions on both sides of the +comparison are exactly the same, right side is replaced with its +current value. For inequality ('!') comparison, conditional breakpoint +tracks 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 (see examples below). +

    + +

    +There are also several options that you can use with both breakpoint +types. ":trace" option will make breakpoint to print out the tracked +value instead of breaking. This can be useful e.g. when tracking +changes to some register like in: +

    +
    +> b ($ffff9202).w ! ($ffff9202).w :trace
    +
    + +

    +":once" option that removes breakpoint after hit can be useful when one +wants to get out of a loop (when at the instruction that branches back +to loop start) or just to get to a specific point in code: +

    +
    +> b pc > pc :once
    +> a some_symbol :once
    +
    + +

    +Whereas giving count (like ":2") as option will break only on every +<count> hit. +

    + +

    +After analyzing 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 breakpoint triggers) if you omit the +instruction count. +

    + +

    Tracing

    + +

    +If you want to continue with real-time disassembling, you can enable it +with "trace cpu_disasm" 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 supported trace points. +

    +

    +Because Hatari normally emulates things at the hardware level, tracing +Atari OS functions requires setting additional Hatari options which +tell it to intercept higher level functionality: +

      +
    • BIOS and XBIOS tracing require enabling bios intercepting
    • +
    • GEMDOS tracing use of the GEMDOS harddisk emulation
    • +
    • VDI tracing use of a VDI graphics mode
    • +
    +

    +Tracing options can be set even from a program within the emulation +if you enable Hatari "--bios-intercept" option and call XBios 255 from +the program with a suitable Hatari command line string. +

    +

    +Note that the trace output file can be set only when Hatari starts, +it cannot be changed from within the debugger (or emulation). +

    + +

    Build notes

    + +

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

    + + +

    Performance

    + +

    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.

    + + +

    Improving Hatari performance

    + +

    +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. Most of these options should +be needed only on slow devices like handhelds. +

    + + +

    Emulation options

    + +

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

    + +
    DSP
    +

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

    + +
    Timer-D
    +

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

    + +
    Compatible CPU
    +

    +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

    + +

    +Emulator options don't 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. +

    + +
    Sound
    +

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

    + +
    Frame skipping
    +

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

    + +
    Zooming
    +

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

    + +
    Spec512 color handling
    +

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

    + +
    Statusbar and drive LED
    +

    +If your version of libSDL uses VSync to synchronize the screen +output, drawing of the statusbar or the drive LED (when statusbar is +disabled) may have some minor impact on performance too. Normally +they shouldn't. +

    + +

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

    +

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

    + + +

    Measuring the performance

    + +

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

    +

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

    @@ -2009,7 +3278,7 @@ parts of the emulated system is much tri src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" border="0" height="31" width="88">
    - November 23rd 2008 + June 2010