table of contents
- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- THE VARIOUS FRONT-ENDS
- MENUS AND KEYS
- KEY MAPPINGS
- DISPLAY SIZE
- GRAPHICS FILTERS
- THE EMULATED SPECTRUM
- PRINTER EMULATION
- ZXATASP AND ZXCF
- DIVIDE
- DIVMMC
- SPECTRANET EMULATION
- FILE SELECTION
- MONITOR/DEBUGGER
- THE POKE FINDER
- THE POKE MEMORY
- THE .DSK FORMAT
- BETA 128 EMULATION
- OPUS DISCOVERY EMULATION
- +D EMULATION
- DIDAKTIK 80 EMULATION
- DISCIPLE EMULATION
- DISK FILE FORMATS
- WEAK DISK DATA
- MOVIE RECORDING
- COMPRESSED FILES
- BUGS
- FILES
- SEE ALSO
- AUTHOR
- buster 1.5.7+dfsg1-2~deb10u1
- testing 1.5.7+dfsg1-4
- unstable 1.5.7+dfsg1-4
- experimental 1.6.0+dfsg1-1
fuse(1) | Emulators | fuse(1) |
NAME¶
fuse — Sinclair ZX Spectrum emulatorSYNOPSIS¶
fuse [options]DESCRIPTION¶
Fuse is a Sinclair ZX Spectrum emulator. It supports several models (including the 128), with quite faithful emulation of the display and sound.The emulator can load any of the formats supported by libspectrum(3) — this includes Z80, SNA and SZX snapshots, and PZX, TAP and TZX virtual-tape files. Saving to SZX, Z80 and SNA snapshots and TZX and TAP tape files is supported. The SLT extension to the Z80 format is partly supported (enough for multi-load games); however, loading of the old DAT-file variant is not.
DSK, UDI, FDI, TD0, MGT, IMG, D40, D80, SAD, TRD, SCL and OPD disk images are supported when a disk interface is being emulated, including the integrated disk drives on +3, Pentagon or Scorpion machines as well as the +D, DISCiPLE, Opus Discovery, Beta 128 and Didaktik 80 interfaces. DCK cartridge images are supported when emulating a Timex 2068 variant. Interface 2 ROM cartridges are also supported.
Finally, there is also support for reading and writing the RZX input recording format.
See the COMPRESSED FILES section for details on reading files compressed with bzip2(3), gzip(3) or zip(3).
OPTIONS¶
--accelerate-loader--aspect-hint
--autosave-settings
--auto-load
--beta128
--beta128-48boot
--betadisk file
--bw-tv
--cmos-z80
--competition-code code
--competition-mode
--compress-rzx
--confirm-actions
--covox
--debugger-command string
--detect-loader
--disciple
--discipledisk file
--didaktik80
--didaktik80disk file
--disk-ask-merge
--disk-try-merge mode
--divide
--divide-masterfile file
--divide-slavefile file
--divide-write-protect
--divmmc
--divmmc-file file
--divmmc-write-protect
--dock file
-D mode
--doublescan-mode mode
If your monitor displays a blank screen when using 1 or 2, press F10 then try a different option or say `--fbmode 640'.
--drive-plus3a-type type
--drive-plus3b-type type
--drive-beta128a-type type
--drive-beta128b-type type
--drive-beta128c-type type
--drive-beta128d-type type
--drive-plusd1-type type
--drive-plusd2-type type
--drive-didaktik80a-type type
--drive-didaktik80b-type type
--drive-disciple1-type type
--drive-disciple2-type type
--drive-opus1-type type
--drive-opus2-type type
--drive-40-max-track count
--drive-80-max-track count
--embed-snapshot
--fastload
-v mode
--fbmode mode
--fuller
--full-screen
-g filter
--graphics-filter mode
--graphicsfile file
-h
--help
--if2cart file
--interface1
--interface2
--issue2
-j device
--joystick-1 device
--joystick-2 device
--joystick-1-output type
--joystick-2-output type
--joystick-keyboard-output type
--joystick-1-fire-1 code
--joystick-1-fire-2 code
--joystick-1-fire-3 code
--joystick-1-fire-4 code
--joystick-1-fire-5 code
--joystick-1-fire-6 code
--joystick-1-fire-7 code
--joystick-1-fire-8 code
--joystick-1-fire-9 code
--joystick-1-fire-10 code
--joystick-1-fire-11 code
--joystick-1-fire-12 code
--joystick-1-fire-13 code
--joystick-1-fire-14 code
--joystick-1-fire-15 code
--joystick-2-fire-1 code
--joystick-2-fire-2 code
--joystick-2-fire-3 code
--joystick-2-fire-4 code
--joystick-2-fire-5 code
--joystick-2-fire-6 code
--joystick-2-fire-7 code
--joystick-2-fire-8 code
--joystick-2-fire-9 code
--joystick-2-fire-10 code
--joystick-2-fire-11 code
--joystick-2-fire-12 code
--joystick-2-fire-13 code
--joystick-2-fire-14 code
--joystick-2-fire-15 code
--joystick-keyboard-up code
--joystick-keyboard-down code
--joystick-keyboard-left code
--joystick-keyboard-right code
--joystick-keyboard-fire code
--joystick-prompt
--kempston
--kempston-mouse
--keyboard-arrows-shifted
--late-timings
--loading-sound
-m type
--machine type
--melodik
--mdr-len length
--mdr-random-len
--microdrive-file file
--microdrive-2-file file
--microdrive-3-file file
--microdrive-4-file file
--microdrive-5-file file
--microdrive-6-file file
--microdrive-7-file file
--microdrive-8-file file
--mouse-swap-buttons
--movie-compr level
--movie-start filename
--movie-stop-after-rzx
--multiface1
--multiface128
--multiface3
--multiface1-stealth
--opus
--opusdisk file
--pal-tv2x
--phantom-typist-mode mode
-p file
--playback file
--plus3disk file
--plus3-detect-speedlock
--plusd
--plusddisk file
--printer
--rate frame
-r file
--record file
--recreated-spectrum
--rom-16 file
--rom-48 file
--rom-128-0 file
--rom-128-1 file
--rom-plus2-0 file
--rom-plus2-1 file
--rom-plus2a-0 file
--rom-plus2a-1 file
--rom-plus2a-2 file
--rom-plus2a-3 file
--rom-plus3-0 file
--rom-plus3-1 file
--rom-plus3-2 file
--rom-plus3-3 file
--rom-plus3e-0 file
--rom-plus3e-1 file
--rom-plus3e-2 file
--rom-plus3e-3 file
--rom-tc2048 file
--rom-tc2068-0 file
--rom-tc2068-1 file
--rom-ts2068-0 file
--rom-ts2068-1 file
--rom-pentagon-0 file
--rom-pentagon-1 file
--rom-pentagon-2 file
--rom-pentagon512-0 file
--rom-pentagon512-1 file
--rom-pentagon512-2 file
--rom-pentagon512-3 file
--rom-pentagon1024-0 file
--rom-pentagon1024-1 file
--rom-pentagon1024-2 file
--rom-pentagon1024-3 file
--rom-scorpion-0 file
--rom-scorpion-1 file
--rom-scorpion-2 file
--rom-scorpion-3 file
--rom-spec-se-0 file
--rom-spec-se-1 file
The names in brackets denote the defaults. Note that not all these ROMs are supplied with Fuse — you must supply your own copies of those which are not.
--rom-interface-1 file
--rom-beta128 file
--rom-plusd file
--rom-didaktik80 file
--rom-disciple file
--rom-multiface1 file
--rom-multiface128 file
--rom-multiface3 file
--rom-opus file
--rom-speccyboot file
--rom-usource file
The names in brackets denote the defaults. Note that not all these ROMs are supplied with Fuse — you must supply your own copies of those which are not.
--no-rs232-handshake
--rs232-rx
--rs232-tx
--rzx-autosaves
--sdl-fullscreen-mode mode
--separation type
--simpleide
--simpleide-masterfile file
--simpleide-slavefile file
--slt
-s file
--snapshot file
--sound
-d device
--sound-device device
If you are using the SDL UI, the device parameter allows you to specify the audio driver to be used (e.g. dsp, alsa, dma, esd and arts).
If you are using libao for sound output, the device parameter allows you to specify the device used for sound output (either `live' to a speaker or to a file) and the parameters to be used for that device. In general, the device parameter has the form driver[:param[=value][,param[=value][,...]]. driver selects the libao driver to be used, either one of the `live' drivers (aixs, alsa, alsa09, arts, esd, irix, macosx, nas, oss or sun) or a file driver (au, raw, wav or null). The available parameter and value pairs for each device are:
- •
- aixs: AIX audio system
- •
- dev=device
`device' gives the AIX sound device.
- •
- alsa: Advanced Linux Sound Architecture version 0.5.x
- •
- card=num
`num' gives the ALSA card number. - •
- dev=num
`num' gives the ALSA device number. - •
- buf_size=num
`num' gives the ALSA buffer size in bytes.
- •
- alsa09: Advanced Linux Sound Architecture version 0.9+
- •
- dev=string
`string' specifies the ALSA device e.g. hw:1.2 - •
- buffer_time=num
`num' gives the ALSA buffer time in microseconds. - •
- period_time=num
`num' gives the ALSA period time in microseconds. - •
- use_mmap=yes|y|true|t|1
specifies that libao use memory mapped transfer.
- •
- arts: aRts soundserver: no parameters.
- •
- esd: Enlightened Sound Daemon.
- •
- host=string
`string' gives the ESD host specification.
- •
- irix: IRIX Audio Library: no parameters.
- •
- macosx: MacOS X CoreAudio: no parameters.
- •
- nas: Network Audio System.
- •
- host=string
`string' gives the NAS host specification. - •
- buf_size=num
`num' gives the buffer size on the server.
- •
- oss: Open Sound System.
- •
- dsp=string
`string' gives the OSS device to be used e.g. /dev/sound/dsp1
- •
- sun: SUN audio system.
- •
- dev=string
`string' gives the audio device to be used.
- •
- au: SUN Sparc audio file: no parameters.
- •
- raw: raw file.
- •
- byteorder=string
`string' can be any of native (host native byteorder), big (big endian) or little (little endian).
- •
- wav: Microsoft audio file: no parameters.
- •
- null: null output: no parameters.
- •
- debug: for debugging libao.
Finally, each of the file output types (au, raw and wav) have an extra option `file=filename' where `filename' gives the file output will be directed to. This defaults to `fuse-sound.ao' if it is not specified.
Some examples of use:
fuse -d alsa09:dev=hw:1
causes Fuse to use ALSA 0.9+ output with the second (#1) sound card.
fuse -d raw:byteorder=little,file=enigma.raw
causes Fuse to save little endian words to `enigma.raw'.
See the `DEVICE' section of ogg123(1) for up to date information of devices and options (except for the `file' option which is provided by Fuse itself).
If you are using libasound or ALSA for sound output,
the device parameter allows you to specify the device used for sound
output and some parameters to be used for that device. In general, the
device parameter has the form
devstr or
param[=value][,param[=value][,...][,devstr].
- •
- devstr: selects the ALSA device used, it can be any complex or
simple ALSA device name. e.g.: default or hw:0 or
tee:plughw:0,'/tmp/out.raw',raw. See the alsa-lib pcm api reference
at http://www.alsa-project.org/alsa-doc/alsa-lib/pcm.html for
further explanation.
- •
- param and values:
- •
- buffer=nnnn: set the ALSA buffer in frames, smaller value cause smaller sound delay but may more buffer underrun (pops and clicks), larger value cause longer delay but fewer underrun. By default Fuse determine the buffer size based on the actual sound frequency.
- •
- verbose : if given, fuse report ALSA buffer underruns to
stderr.
Some examples of use:
fuse -d verbose,buffer=2000
causes Fuse to use the default ALSA device with 2000 frame length buffer and report ALSA buffer underruns on stderr.
fuse -d tee:plughw:0,'/tmp/aufwm.raw',raw
causes Fuse to use the first card and parallel save the raw audio
samples into /tmp/aufwm.raw file.
--sound-force-8bit
-f frequency
--sound-freq frequency
--speaker-type type
--speccyboot
--speccyboot-tap device
--specdrum
--spectranet
--spectranet-disable
--speed percentage
--statusbar
--strict-aspect-hint
--svga-modes mode1,mode2,mode3
-t file
--tape file
--textfile file
--traps
--unittests
--usource
-V
--version
--volume-ay volume
--volume-beeper volume
--volume-covox volume
--volume-specdrum volume
--writable-roms
--zxatasp
--zxatasp-upload
--zxatasp-write-protect
--zxatasp-masterfile file
--zxatasp-slavefile file
--zxcf
--zxcf-upload
--zxcf-cffile file
--zxmmc
--zxmmc-file file
--zxprinter
All long options which control on/off settings can be disabled using `--no-foo' (for an option `--foo'). For example, the opposite of `--issue2' is `--no-issue2'. These options can also be modified while the emulator is running, using the options dialogs — see the documentation for the Options menu in the MENUS AND KEYS section for details.
THE VARIOUS FRONT-ENDS¶
Fuse supports various front-ends, or UIs (user interfaces). The usual one is GTK+-based, but there are also SDL, Win32, Xlib, SVGAlib and framebuffer ones.The important difference to note is that GTK+ and Win32 versions uses `native' dialog boxes etc. (behaving like a fairly normal GUI-based program) while the others use an alternative, Fuse-specific `widget UI'. This latter front-end is easily spotted by the way it uses the main Fuse window/screen for menus and dialogs, and uses the Spectrum's own font.
MENUS AND KEYS¶
Since many of the keys available are devoted to emulation of the Spectrum's keyboard, the primary way of controlling Fuse itself (rather than the emulated machine) is via the menus. There are also function key shortcuts for some menu options.In the GTK+ and Win32 version, the menu bar is always visible at the top of the Fuse window. You can click on a menu name to pop it up. Alternatively, you can press F1 to display a pop-up version of the menu bar, which you can then navigate with the cursor keys or mouse.
In the widget UI pressing F1 is the only way to get the main menu; and unlike the GTK+ version, the emulator pauses while the menus are being navigated. The menus show which key to press for each menu option in brackets. Pressing Esc exits a menu, and pressing Enter exits the menu system entirely (as well as `confirming' any current dialog).
Here's what the menu options do, along with the function key mappings for those items which have them:
F3
File, Open...
F2
File, Save Snapshot...
File, Recording, Record...
File, Recording, Record from snapshot...
File, Recording, Continue recording...
Insert
File, Recording, Insert snapshot
Delete
File, Recording, Rollback
File, Recording, Rollback to...
File, Recording, Play...
File, Recording, Stop
File, Recording, Finalise...
File, AY Logging, Record...
File, AY Logging, Stop
File, Screenshot, Open SCR Screenshot...
File, Screenshot, Save Screen as SCR...
File, Screenshot, Open MLT Screenshot...
File, Screenshot, Save Screen as MLT...
File, Screenshot, Save Screen as PNG...
File, Scalable Vector Graphics, Start capture in line mode...
File, Scalable Vector Graphics, Start capture in dot mode...
File, Scalable Vector Graphics, Stop capture
File, Movie, Record...
File, Movie, Record from RZX...
File, Movie, Pause
File, Movie, Continue
File, Movie, Stop
File, Load Binary Data...
File, Save Binary Data...
F10
File, Exit
F4
Options, General...
The options available are:
Emulation speed
Frame rate
Issue 2 keyboard
Recreated ZX Spectrum
Use shift with arrow keys
Allow writes to ROM
Late timings
Z80 is CMOS
RS-232 handshake
Black and white TV
PAL-TV use TV2x effect
Show statusbar
Snap joystick prompt
Confirm actions
Auto-save settings
Options, Media...
Auto-load media
Detect loaders
Phantom typist mode
Auto
Keyword
Keystroke
Menu
Plus 2A
Plus 3
The first four of these correspond to automatic detection based on machine model, keyword based entry, keystroke based entry, and selection from a 128K style menu. Plus 2A and Plus 3 also correspond to selection from a 128K style menu, but have special handling for games which need to be loaded with `LOAD ""CODE'. The most likely use for this option will be use Keystroke if you have changed the default 48K ROM for one with keystroke entry.
Fastloading
Use tape traps
Accelerate loaders
Use .slt traps
MDR cartridge len
Random length MDR cartridge
Options, Sound...
Sound enabled
Loading sound
AY stereo separation
Force 8-bit
Speaker type
AY volume
Beeper volume
Covox volume
SpecDrum volume
Options, Peripherals, General...
Kempston joystick
Kempston mouse
If you're using Fuse full-screen, your mouse is automatically used as if attached to the Kempston interface. Otherwise, you'll need to click on the Spectrum display in order to tell Fuse to grab the pointer (and make it invisible); to tell Fuse to release it, click the middle button (or wheel) or press Escape.
With the framebuffer UI, Fuse prefers to use GPM; if this is not available, it will fall back to built-in PS/2 mouse support. In this mode, it tries /dev/input/mice, /dev/mouse then /dev/psaux, stopping when it successfully opens one. The first of these is preferred since (at least on Linux, with a 2.6-series kernel) any type of mouse can be used and any connected mouse may be used.
Swap mouse buttons
Fuller Box
Melodik
Interface 1
Interface 2
Multiface One
Multiface 128
Multiface 3
Stealth Multiface One
Emulate printers
ZX Printer
SpeccyBoot interface
SpecDrum interface
Spectranet
Spectranet disable
µSource
Covox interface
Options, Peripherals, Disk...
Simple 8-bit IDE
ZXATASP interface
ZXATASP upload
ZXATASP write protect
ZXCF interface
ZXCF upload
ZXMMC interface
DivIDE interface
DivIDE write protect
DivMMC interface
DivMMC write protect
+D interface
Didaktik 80 interface
DISCiPLE interface
Beta 128 interface
Beta 128 auto-boot in 48K machines
Opus Discovery interface
Options, RZX...
Create autosaves
Compress RZX data
Competition mode
If libgcrypt was available when Fuse was compiled, then recordings made with competition mode active will be digitally signed, in theory to `certify' that it was made with the above restrictions in place. However, this procedure is not secure (and cannot be made so), so the presence of any signature on an RZX file should not be taken as providing proof that it was made with competition mode active. This feature is included in Fuse solely as it was one of the requirements for Fuse to be used in an on-line tournament.
Competition code
Always embed snapshot
Options, Movie...
Movie compression
Stop recording after RZX ends
Options, Joysticks
Each of the joysticks (including the `fake' keyboard joystick) can be configured to emulate any one of the following joystick types:
None
Cursor
Kempston
Sinclair 1
Sinclair 2
Timex 1
Timex 2
For the real joysticks, it is also possible to configure what effect each button on the joystick will have: this can be Joystick Fire, equivalent to pressing the emulated joystick's fire button, Nothing, meaning to have no effect, or any Spectrum key, meaning that pressing that button will be equivalent to pressing that Spectrum key.
Options, Select ROMs, Machine ROMs
Options, Select ROMs, Peripheral ROMs
Options, Filter...
F11
Options, Full Screen
Options, Disk Options...
Disabled
Single-sided 40 track
Double-sided 40 track
Single-sided 80 track
Double-sided 80 track
The Disabled option is not supported for Drive 1 or Drive A of any interface.
The available options that can be set are:
+3 Drive A
+3 Drive B
+3 Detect Speedlock
Beta 128 Drive A
Beta 128 Drive B
Beta 128 Drive C
Beta 128 Drive D
+D Drive 1
+D Drive 2
Didaktik 80 Drive A
Didaktik 80 Drive B
DISCiPLE Drive 1
DISCiPLE Drive 2
Opus Drive 1
Opus Drive 2
Try merge 'B' side of disks
Confirm merge disk sides
Options, Save
Pause
Machine, Pause
F5
Machine, Reset
Machine, Hard reset
F9
Machine, Select...
Spectrum 16K
Spectrum 48K
Spectrum 48K (NTSC)
Spectrum 128K
Spectrum +2
Spectrum +2A
Spectrum +3
Spectrum +3e
Timex TC2048
Timex TC2068
Timex TS2068
Pentagon 128K
Pentagon 512K
Pentagon 1024K
Scorpion ZS 256
Spectrum SE
Machine, Debugger...
Machine, Poke Finder...
Machine, Poke Memory...
Machine, Memory Browser...
Machine, NMI
Machine, Multiface Red Button
Machine, Didaktik SNAP
F7
Media, Tape, Open...
To guarantee that TZX files will load properly, you should select the file, make sure tape-loading traps are disabled in the Media Options dialog, then press F8 (or do Media, Tape, Play). That said, most TZXs will work with tape-loading traps enabled (often quickly loading partway, then loading the rest real-time), so you might want to try it that way first.
F8
Media, Tape, Play
Media, Tape, Browse
Media, Tape, Rewind
Media, Tape, Clear
F6
Media, Tape, Write...
Media, Tape, Record Start
Media, Tape, Record Stop
Media, Interface 1
Media, Interface 1, Microdrive 1, Insert New
Media, Interface 1, Microdrive 1, Insert...
Media, Interface 1, Microdrive 1, Eject
Media, Interface 1, Microdrive 1, Save
Media, Interface 1, Microdrive 1, Save as...
Media, Interface 1, Microdrive 1, Write protect, Enable
Media, Interface 1, Microdrive 1, Write protect, Disable
Media, Interface 1, Microdrive 2, ...
Media, Interface 1, Microdrive 3, ...
Media, Interface 1, Microdrive 4, ...
Media, Interface 1, Microdrive 5, ...
Media, Interface 1, Microdrive 6, ...
Media, Interface 1, Microdrive 7, ...
Media, Interface 1, Microdrive 8, ...
Media, Interface 1, RS232, Plug RxD
Media, Interface 1, RS232, Unplug RxD
Media, Interface 1, RS232, Plug TxD
Media, Interface 1, RS232, Unplug TxD
Media, Disk
Once again, any changes made to a disk image will not affect the file which was `inserted' into the drive. If you do want to keep any changes, use the appropriate `eject and write' option before exiting Fuse.
Media, Disk, +3, Drive A:, Insert...
Media, Disk, +3, Drive A:, Eject
Media, Disk, +3, Drive A:, Save
Media, Disk, +3, Drive A:, Save as...
Media, Disk, +3, Drive B:, Insert...
Media, Disk, +3, Drive B:, Eject
Media, Disk, +3, Drive B:, Save
Media, Disk, +3, Drive B:, Save as...
Media, Disk, Beta, Drive A:, Insert New
Media, Disk, Beta, Drive A:, Insert...
Media, Disk, Beta, Drive A:, Eject
Media, Disk, Beta, Drive A:, Save
Media, Disk, Beta, Drive A:, Save as...
Media, Disk, Beta, Drive A:, Write protect, Enable
Media, Disk, Beta, Drive A:, Write protect, Disable
Media, Disk, Beta, Drive B:, ...
Media, Disk, Beta, Drive C:, ...
Media, Disk, Beta, Drive D:, ...
Media, Disk, Opus, Drive 1, Insert New
Media, Disk, Opus, Drive 1, Insert...
Media, Disk, Opus, Drive 1, Eject
Media, Disk, Opus, Drive 1, Save
Media, Disk, Opus, Drive 1, Save as...
Media, Disk, Opus, Drive 1, Write protect, Enable
Media, Disk, Opus, Drive 1, Write protect, Disable
Media, Disk, Opus, Drive 2, ...
Media, Disk, +D, Drive 1, Insert New
Media, Disk, +D, Drive 1, Insert...
Media, Disk, +D, Drive 1, Eject
Media, Disk, +D, Drive 1, Save
Media, Disk, +D, Drive 1, Save as...
Media, Disk, +D, Drive 1, Write protect, Enable
Media, Disk, +D, Drive 1, Write protect, Disable
Media, Disk, +D, Drive 2, ...
Media, Disk, Didaktik 80, Drive A, Insert New
Media, Disk, Didaktik 80, Drive A, Insert...
Media, Disk, Didaktik 80, Drive A, Eject
Media, Disk, Didaktik 80, Drive A, Save
Media, Disk, Didaktik 80, Drive A, Save as...
Media, Disk, Didaktik 80, Drive A, Write protect, Enable
Media, Disk, Didaktik 80, Drive A, Write protect, Disable
Media, Disk, Didaktik 80, Drive B, ...
Media, Disk, DISCiPLE, Drive 1, Insert New
Media, Disk, DISCiPLE, Drive 1, Insert...
Media, Disk, DISCiPLE, Drive 1, Eject
Media, Disk, DISCiPLE, Drive 1, Save
Media, Disk, DISCiPLE, Drive 1, Save as...
Media, Disk, DISCiPLE, Drive 1, Write protect, Enable
Media, Disk, DISCiPLE, Drive 1, Write protect, Disable
Media, Disk, DISCiPLE, Drive 2, ...
Media, Cartridge, Timex Dock, Insert...
Media, Cartridge, Timex Dock, Eject
Media, Cartridge, Interface 2, Insert...
Media, Cartridge, Interface 2, Eject...
Media, IDE, Simple 8-bit, Master, Insert...
Media, IDE, Simple 8-bit, Master, Commit
Media, IDE, Simple 8-bit, Master, Eject
Media, IDE, Simple 8-bit, Slave, Insert...
Media, IDE, Simple 8-bit, Slave, Commit
Media, IDE, Simple 8-bit, Slave, Eject
Media, IDE, ZXATASP, Master, Insert...
Media, IDE, ZXATASP, Master, Commit
Media, IDE, ZXATASP, Master, Eject
Media, IDE, ZXATASP, Slave, Insert...
Media, IDE, ZXATASP, Slave, Commit
Media, IDE, ZXATASP, Slave, Eject
Media, IDE, ZXCF CompactFlash, Insert...
Media, IDE, ZXCF CompactFlash, Commit
Media, IDE, ZXCF CompactFlash, Eject
Media, IDE, ZXMMC, Insert...
Media, IDE, ZXMMC, Commit
Media, IDE, ZXMMC, Eject
Media, IDE, DivIDE, Master, Insert...
Media, IDE, DivIDE, Master, Commit
Media, IDE, DivIDE, Master, Eject
Media, IDE, DivIDE, Slave, Insert...
Media, IDE, DivIDE, Slave, Commit
Media, IDE, DivIDE, Slave, Eject
Media, IDE, DivMMC, Insert...
Media, IDE, DivMMC, Commit
Media, IDE, DivMMC, Eject
Help, Keyboard picture...
KEY MAPPINGS¶
When emulating the Spectrum, keys F1 to F10 are used as shortcuts for various menu items, as described above. The alphanumeric keys (along with Enter and Space) are mapped as-is to the Spectrum keys. The other key mappings are:- Shift
- emulated as Caps Shift
- Control, Alt, and Meta
- emulated as Symbol Shift (most other modifiers are also mapped to this)
- Backspace
- emulated as Caps–0 (Delete)
- Esc
- emulated as Caps–1 (Edit)
- Caps Lock
- emulated as Caps–2
- Cursor keys
- emulated as Caps–5/6/7/8 (as appropriate)
- Tab
- emulated as Caps Shift–Symbol Shift (Extended Mode)
Some further punctuation keys are supported, if they exist on your keyboard — `,', `.', `/', `;', `'', `#', `-', and `='. These are mapped to the appropriate symbol-shifted keys on the Spectrum.
A list of keys applicable when using the file selection dialogs is given in the FILE SELECTION section below.
DISPLAY SIZE¶
Some of Fuse's UIs allow resizing of the emulated Spectrum's display. For the window-based ones (GTK+, Win32 and Xlib), you can resize the window by, well, resizing it. :-) Exactly how this works depends on your window manager; you may have to make the window over twice the width and height of the original size before it actually scales up. Fuse attempts to keep the window `square', but with some window managers this can mean the window will never resize at all. If you experience this problem, the `--no-aspect-hint' option may help.If you're using the SDL UI under X11 or GTK+, the window will automatically resize to be the correct size for the graphics filter selected.
GRAPHICS FILTERS¶
Fuse has the ability to apply essentially arbitrary filters between building its image of the Spectrum's screen, and displaying it on the emulating machine's monitor. These filters can be used to do various forms of smoothing, emulation of TV scanlines and various other possibilities. Support for graphics filters varies between the different user interfaces, but there are two general classes: the GTK+, Win32, Xlib, SVGAlib and SDL user interfaces (and the saving of .png screenshots) support `interpolating' filters which use a palette larger than the Spectrum's 16 colours, while the framebuffer user interface currently does not support filters at all.A further complication arises due to the fact that the Timex machines have their high-resolution video mode with twice the horizontal resolution. To deal with this, Fuse treats these machines as having a `normal' display size which is twice the size of a normal Spectrum's screen, leading to a different set of filters being available for these machines. Note that any of the double or triple-sizing filters are available for Timex machines only when using the SDL, Win32 or GTK+ user interfaces.
The available filters, along with their short name used to select them from the command line, are:
Timex half (smoothed) (half)
Timex half (skipping) (halfskip)
Normal (normal)
Double size (2x)
Triple size (3x)
2xSaI (2xsai)
Super 2xSaI (super2xsai)
SuperEagle (supereagle)
AdvMAME2x (advmame2x)
AdvMAME3x (advmame3x)
TV 2x (tv2x)
TV 3x (tv3x)
Timex TV (timextv)
PAL TV (paltv)
PAL TV 2x (paltv2x)
PAL TV 3x (paltv3x)
Dot matrix (dotmatrix)
Timex 1.5x (timex15x)
HQ 2x (hq2x)
HQ 3x (hq3x)
THE EMULATED SPECTRUM¶
The emulated Spectrum is, by default, an unmodified 48K Spectrum with a tape player and ZX Printer attached. Oh, and apparently some magical snapshot load/save machine which is probably best glossed over for the sake of the analogy. :-)To emulate different kinds of Spectrum, select the Machine, Select... menu option, or press F9.
The Spectrum emulation is paused when any dialogs appear. In the widget UI, it's also paused when menus or the keyboard picture are displayed.
PRINTER EMULATION¶
The various models of Spectrum supported a range of ways to connect printers, three of which are supported by Fuse. Different printers are made available for the different models:- 16, 48, TC2048, TC2068, TS2068
- ZX Printer
- 128/+2/Pentagon
- Serial printer (text-only)
- +2A, +3
- Parallel printer (text-only)
If Opus Discovery, +D or DISCiPLE emulation is in use and printer emulation is enabled, text-only emulation of the disk interface's parallel printer interface is provided.
Any printout is appended to one (or both) of two files, depending on the printer — these default to printout.txt for text output, and printout.pbm for graphics (PBM images are supported by most image viewers and converters). These names can be changed with the --textfile and --graphicsfile options from the command line or configuration file. While the ZX Printer can only output graphically, simulated text output is generated at the same time using a crude sort of OCR based on the current character set (a bit like using SCREEN$). There is currently no support for graphics when using the serial/parallel output, though any escape codes used will be `printed' faithfully. (!)
By the way, it's not a good idea to modify the printout.pbm file outside of Fuse if you want to continue appending to it. The header needs to have a certain layout for Fuse to be able to continue appending to it correctly, and the file will be overwritten if it can't be appended to.
ZXATASP AND ZXCF¶
The ZXATASP and ZXCF interfaces are two peripherals designed by Sami Vehmaa which significantly extend the capabilities of the Spectrum. More details on both are available from Sami's homepage, http://user.tninet.se/~vjz762w/, but a brief overview is given here.The real ZXATASP comes with either 128K or 512K of RAM and the ability to connect an IDE hard disks and a CompactFlash card, while the ZXCF comes with 128K, 512K or 1024K of RAM and the ability to connect a CompactFlash card. From an emulation point of view, the two interfaces are actually very similar as a CompactFlash card is logically just an IDE hard disk. Currently, Fuse's emulation is fixed at having 512K of RAM in the ZXATASP and 1024K in the ZXCF.
To activate the ZXATASP, simply select the ZXATASP interface option from the Options, Peripherals, Disk... dialog. The state of the upload and write protect jumpers is then controlled by the ZXATASP upload and ZXATASP write protect options. Similarly, the ZXCF is controlled by the ZXCF interface and ZXCF upload options (the ZXCF write protect is software controlled).
If you're using either the ZXATASP or ZXCF, you almost certainly want to investigate ResiDOS, the operating system designed for use with the ZXATASP and ZXCF. ResiDOS provides facilities for using the extra RAM, accessing the mass storage devices and a task manager allowing virtually instant switching between programs on the Spectrum. See http://www.worldofspectrum.org/residos/ for more details.
DIVIDE¶
The DivIDE is another IDE interface for the Spectrum, of which full details can be found at http://web.archive.org/web/20150302052256/http://baze.au.com/divide/. The interface can be activated via the DivIDE interface option from the Options, Peripherals, Disk... dialog, and the state of its write protect jumper controlled via the DivIDE write protect option. If you're going to be using the DivIDE, you'll probably want one of the firmwares available from the DivIDE homepage.DIVMMC¶
The DivMMC is a MMC interface for the Spectrum. Originally designed by Alessandro Dorigatti for the V6Z80P+ FPGA board as the fusion of DivIDE and ZXMMC+ interfaces, later assembled as an interface for real spectrums by Mario Prato. Currently there are variants with different RAM size, one/two memory cards slots, optional kempston jostick, etc.The interface can be activated via the DivMMC interface option from the Options, Peripherals, Disk... dialog, and the state of its EEPROM write protect jumper controlled via the DivMMC write protect option. If you're going to be using the DivMMC, you'll need to load the ESXDOS firmware at http://www.esxdos.org/ or use the ZX Spectrum +3e ROMs by Garry Lancaster.
You'll also need a HDF image to store the contents of the memory card. There are several tools to create and manipulate this file format, e.g., hdfmonkey at https://github.com/gasman/hdfmonkey.
SPECTRANET EMULATION¶
The Spectranet is an Ethernet network interface for the ZX Spectrum by Dylan Thomas. The interface can be activated via the Spectranet option on the Peripherals preferences dialog, and the state of its automatic page-in (disable) jumper controlled via the Spectranet disable option. If you're going to be using the Spectranet, you'll probably want one of the firmwares available from the Spectranet homepage (http://spectrum.alioth.net/doc/index.php) which is also where you can find more information on using the interface.Installing the Spectranet firmware on Fuse is slightly more complicated than on a real machine, mostly because Fuse's emulation doesn't support DHCP. These instructions are correct as of 2012-01-26 — if you're using a later firmware than this, things may have changed slightly.
The first thing you will need to do is to obtain a copy of the Spectranet installer as a .tap file (or similar). The installer is also available at the Spectranet site above.
Once you have a copy of the installer, start Fuse and tick the Spectranet option from the Options, Peripherals, General... dialog, and the state of its write protect jumper controlled via the Spectranet disable option. Once that's done, open the installer file (use the Media, Tape, Open... command rather than File, Open... to prevent autoloading) and enter the following commands from BASIC:
CLEAR 26999
LOAD "" CODE
RANDOMIZE USR 27000
The screen should turn blue and you'll see around 20 lines of message appearing as the firmware is installed, starting with “Erasing sector 0” and finishing with “Restoring page B”, and you'll get the familiar 0 OK, 0: 1 at the bottom of the screen.
Now untick the Spectranet disable option from the Options, Peripherals, General... dialog and reset the Spectrum. You should see a very brief blue status screen, before the regular copyright screen appears with some Spectranet information at the top — there should be four status lines, starting with “Alioth Spectranet” and ending with the Spectranet's IP address (which will be 255.255.255.255 at this stage).
Now trigger an NMI (the Machine / NMI menu option) and you should get a white on blue Spectranet NMI menu with five options.
Select [A] Configure network settings — this should lead you to another menu, which will scroll of the top of the screen; don't worry about this for now.
You'll now need to set various options:
[A] Enable/disable DHCP — select N
[B] Change IP address — enter the IP address of the machine you are
running Fuse on.
[C] Change netmask — enter the appropriate netmask for the IP address
you selected above. If that doesn't mean anything to you, try 255.255.255.0
[D] Change default gateway — enter the appropriate gateway address. If
you don't know any better, enter the IP address of your router.
[E] Change primary DNS — enter the address of your DNS server. If you
don't know any better, use Google's public DNS server, 8.8.8.8.
There is no need to change options [F] or [G], but do select:
[H] Change hostname — enter a hostname for the Spectranet-enabled machine. It doesn't really matter what you enter here — it's mostly useful just to replace the junk default name so you can see what you've entered for the other settings.
Your screen should now look something like this:
Current configuration | |
Use DHCP | : No |
IP address | : 192.168.000.002 |
Netmask | : 255.255.255.000 |
Default gateway | : 192.168.000.001 |
Primary DNS | : 192.168.000.001 |
Secondary DNS | : 255.255.255.255 |
Hardware address | : FF:FF:FF:FF:FF:FF |
Hostname | : fuse |
<menu options> |
If everything looks correct, select [I] Save changes and exit (you'll see a brief “Saving configuration...” message) followed by [E] Exit, at which point you'll be returned to BASIC.
Now type the following commands:
%cfgnew
%cfgcommit
Which will show the standard 0 OK, 0:1 at the bottom of the screen.
Reset the Spectrum again and you'll see the same four line status display, but this time with your IP address on the last line.
Congratulations! You have now installed the Spectranet firmware. To save having to go through all that every time you start Fuse, save a .szx snapshot at this point, and load that in every time you want to use the Spectranet.
FILE SELECTION¶
The way you select a file (whether snapshot or tape file) depends on which UI you're using. So firstly, here's how to use the GTK+ file selector.The selector shows the directories and files in the current directory in two separate subwindows. If either list is too big to fit in the window, you can use the scrollbar to see the rest (by dragging the slider, for example), or you can use Shift–Tab (to move the keyboard focus to a subwindow) and use the cursor keys. To change directory, double-click it.
To choose a file to load you can either double-click it, or click it then click Ok. Or click Cancel to abort.
If you're using the keyboard, probably the easiest way to use the selector is to just ignore it and type in the name. This isn't as irksome as it sounds, since the filename input box has filename completion — type part of a directory or file name, then press Tab. It should complete it. If it was a directory, it moves to that directory; if the completion was ambiguous, it completes as much as possible, and narrows the filenames shown to those which match. You should press Enter when you've finished typing the filename, or Esc to abort.
Now, if you're using the widget UI — the one using the Spectrum font — the selector works a bit differently. The files and directories are all listed in a single two-column-wide window (the directories are shown at the top, ending in `/') — the names may be truncated onscreen if they're too long to fit.
To move the cursor, you can either use the cursor keys, or the Spectrum equivalents 5/6/7/8, or (similarly) h/j/k/l. For faster movement, the Page Up, Page Down, Home, and End keys are supported and do what you'd expect. To select a file or directory, press Enter. To abort, press Esc.
With both selectors, do bear in mind that all files are shown, whether Fuse would be able to load them or not.
MONITOR/DEBUGGER¶
Firstly, note that the vast majority of this section applies only if you're using the GTK+ user interface; if you're using one of the widget user interfaces, you'll get a very basic monitor which shows the current values of the registers and allows you to single step through execution or continue.If you are using the GTK+ user interface, Fuse features a moderately powerful, completely transparent monitor/debugger, which can be activated via the Machine, Debugger... menu option. A debugger window will appear, showing the current state of the emulated machine: the top-left `pane' shows the current state of the Z80 and the last bytes written to any emulated peripherals. The bottom-left pane lists any active breakpoints. Moving right, the next pane shows where the Spectrum's 64K memory map (the `W?' and `C?' indicate whether each displayed chunk is writable or contended respectively). Fuse tracks the memory mapping of the overall address space in 2KB chunks but will summarise the mapped pages where they are part of the same page of the underlying memory source (e.g. 8KB page sizes in the Spectrum 128K and 4KB pages in the Timex clones' DOCK and EXROM banks).
The next pane to the right has a disassembly, which by default starts at the current program counter, although this can be modified either by the `disassemble' command (see below) or by dragging the scrollbar next to it. The next pane shows the current stack, and the final pane any `events' which are due to occur and could affect emulation. Any of these panes can be removed by use of the View menu. Below the displays are an entry box for debugger commands, and five buttons for controlling the debugger:
Evaluate
Single Step
Continue
Break
Close
Double-clicking on an entry in the stack pane will cause emulation to run until the program counter reaches the value stored at that address, while double-clicking on an entry in the `events' pane will cause emulation to run until that time is reached.
The main power of the debugger is via the commands entered into the entry box, which are similar in nature (but definitely not identical to or as powerful as) to those in gdb(1). In general, the debugger is case-insensitive, and numbers will be interpreted as decimal, unless prefixed by either `0x' or `$' when they will be interpreted as hex. Each command can be abbreviated to the portion not in curly braces.
ba{se} number
br{eakpoint} [address] [if condition]
br{eakpoint} p{ort} (re{ad}|w{rite}) port [if condition]
br{eakpoint} (re{ad}|w{rite}) [address] [if condition]
br{eakpoint} ti{me} time [if condition]
br{eakpoint} ev{ent} area:detail [if condition]
beta128:page
beta128:unpage
didaktik80:page
didaktik80:unpage
disciple:page
disciple:unpage
divide:page
divide:unpage
divmmc:page
divmmc:unpage
if1:page
if1:unpage
multiface:page
multiface:unpage
opus:page
opus:unpage
plusd:page
plusd:unpage
rzx:end
speccyboot:page
speccyboot:unpage
spectranet:page
spectranet:unpage
tape:play
tape:stop
zxatasp:page
zxatasp:unpage
zxcf:page
zxcf:unpage
In all cases, the event can be specified as area:* to catch all events from that area.
cl{ear} [address]
com{mmands} id <newline>
<debugger command> <newline>
<debugger command> <newline>
...
end
cond{ition} id [condition]
co{ntinue}
del{ete} [id]
di{sassemble} address
ex{it} [expression]
fi{nish}
i{gnore} id count
n{ext}
o{ut} port value
pr{int} expression
se{t} address value
se{t} $variable value
se{t} area:detail value
s{tep}
t{breakpoint} [options]
Addresses can be specified in one of two forms: either an absolute addresses, specified by an integer in the range 0x0000 to 0xFFFF or as a `source:page:offset' combination, which refers to a location offset bytes into memory bank page, independent of where that bank is currently paged into memory. RAM and ROM pages are indicated, respectively, by `RAM' and `ROM' sources (e.g. offset 0x1234 in ROM 1 is specified as `ROM:1:0x1234'). Other available sources are: `Betadisk', `Didaktik 80 RAM', `Didaktik 80 ROM', `DISCiPLE RAM', `DISCiPLE ROM', `DivIDE EPROM', `DivIDE RAM', `DivMMC EPROM', `DivMMC RAM', `If1', `If2', `Multiface RAM', `Multiface ROM', `Opus RAM', `Opus ROM', `PlusD RAM', `PlusD ROM', `SpeccyBoot', `Spectranet', `Timex Dock', `Timex EXROM', `uSource', `ZXATASP' and `ZXCF'. Please, note that spaces in memory sources should be escaped, e.g., `break Didaktik\ 80\ ROM:0:0x1234'. The 48K machines are treated as having a permanent mapping of page 5 at 0x4000, page 2 at 0x8000 and page 0 at 0xC000; the 16K Spectrum is treated as having page 5 at 0x4000 and no page at 0x8000 and 0xC000.
Anywhere the debugger is expecting a numeric value, except where it expects a breakpoint id, you can instead use a numeric expression, which uses a restricted version of C's syntax; exactly the same syntax is used for conditional breakpoints, with `0' being false and any other value being true. In numeric expressions, you can use integer constants (all calculations are done in integers), system variables, debugger variables, parentheses, the standard four numeric operations (`+', `-', `*' and `/'), the (non-)equality operators `==' and `!=', the comparison operators `>', `<', `>=' and `<=', bitwise and (`&'), or (`|') and exclusive or (`^') and logical and (`&&') and or (`||'). Square brackets (`[' and `]') can be used to dereference a value; for example `[0x4000]' will give the value of the first byte of the screen.
System variables are specified via an `area:detail' syntax. The available system variables are:
ay:current
z80:iff2
THE POKE FINDER¶
The `poke finder' is a tool which is designed to make the task of finding (infinite lives etc.) pokes for games a bit easier: it is similar to the `Lifeguard' utility which was available for use with the Multiface. It works by maintaining a list of locations in which the current number of lives (etc.) may be stored, and having the ability to remove from that list any locations which don't contain a specified value.The poke finder dialog contains an entry box for specifying the value to be searched for, a count of the current number of possible locations and, if there are less than 20 possible locations, a list of the possible locations (in `page:offset' format). The five buttons act as follows:
Incremented
Decremented
Search
Reset
Close
Double-clicking on an entry in the list of possible locations will cause a breakpoint to be set to trigger whenever that location is written to.
An example of how to use this may make things a bit clearer. We'll use the 128K version of Gryzor. Load the game, define keys to suit and start playing. Immediately pause the game and bring up the poke finder dialog. We note that we currently have 6 lives, so enter `6' into the `Search for' field and click `Search'. This reduces the number of possible locations to around 931 (you may get a slightly different number depending on exactly when you paused the game). Play along a bit and then (deliberately) lose a life. Pause the game again. As we now have 5 lives, replace the `6' in the `Search for' field with a `5' and click `Search' again. This then reduces the list of possible locations to just one: page 2, offset 0x00BC. This is the only location in memory which stored `6' when we had 6 lives and `5' when we had 5 lives, so its pretty likely that this is where the lives count is stored. Double-clicking on the `2:0x00BC' entry in the dialog will set the appropriate breakpoint (you may wish to open the debugger at this point to confirm this). Play along a bit more. When you next lose a life, emulation is stopped with PC at 0x91CD. Scrolling up a few addresses in the debugger's disassembly pane shows a value was loaded from 0x80BC (our hypothetical lives counter), decremented and then stored again to 0x80BC, which looks very much like the code to reduce the number of lives. We can now use the debugger to replace the decrement with a NOP (`set 0x91c9 0'), and playing the game some more after this reveals that this has worked and we now have infinite lives.
THE POKE MEMORY¶
Fuse supports multiface POKEs, allowing to modify specific memory addresses in order to cheat (infinite lives, infinite ammo, etc.).The `poke memory' dialog contains a list of recently loaded POKEs and some entry boxes for adding custom POKEs:
Bank
Address
Value
It is possible to load POKEs from an external file using the File, Open... menu option or the drag-and-drop functionality in the GTK+ and Win32 UIs. After loading a snapshot or tape, Fuse will try to automatically locate a POK file with the same file name. This means that if we open `GAME.TAP', then Fuse will try to open `GAME.POK' and `POKES/GAME.POK'. See http://www.worldofspectrum.org/POKformat.txt for more details about this file format.
POKEs loaded in the list can be activated or deactivated as the user wants and will remain in memory until a machine reset.
THE .DSK FORMAT¶
In general, disk images for the +3 Spectrum are thought of as being in DSK format. However, this is actually a slight oversimplification; there are in fact two similar, but not identical, DSK formats. (The difference can be seen by doing `head -1 dskfile': one format will start `MV - CPCEMU' and the other will start `EXTENDED').Fuse supports both the `CPCEMU' and `EXTENDED' formats.
BETA 128 EMULATION¶
Fuse supports Betadisk emulation in its Pentagon and Scorpion emulation, and also under 48K, TC2048, 128K and +2 (but not +2A) emulation if the Beta 128 interface option from the Options, Peripherals, Disk... dialog is enabled. When that option is used in 48K or TC2048 emulation the Beta 128 auto-boot in 48K machines option additionally controls whether the machine boots directly into the TR-DOS system. See the DISK FILE FORMATS section for more details on supported disk file formats.OPUS DISCOVERY EMULATION¶
By default, Fuse emulates the Opus Discovery interface with the optional 2k RAM expansion and a second 40 track single sided disk drive. See the DISK FILE FORMATS section for more details on supported disk file formats. The Opus Discovery's printer port is also emulated for output only. (See the PRINTER EMULATION section for more details.) The Opus Discovery may only be used with 16K, 48K, 128K, TC2048 and +2 (not +2A) emulation. To access disks, use the same syntax as Interface 1 and Microdrives.+D EMULATION¶
Fuse supports emulating the +D disk and printer interface. See the DISK FILE FORMATS section for more details on supported disk file formats. The +D's printer port is emulated. (See the PRINTER EMULATION section for more details.) The +D may only be used with 48K, 128K and +2 (not +2A) emulation. To access disks, you will first need to load G+DOS, by inserting a disk containing the DOS file (+SYS) and entering “RUN”. Once DOS is loaded, you can load to/from +D disks by prefixing filenames with `dn' where `n' is the number of the drive in use. For example, `LOAD d1"myfile"' would load the file named `myfile' from the emulated drive 1. Microdrive syntax may also be used.To save a snapshot, choose the Machine, NMI menu option, and then press `4' to save a 48K snapshot, or `5' to save a 128K snapshot. When saving a 128K snapshot, you must then press Y or N to indicate whether the screen changed while saving the snapshot, to finish saving. You can also choose `3' to save a screenshot to disk. Holding Caps Shift together with any of these options will cause the +D to save to the `other' drive to the one used last.
Options `1' and `2' allow screenshots to be printed (in monochrome, in normal and large formats respectively) if printer emulation is enabled. For saving and loading of snapshots, and saving of screenshots to disk, G+DOS must be loaded first, but printing of screenshots can be performed without loading G+DOS.
Finally, `X' will return from the NMI menu.
DIDAKTIK 80 EMULATION¶
Fuse supports Didaktik 80 (and Didaktik 40) emulation. It emulates the original version of the Didaktik 80, running MDOS 1 and with a WD2797 floppy controller. See the DISK FILE FORMATS section for more details on supported disk file formats. The Didaktik 80 may only be used with 16K, 48K and TC2048 emulation. To press the Didaktik 80's `SNAP' button, choose the Machine, Didaktik SNAP menu option.DISCIPLE EMULATION¶
Fuse supports emulating the DISCiPLE disk and printer interface, although it does not currently support emulation of the Sinclair Network, or support emulation of a DISCiPLE attached to a 128K machine. See the DISK FILE FORMATS section for more details on supported disk file formats, which are the same as for +D emulation as described above. The DISCiPLE's printer port is emulated. (See the PRINTER EMULATION section for more details.) The DISCiPLE may only be used with 48K emulation at present. To access disks, you will first need to load GDOS, by inserting a disk containing the DOS file (SYS) and entering “RUN”. Once DOS is loaded, you can load to/from DISCiPLE disks by prefixing filenames with `dn' where `n' is the number of the drive in use. For example, `LOAD d1"myfile"' would load the file named `myfile' from the emulated drive 1. Microdrive syntax may also be used.Snapshots can be saved in a similar manner to that of the +D as described above, but note that GDOS on the DISCiPLE contains a bug which causes corruption as soon as the NMI button is pressed, affecting saving of snapshots, and also loading of snapshots that were originally saved with a +D or SAM Coupé. This will cause corruption even when a screenshot is printed, or if the menu is never even entered in the first place (due to Caps Shift not being pressed down, as is required for the DISCiPLE), provided that GDOS is loaded. This bug is not present in G+DOS on the +D. (Note: this was caused by saving/restoring the AF register twice in the NMI handler, where both AF and the AF' shadow register should have been saved/restored.)
The NMI button works slightly differently on the DISCiPLE than on the +D. Caps Shift must be held down whilst pressing the NMI button, and there is no `X' option to exit the menu. Also, printing of screenshots requires GDOS to be loaded. Depending on the UI that you're using, holding down Caps Shift whilst choosing the Machine, NMI menu option may be slightly tricky, or even impossible. For the GTK+ UI, ensure that the Shift key is held before entering on the Machine menu. For the widget UI, it does not seem possible to perform this action.
DISK FILE FORMATS¶
Fuse supports several disk image formats in its +D, Didaktik, DISCiPLE and Beta 128 emulation.For reading:
.UDI
This is the only image format which can store all the relevant information of the recorded data on a magnetic disk, so it can be used for any non standard disk format. Fuse can read all extended track types too (mixed FM/MFM, or tracks with `WEAK' data or even compressed tracks too).
.FDI
.MGT .IMG
.SAD
.D80 .D40
.TRD
.SCL
.TD0
.DSK
.OPD .OPU
Fuse supports most of the above formats for writing: .UDI .FDI .MGT .IMG .SAD .D80 .D40 .TRD .SCL .OPD .OPU .DSK (only the old CPC format).
You can save disk images with any output format, just select the appropriate extension. (e.g. `elite3.udi' to save as an UDI file). If the appropriate libraries were available when libspectrum(3) was compiled, than Fuse will try to create UDI images with compressed tracks to save disk space. There is a .LOG `image' format for debugging purpose. This is a plain text file that contains three dumps of the loaded disk image at different details. Not all image formats can store all disk images. You cannot save a disk image with an inappropriate format that loses some information (e.g. variable track length or sector length).
WEAK DISK DATA¶
Some copy protections have what is described as `weak/random' data. Each time the sector is read one or more bytes will change, the value may be random between consecutive reads of the same sector. Two disk image formats (Extended DSK and UDI) can store this type of data. Fuse can read and use weak sector data from EDSK and UDI files when present, and can save back weak sector data to UDI image format.MOVIE RECORDING¶
Fuse can save movies with sound in a specific file format (FMF). This recording is very fast, and has a moderate size, but you need to use the fmfconv(1) program in fuse-utils(1) to convert into regular video and/or audio files. The --movie-compr option allows you to set the compression level to None, Lossless or High. If zlib(3) is not available, only None is valid. The default when Zlib is available is Lossless. Recording a movie may slow down emulation, if you experience performance problems, you can try to set compression to None.Fuse records every displayed frame, so by default the recorded file has about 50 video frame per second. A standard video has about 24–30/s framerate, so if you set Options/General/Frame rate 1:n or the equivalent --rate command line option to 2 than recording frame rate reduces about 25/s. The exact frame rate depends on the Z80 clock frequency which varies depending on the specific emulated machine.
Note: You can see all of the “gfx” effects only if the Fuse frame rate option is set to 1, but in most cases you can safely use 2. Also, movie recording stops if the emulated machine is changed.
The recorded sound sampling rate and the channel number is equal with the Fuse generated sound sampling rate (44100 Hz by default) and channel number (mono by default). The common sampling frequencies in standard video files are 44100 Hz and 48000 Hz. If you use --sound-freq command line option you can change the frequency.
You can record stereo sound if you use AY stereo separation or the equivalent --separation command line switch.
You can use fmfconv(1) to convert recorded movie file into a standard video file.
Examples
fuse --movie-start output.fmf --rate 2 --sound-freq 44100 --separation ACB
start video recording about 25/s video frame rate and 44100 Hz sampling frequency stereo sound default compression level.
COMPRESSED FILES¶
Assuming the appropriate libraries were available when libspectrum(3) was compiled, snapshots, tape images, dock cartridges and input recording files (RZX) can be read from files compressed with bzip2(3), gzip(3) or zip(3) just as if they were uncompressed. In the zip case, only the first supported file found inside the archive is loaded. There is currently no support for reading compressed +3, DISCiPLE/+D or Beta disk images.BUGS¶
Selecting a startup filter doesn't work properly with user interfaces other than SDL, Win32 and GTK+.Changing virtual consoles when using SVGAlib for joystick support causes Fuse to exit. If this is a problem, compile Fuse with the `--disable-ui-joystick' option.
The poke finder can't search outside `normal' RAM.
The libao file output devices not work properly with the GTK+ UI. No error reporting, but the created file does not contain any sound data. If you use a `weak' machine alsa09 makes a lot of clicks and pops and will output `ALSA: underrun, at least 0ms.' error messages.
FILES¶
~/.fusercSEE ALSO¶
bzip2(3), fmfconv(1), fuse-utils(1), gzip(3), libspectrum(3), ogg123(1), xspect(1), xzx(1), zip(3).The comp.sys.sinclair Spectrum FAQ, at
http://www.worldofspectrum.org/faq/index.html.
AUTHOR¶
Philip Kendall (philip-fuse@shadowmagic.org.uk).Matan Ziv-Av wrote the SVGAlib and framebuffer UIs, the glib replacement code, and did some work on the OSS-specific sound code and the original widget UI code.
Russell Marks wrote the sound emulation and OSS-specific sound code, the joystick emulation, some of the printer code, and the original version of this man page.
John Elliott's lib765 and libdsk libraries were used for the original +3 disk and disk image support.
Ian Collier wrote the ZX Printer emulation (for xz80).
Darren Salt wrote the original versions of the code for +3 emulation, SLT support, MITSHM support (for the Xlib UI), TZX raw data blocks, RZX embedded snapshots and compression, the Kempston mouse emulation and made many improvements to the widget code.
Alexander Yurchenko wrote the OpenBSD/Solaris-specific sound code.
Fredrick Meunier wrote the TC2048, TS2068, Pentagon and Spectrum SE support, the CoreAudio sound code, as well as maintaining the OS X port and importing the graphics filter code.
Ludvig Strigeus and The ScummVM project wrote the original graphics filter code.
Dmitry Sanarin wrote the original Beta disk interface emulation (for Glukalka).
Witold Filipczyk wrote the TC2068 support.
Matthew Westcott wrote the AY logging code and the DivIDE emulation.
Marek Januszewski wrote various bits of code to make Fuse work under Win32, including the DirectDraw user interface.
Sergio Baldoví made many improvements to the Win32 UI.
Stuart Brady wrote the DISCiPLE and +D emulation, Scorpion emulation and the HP-UX sound code.
Garry Lancaster wrote the 8-bit IDE, ZXATASP and ZXCF interface emulations.
Gergely Szasz wrote the Interface 1, Microdrive emulation and Didaktik 80 emulation, the PAL TV scalers, the TV 3x scaler, the movie logging code, the ALSA and libao sound code, the µPD765 disk controller used in the +3 and made many improvements to the widget code.
Michael D Wynne wrote the original Opus disk interface emulation (for EightyOne).
Patrik Persson wrote the SpeccyBoot emulation.
9th December, 2018 | Version 1.5.7 |