|
PARAMETERS
| load | snapshot (Z80, SNA) or cartridge (ROM) to run,
tape (TAP) to autoload.
| | tape | tape image (TAP).
| | rom | alternative ROM image.
| | if1rom | Interface 1 ROM image.
Device itself is not emulated.
| | focus | grab focus on start (default 1).
| | ay | enable AY (default 0).
| | muted | no sound on start (default 0).
| | volume | volume level (0..100, default 40).
| | mask | overlay image (eg. tv.png). Slows down.
| | arrows | redefine arrow keys.
|
You may specify file within ZIP using
fragment identifier
(eg. name.zip#game.tap). Otherwise first suitable file will be selected.
The "arrows" parameter consists of up to four chars representing
keys (in LRUD order). Use lowercase letters for alpha keys,
C [Caps Shift], S [Symbol Shift], _ [Space], E [Enter].
METHODS
| reset() | reset Spectrum.
| | pause(y) | pause (true or false).
| | load(file) | load snapshot or tape.
| | tape(file) | insert tape. (pass null to remove)
| | save() | return data URL
to current state (Z80 snapshot).
| | mute(y) | silence (true or false).
| volume() volume(v) | get/set volume level (0..100).
| | state() | emulator state bit 0:paused, 1:loading, 2:muted.
| | mask(file) | change overlay. (pass null to clear)
|
KEYS
| Shift,[ | caps shift
| | Ctrl,Alt,] | symbol shift
| | Tab | extended mode
| | Esc | edit
| | CtrlDel | reset Spectrum
| | F11 | mute
| | PgUp,PgDn | change sound volume
| | Pause | toggle pause
|
| |
|
HTML example:
<applet name=qaop archive=qaop.jar code=Qaop width=320 height=256>
<param name=load value=demo.tap>
<param name=ay value=1>
</applet>
(Don't forget to upload qaop.jar on the server)
Mime types
Qaop recognizes following MIME types:
| application/zip | ZIP archive
| | application/x.zx.rom | ROM image
| | application/x.zx.tap | TAP file
| | application/x.zx.sna | SNA snapshot
| | application/x.zx.z80 | Z80 snapshot
|
(append .gz for gzipped variants; Content-Encoding is also recognized)
As a fallback, type recognition based on filename extension is used.
| |