Skip to main content

A suite of tools for creating disassemblies of ZX Spectrum games

Project description

SkoolKit is a collection of utilities that can be used to disassemble a Spectrum game (or indeed any piece of Spectrum software written in machine code) into a format known as a skool file. Then, from this skool file, you can use SkoolKit to create a browsable disassembly in HTML format, or a re-assemblable disassembly in assembly language. So the skool file is - from start to finish as you develop it by organising and annotating the code - the common ‘source’ for both the reader-friendly HTML version of the disassembly, and the developer- and assembler-friendly version of the disassembly.

Features

With SkoolKit you can:

  • use sna2ctl.py to generate a control file (an attempt to identify routines and data blocks by static analysis) from a snapshot (SNA, SZX or Z80) or raw memory file

  • enable sna2ctl.py to generate a much better control file that more reliably distinguishes code from data by using a code execution map produced by an emulator or rzxplay.py

  • use sna2skool.py along with this control file to produce a disassembly of a snapshot or raw memory file

  • add annotations to this disassembly (or the control file) as you discover the purpose of each routine and data block

  • use skool2html.py to convert a disassembly into a bunch of HTML files (with annotations in place, and the operands of CALL and JP instructions converted into hyperlinks)

  • use skool2asm.py to convert a disassembly into an assembler source file (also with annotations in place)

  • use skool2ctl.py to convert a disassembly back into a control file (with annotations retained)

  • use skool2bin.py to convert a disassembly into a raw memory file

  • use tap2sna.py to convert a PZX, TAP or TZX file into a ‘pristine’ Z80 or SZX snapshot

  • use snapinfo.py to analyse a snapshot or raw memory file and list the BASIC program it contains, show register values, produce a call graph, find tile graphic data, find text, or find sequences of arbitrary byte values

  • use trace.py to trace the execution of machine code in a snapshot or raw memory file

  • use rzxplay.py to trace the execution of machine code in an RZX file, and produce a code execution map for sna2ctl.py

  • use tapinfo.py to analyse the blocks in a PZX, TAP or TZX file, and list the BASIC program it contains

  • use rzxinfo.py to analyse the blocks in an RZX file, and extract snapshots from it

  • use bin2tap.py to convert a snapshot or raw memory file into a PZX or TAP file

  • use bin2sna.py to convert a raw memory file into a Z80 or SZX snapshot

  • use snapmod.py to modify the register values or memory contents in a Z80 or SZX snapshot

  • use sna2img.py to convert graphic data in a disassembly, SCR file, snapshot or raw memory file into a PNG image

In an HTML disassembly produced by skool2html.py you can also:

  • use the image macros to build still and animated PNG images from graphic data

  • use the #AUDIO macro to build WAV files for sound effects and tunes

  • use the #R macro in annotations to create hyperlinks between routines and data blocks that refer to each other

  • use [Bug:*], [Fact:*] and [Poke:*] sections in a ref file to neatly render lists of bugs, trivia and POKEs on separate pages

For a demonstration of SkoolKit’s capabilities, take a look at the complete disassemblies of Skool Daze, Back to Skool, Contact Sam Cruise, Manic Miner, Jet Set Willy and Hungry Horace.

Quick start guide

SkoolKit includes fairly detailed documentation, but if you want to get up and running quickly, here goes.

To convert a SNA, Z80 or SZX snapshot of a Spectrum game into a skool file (so that it can be converted into HTML or assembly language):

$ sna2skool.py game.z80 > game.skool

To split the disassembly up into code and data blocks, you’ll need a control file.

To turn this skool file into an HTML disassembly:

$ skool2html.py game.skool

To turn it into a file that can be fed to an assembler:

$ skool2asm.py game.skool > game.asm

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skoolkit-9.4.tar.gz (1.3 MB view hashes)

Uploaded Source

Built Distributions

skoolkit-9.4-cp312-cp312-win_amd64.whl (432.8 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

skoolkit-9.4-cp312-cp312-win32.whl (429.6 kB view hashes)

Uploaded CPython 3.12 Windows x86

skoolkit-9.4-cp312-cp312-musllinux_1_1_x86_64.whl (639.7 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

skoolkit-9.4-cp312-cp312-musllinux_1_1_i686.whl (610.9 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

skoolkit-9.4-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (628.5 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

skoolkit-9.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (611.8 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

skoolkit-9.4-cp312-cp312-macosx_11_0_arm64.whl (440.3 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

skoolkit-9.4-cp312-cp312-macosx_10_9_x86_64.whl (440.1 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

skoolkit-9.4-cp311-cp311-win_amd64.whl (432.3 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

skoolkit-9.4-cp311-cp311-win32.whl (429.1 kB view hashes)

Uploaded CPython 3.11 Windows x86

skoolkit-9.4-cp311-cp311-musllinux_1_1_x86_64.whl (633.8 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

skoolkit-9.4-cp311-cp311-musllinux_1_1_i686.whl (605.5 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

skoolkit-9.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (621.0 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

skoolkit-9.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (603.0 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

skoolkit-9.4-cp311-cp311-macosx_11_0_arm64.whl (440.2 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

skoolkit-9.4-cp311-cp311-macosx_10_9_x86_64.whl (439.4 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

skoolkit-9.4-cp310-cp310-win_amd64.whl (432.3 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

skoolkit-9.4-cp310-cp310-win32.whl (429.1 kB view hashes)

Uploaded CPython 3.10 Windows x86

skoolkit-9.4-cp310-cp310-musllinux_1_1_x86_64.whl (631.7 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

skoolkit-9.4-cp310-cp310-musllinux_1_1_i686.whl (603.6 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

skoolkit-9.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (620.3 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

skoolkit-9.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (602.3 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

skoolkit-9.4-cp310-cp310-macosx_11_0_arm64.whl (440.2 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

skoolkit-9.4-cp310-cp310-macosx_10_9_x86_64.whl (439.4 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

skoolkit-9.4-cp39-cp39-win_amd64.whl (432.4 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

skoolkit-9.4-cp39-cp39-win32.whl (429.1 kB view hashes)

Uploaded CPython 3.9 Windows x86

skoolkit-9.4-cp39-cp39-musllinux_1_1_x86_64.whl (631.1 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

skoolkit-9.4-cp39-cp39-musllinux_1_1_i686.whl (603.0 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

skoolkit-9.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (619.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

skoolkit-9.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (601.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

skoolkit-9.4-cp39-cp39-macosx_11_0_arm64.whl (440.2 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

skoolkit-9.4-cp39-cp39-macosx_10_9_x86_64.whl (439.4 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

skoolkit-9.4-cp38-cp38-win_amd64.whl (432.4 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

skoolkit-9.4-cp38-cp38-win32.whl (429.4 kB view hashes)

Uploaded CPython 3.8 Windows x86

skoolkit-9.4-cp38-cp38-musllinux_1_1_x86_64.whl (635.6 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

skoolkit-9.4-cp38-cp38-musllinux_1_1_i686.whl (607.3 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

skoolkit-9.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (624.5 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

skoolkit-9.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (606.4 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

skoolkit-9.4-cp38-cp38-macosx_11_0_arm64.whl (440.0 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

skoolkit-9.4-cp38-cp38-macosx_10_9_x86_64.whl (439.4 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page