ST060 - Atari ST emulator for 68060 Amigas
==========================================
ST060 turns a 68060 Amiga into an Atari 1040ST (or 520ST). It is written
entirely in 68060 assembly and does not interpret the 68000: the Atari
program runs directly on your 68060. The MMU traps every access the ST
makes to its hardware ($FF8000-$FFFFFF), and ST060 emulates the chip
behind it: video shifter, MFP 68901, WD1772 floppy controller with DMA,
YM2149 sound, keyboard/mouse/joystick (IKBD), MIDI and so on.
Requirements
------------
- A Motorola 68060 or 68LC060 (both have an MMU). The 68EC060 has no
MMU and will not work.
- AmigaOS 3.x.
- 32-bit Fast RAM. Chip RAM and Zorro II Fast RAM are not suitable.
- A TOS 1.04 ROM image (192 KB, 196608 bytes). It is NOT included:
you must provide your own. Name it "tos104.img" and put it in the
same drawer as ST060.
WARNING: while it runs, ST060 takes over the whole machine (AmigaOS is
suspended). Save your work before starting it. When you quit, AmigaOS
continues where it was.
Archive contents
----------------
ST060 the emulator (Shell program)
ST060Launcher graphical launcher
ST060Launcher.info its icon
ST060.readme this file
Quick start
-----------
1. Copy ST060 and ST060Launcher to a drawer of your choice.
2. Put your TOS 1.04 image there as tos104.img.
3. Double-click ST060Launcher, press "Load..." to choose a disk image,
set the options and press "Run ST060".
Or from the Shell:
ST060 game.msa
4. To quit the emulator, press BOTH mouse buttons at the same time.
Without a disk image, TOS boots to the GEM desktop.
The launcher
------------
ST060Launcher lets you choose the disk image and the main options
without typing. Each gadget corresponds to one of the Shell options
described below:
Load... disk image to insert in drive A (.st, .msa or .stx)
Monitor COLOR or MONO (SM124 monochrome monitor)
Memory 1 MB (1040ST) or 512 KB (520ST)
Sound YM2149 sound through Paula, or no sound
Cache instruction cache for ST RAM (see ICACHE)
NO FPS hide the speed display
NO TRACK hide the floppy track display
FLOPPY SND floppy drive noises
MIDI ST MIDI port on the Amiga serial port
PROTECT write-protect the disks
Drive vol volume of the floppy drive noises (0-100)
Shell usage
-----------
ST060 [tos.img] [disk1 ... disk9] [options]
ST060 looks for tos104.img in its own drawer. A file name ending in
.st, .msa or .stx is taken as a disk image. Up to nine disks can be
given (for multi-disk games): the first one goes into drive A, and you
change between them with hotkeys (see below). Files are searched in
the ST060 drawer first and then in the current directory.
Video:
MONO SM124 monochrome monitor: TOS boots in high resolution
(640x400). On AGA it is shown in interlace.
Machine:
MEM=512 520ST with 512 KB instead of a 1040ST with 1 MB (some
old games need it).
ICACHE Use the 68060 instruction cache for ST RAM. Faster, but
many games write code and run it (decrunchers,
self-modifying code) and will crash with it. Off by
default; try it game by game.
CFLUSH Like ICACHE, but the cache is emptied every time the
emulator returns to the ST. Safer than ICACHE.
Disks:
PROTECT Write-protect all disks. Without it, the ST can write
to the disk in drive A (saves, high scores, formatting).
Changes are kept in memory and written to the image
file when you quit (.st as is, .msa recompressed).
.stx files are never changed.
Sound:
NOSOUND No sound at all.
DRIVENOSOUND No floppy drive noises (motor, head steps, seeks).
DRIVEVOL=n Volume of the floppy drive noises, 0-100 (default 25).
WAV=file Also record up to 60 seconds of sound as a WAV file.
Other:
MIDI Connect the ST MIDI port to the Amiga serial port
(31250 baud, for an Amiga MIDI interface). Do not use
the serial port for anything else while it is on.
NOFPS Hide the speed display.
NOTRACK Hide the floppy track display.
Debugging (useful for bug reports):
DEBUG Record traces and stop on unexpected ST exceptions.
Slower. The exit report shows what happened.
NOSTOP With DEBUG: keep the traces but do not stop.
SECS=n Quit automatically after n seconds.
DUMP=file Save the ST RAM to a file when quitting.
Keys
----
Both mouse buttons quit ST060
Left Amiga + 1..9 insert disk 1..9 (as given on the command line)
Left Amiga + 0 eject the disk
Left Amiga + <- / -> previous / next disk
Left Amiga + S swap the joystick ports (SWAP ON/OFF)
Left Amiga + R reset the ST (warm reset)
Left Amiga Undo
Right Amiga Clr/Home
Help Help
Numeric keypad ST numeric keypad
Joystick and mouse: the Amiga mouse in port 1 is the ST mouse, and the
joystick in port 2 is the ST joystick. Left Amiga + S swaps them for
games that use the joystick in the mouse port. As on a real ST, the
right mouse button and the joystick fire button share one input.
Screen displays
---------------
On the upper right corner ST060 shows two numbers once per second: the
ST frames per second (50 is full speed in PAL) and the percentage of
the 68060 time used by the emulator itself. "TRACK nn" shows where
the floppy head is while loading.
When you quit, ST060 prints a short report in the Shell (frames, average
and minimum FPS, peak load, and the disks that were saved).
What is emulated
----------------
- 1040ST (1 MB) or 520ST (512 KB), TOS 1.04.
- Video: low (320x200, 16 colours) and medium (640x200, 4 colours)
resolution, palette changes on any line (rasters done with Timer B
or HBL), high resolution (640x400) on the SM124 monitor.
- MFP 68901: the four timers, Timer B event count, interrupt
priorities.
- WD1772 floppy controller with DMA: reading and writing .ST and .MSA
images, and Pasti .STX images of original, copy-protected disks
(sector timing, CRC errors, fuzzy bits, Read Track/Read Address).
Rob Northen's Copylock works.
- Disk change for multi-disk games.
- YM2149 sound synthesized in software (tones, noise, envelope),
played through Paula at 15.6 kHz, plus floppy drive noises.
Digitized sound played through the YM works.
- IKBD: mouse, joystick, keyboard, clock.
- MIDI through the Amiga serial port.
Known problems
--------------
- Programs that depend on the exact timing of the 68000 (demos that
open the borders, sync scrolling, cycle-timed effects) do not work.
- Games that play digitized sound through the YM (Gods, Speedball 2,
The Chaos Engine...) use thousands of interrupts per second and
load the emulator a lot. They run, but may slow down at times.
- Some games crash with ICACHE: leave it off unless a game runs well
with it.
- Only drive A is emulated. No hard disk and no cartridges yet.
|