If you want to use SkoolKit to generate ASM versions of the Skool Daze, Back to Skool or Contact Sam Cruise disassemblies (the source skool and ref files for which can be downloaded here), and you want to modify and re-assemble them, you will need to use a supported assembler. At the time of writing, the assemblers listed below are known to work with the ASM format generated by skool2asm.py:
The following sections give examples of how to use each of these assemblers to create binary (raw memory) files or tape files that can be used with an emulator.
First, create an ASM version of the Skool Daze disassembly:
$ skool2asm.py sd.skool > sd.asm
Then use pasmo to create a binary file thus:
$ pasmo sd.asm sd.bin
To create a TAP file from sd.bin, use the bin2tap.py utility, included with SkoolKit:
$ bin2tap.py sd.bin
The resultant TAP file, sd.tap, can be loaded into an emulator, and the game will start automatically.
The same procedure applies to Back to Skool:
$ skool2asm.py bts.skool > bts.asm
$ pasmo bts.asm bts.bin
$ bin2tap.py bts.bin
The resultant TAP file, bts.tap, can be loaded into an emulator, and the game will start automatically.
The same procedure also applies to Contact Sam Cruise:
$ skool2asm.py csc.skool > csc.asm
$ pasmo csc.asm csc.bin
$ bin2tap.py csc.bin
The resultant TAP file, csc.tap, can be loaded into an emulator, and the game will start automatically.
First, create an ASM version of the Skool Daze disassembly:
$ skool2asm.py sd.skool > sd.asm
Then create a file called sd.sjasm with the following contents:
; SjASMPlus source file for sd.asm
device zxspectrum48
include sd.asm
savebin "sd.bin",24573,65536-24573
Run sjasmplus on this source file:
$ sjasmplus sd.sjasm
and a binary file called sd.bin will be created. To create a TAP file from sd.bin, use the bin2tap.py utility, included with SkoolKit:
$ bin2tap.py sd.bin
The resultant TAP file, sd.tap, can be loaded into an emulator, and the game will start automatically.
The same procedure applies to Back to Skool, except that the source file, bts.sjasm, should look like this:
; SjASMPlus source file for bts.asm
device zxspectrum48
include bts.asm
savebin "bts.bin",23805,65536-23805
The same procedure also applies to Contact Sam Cruise, except that the source file, csc.sjasm, should look like this:
; SjASMPlus source file for csc.asm
device zxspectrum48
include csc.asm
savebin "csc.bin",20637,65536-20637
z80asm will not work on the ASM version of the Skool Daze disassembly unless, at the very least, the @ssub substitutions and the @ofix fixes are applied (see ASM modes and directives):
$ skool2asm.py -s -f1 sd.skool > sd-sf1.asm
Then a binary file can be created thus:
$ z80asm -r5ffd -b sd-sf1.asm
To create a TAP file from this binary file, use the bin2tap.py utility, included with SkoolKit:
$ bin2tap.py sd-sf1.bin
The resultant TAP file, sd-sf1.tap, can be loaded into an emulator, and the game will start automatically.
z80asm will not work on the ASM version of the Back to Skool disassembly unless, at the very least, the @ofix fixes are applied (see ASM modes and directives):
$ skool2asm.py -f1 bts.skool > bts-f1.asm
Then a TAP file, bts-f1.tap, can be created thus:
$ z80asm -r5cfd -b bts-f1.asm
$ bin2tap.py bts-f1.bin
A TAP file for Contact Sam Cruise, csc.tap, can be created thus:
$ skool2asm.py csc.skool > csc.asm
$ z80asm -r509d -b csc.asm
$ bin2tap.py csc.bin