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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for skoolkit-9.3-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a3bfa5ce72e150c367f38eb6b219c714f2047d92e2029d02e9d049d6b42a173 |
|
MD5 | 31d40407c172bc35f0e64ecbdfd88742 |
|
BLAKE2b-256 | a12ef4a11dbee0e83a518be621c86836464004fba0808db898098a6ddc8dd08b |
Hashes for skoolkit-9.3-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5674c27d1439149ed8387859d8b34332a0720eb09d732e157edfa0e105119639 |
|
MD5 | 590ea75ccf90d67f354058fcba83a2a3 |
|
BLAKE2b-256 | 6cd78706f4a518ebbf3cc483577e9af6496bd24c7078a5f4150f5ad1cb4eee31 |
Hashes for skoolkit-9.3-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5775ea19accb7c8084db20a08577942d387e7ef82837a0b85a8b7093001e2da6 |
|
MD5 | 7684609a37067e039446734a5bfc13d4 |
|
BLAKE2b-256 | dcf192163bffe687d11c43a624e78ceae17ca342d65a171fbccae45cf4d76a93 |
Hashes for skoolkit-9.3-cp312-cp312-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35d9bcc7de6fc285547d175c0b173570e6fb60035728f2d6233fac71cb99ee93 |
|
MD5 | dd42a61a7a47fa6a9d855a08984f9d9f |
|
BLAKE2b-256 | a7dae501cb9fd525009e9188abf230f29f83000d34486016d17eb49c0a5e7b42 |
Hashes for skoolkit-9.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4295539b74815e907d80d2f881be916f6d627a075ddd2392000313e4bdd26e0e |
|
MD5 | 399156d5ebd7de1fe432423b14e3988b |
|
BLAKE2b-256 | 2e7e55d4f49419e29a960bdefd3c6e55a85abc142ea58a2106169794e866e206 |
Hashes for skoolkit-9.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a67d6953e31489775de62649a0f10d3bc7e0d2306229600f17374798280ed580 |
|
MD5 | bf03b58d09213611dd2e8cdac51c14dd |
|
BLAKE2b-256 | b6b14d55c08c7003e19ea1740c6561c375e31ca5e9d68c9194f3ced868e9adbf |
Hashes for skoolkit-9.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dda81a5c063f5d5f031e29f0eb9b1618b5c5148bd8c9e29b92ff3c18fa12873 |
|
MD5 | b52f7d1eebff360c89fdfd6eb6e46cb9 |
|
BLAKE2b-256 | cf2c65d586c8d1ec0503024085ed8b8344a93389de0f7aa622b456886857cee7 |
Hashes for skoolkit-9.3-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 818af80925c76bfeaa9b77aa7657fbc7696639ca557a4c6d92e3242eb04c245f |
|
MD5 | ce8aaada5e27c107a55cbed0b328ee5b |
|
BLAKE2b-256 | cf12215244049ce305e6b50d269061c6a43df55533633d9d463be4863ad1cb2b |
Hashes for skoolkit-9.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 890704c6588535dd81a91ce7998582c789d8f24d8b11de7cb9568597976f0e6b |
|
MD5 | 156dfb8cab6dcec3c19d5cbe163ed45b |
|
BLAKE2b-256 | fb5e989597dbe97dfbbf2510435f67b8df8a5450ae92d3281e2ba1cd51712202 |
Hashes for skoolkit-9.3-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01e30e0ac8d82bf326a88817e90e410576806cdc6891797bb122c1efaf2c54e9 |
|
MD5 | df5f264d31c7270c237e3179f08f202c |
|
BLAKE2b-256 | b2a48aad3a8e5dcbf76ebf73d917556acd43796c21c2b131866286e99cf66c3c |
Hashes for skoolkit-9.3-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2216a737ba3fade349a8c0dd564debf1d0fc29e7794effb96c5fca5cb35c69be |
|
MD5 | 55d30d635e8d618772b885e6473f41ac |
|
BLAKE2b-256 | 5f6012a1e55bfb010cbeb58d2124f96ca0e1e9cc2b2df2a6cb8558a970b13815 |
Hashes for skoolkit-9.3-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7838ddc5ffdf0ebd8ce81274105ff43f0fe44a64974756a18fe1083ba3cc60f7 |
|
MD5 | 9dcbbfaf4ad1e7f7f127187001ee8bd9 |
|
BLAKE2b-256 | d99ba153aa90f9edd9ce19ddff0995b0c59081cde94ee1e3b07bbac167d93295 |
Hashes for skoolkit-9.3-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2cf19009bc75a328a306c77e0372e2e6a8209c05319b60ac59a6c620de044b5 |
|
MD5 | 35c6c056ef953e924d2017e6675a479d |
|
BLAKE2b-256 | 09c53aaf78f9165ee8cd364404f3df62580e850bd875f486f4965793f184fb26 |
Hashes for skoolkit-9.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52563bbb56cffa43e9d26253fe71a7d359d959fbc062800753a1855923997e0e |
|
MD5 | e180c3bef6c222e709a82f9aa8a6fdf9 |
|
BLAKE2b-256 | cc80416b3e2e4f53af5ef92fba9a5009f20f1e500ff81da9e67730f929120dc5 |
Hashes for skoolkit-9.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 916593a0b4b0a92c77913abca8ccd34e207d5047373b0bcf4f6230996e5e119d |
|
MD5 | c43d69a0913b5d2cd0124414b29c5f6c |
|
BLAKE2b-256 | e67cc84f16245bbef10de384e2b90fd3f4861a5d0a1dcb826c30040f19b1cd52 |
Hashes for skoolkit-9.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16f6345eae015009c1933fa00168a8da21b77dad66bd186c708abb9edd1f9a1b |
|
MD5 | 04318647e4d45c0815a9bbaa04673551 |
|
BLAKE2b-256 | b3b5430263f03da4c039533863065ea08649fcf5d92d48d57ad7aef856efa92f |
Hashes for skoolkit-9.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3cd4a830413936b9fb6337a6b780cda344d05ec15ba8756a9e5ec3500c5c61a |
|
MD5 | 2267e94a081978793280ff88483e90e7 |
|
BLAKE2b-256 | 2183286569dda563e2c5709ee5fe8e0afad57f58c89d22af446cfac9d6713533 |
Hashes for skoolkit-9.3-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e30c230ff5ca8435529078e12740fd0164926e778042485e0de96634ff63c47 |
|
MD5 | b80778c8070700ce14652c3e789a8ec6 |
|
BLAKE2b-256 | 7b0e492c95f974e82bb7722ba051365b324d2024c8140a9bce0297f87426ccc7 |
Hashes for skoolkit-9.3-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dde63d5627eb1e0808c171cfa782459d27ef2b97abab658c3ed874ec3c11eee |
|
MD5 | b2ab0b27c387283765e198dd56075e1f |
|
BLAKE2b-256 | 7d4bf55ba43b8bde7f2e89972e49584e789b2efb04532b6e3cecf872530ef27d |
Hashes for skoolkit-9.3-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 438fd2a1f3003c01adbefe8cac78d9af65e8ea8a966d5434c1371a63e28092d2 |
|
MD5 | d3764c9dd7bdccc3a50a6a9b4d010cc8 |
|
BLAKE2b-256 | a47d5109d5a107b0458114f003cfd9dbbf845694fa2b3d9ffee7a2d32c12da1a |
Hashes for skoolkit-9.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a75f622ba3b6399b2dc076d44be8992163091b5dd602725615685f3c295843b |
|
MD5 | 06d5bc924ca5b5613ce83acca850ead3 |
|
BLAKE2b-256 | 2dcb80399936aa4e353efe7d60634098d4c8316bd7c905642b6b25ad4c8a87ba |
Hashes for skoolkit-9.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1e3be97884c2941ea304e449cac9dee0b30ec9c2b439e87f788f13299d39dc3 |
|
MD5 | b53b8b3d381aa2888b1ff0b736bb6047 |
|
BLAKE2b-256 | c3262798c755099c2063a62eb01e38545a1f739e9eb3e329bb76cf936da734c5 |
Hashes for skoolkit-9.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92a31c0307b963173a21de37c2febd324f58cef166ad3b340a171e30662453da |
|
MD5 | 8c86bcc5acf14638efa4dbad9779f2bd |
|
BLAKE2b-256 | 8949ee52558219b53f02dee0a09d6b0c27ee290fa05a3c94824c85caa13aeb4e |
Hashes for skoolkit-9.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18ba171c5a005414cf8aeb60514fbeb4cd19db3e6fe74fff8379f0ad160a1b8f |
|
MD5 | 425548ea217ce15975ddf66a65b488c3 |
|
BLAKE2b-256 | a5919ed6fce8789a832911a28711b8e56249dc018db39563758ba2f0094e9040 |
Hashes for skoolkit-9.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0d37407f98c41d2046f047e43bdf630209dab293ded29ffbceea6afe7b09b2f |
|
MD5 | f35e4d0b4a52774f0ead57399c4bbd23 |
|
BLAKE2b-256 | 2fe2b3bb94f44ed65913aee8ab06bd3c0a5bdc7d67a1f5ad803b1cb57ccab2a7 |
Hashes for skoolkit-9.3-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6312e2db81fe793ca96cde099887fb294685518802035330c628e7299e4cdb4e |
|
MD5 | 371ead7fccb201e5d400c1a91c15d33b |
|
BLAKE2b-256 | c7d0c79113f947c0c17466eb340262107d481dbcacb1e4402da900c81718ff16 |
Hashes for skoolkit-9.3-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 179138b227718fbb01ce3bf824aa1557c82c8f79d351d002149f3f4dd0608794 |
|
MD5 | a2cac16cbfe7633d60f891f9dab57deb |
|
BLAKE2b-256 | 08306a639d7b5b9b5b011427e74ad7eda16a556f78de7b92e5744f96914cfc5f |
Hashes for skoolkit-9.3-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c62794c2f22ce879922a7d4b941b840ff5ab2af27354349383405d7250bbfaa2 |
|
MD5 | c3d218380da015d1778c325cf0603afc |
|
BLAKE2b-256 | eec44936a0ca54fede7b8efedf0ff6fe89899fad39a9e263ac3929d50eb24bca |
Hashes for skoolkit-9.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0120a95d43e13744e67a416a11eec251fc1baf19902edefd05cb9e095d159c9 |
|
MD5 | 64a31a544327b31caa55155690154278 |
|
BLAKE2b-256 | 69521c37cc7eba9be9f2e3c1c74f31efb3c0a8da188c3a3f58c227b6854b983c |
Hashes for skoolkit-9.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c56daaa8ce6a27a454f1965ba906cd1058ee4d910576874852b21cf88c74c24 |
|
MD5 | 9d08c63a897f1462e6b9d2cd952377af |
|
BLAKE2b-256 | 973cc3933dd746bba3ce2dc22bce20aa59583b024d79bb43e04a682ca062042e |
Hashes for skoolkit-9.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cda4abb7055de2c006e9b6065ae71ac411e904b30fb0057121edecb2d37253d2 |
|
MD5 | 5307c6c5e3401f1ad2d30862c176d5cb |
|
BLAKE2b-256 | 7322f3b15194e6d8318840323c8a5240af0fbdf1772bcfb2665f925cc5789528 |
Hashes for skoolkit-9.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 959d51d18f4df2faa4959395f165aeb7451889524695479d7609bacf73bc2e79 |
|
MD5 | 45e616e8dafba122ac85c72fc174b8fd |
|
BLAKE2b-256 | 153c5bcca5805412af4d2e13e3cec357358c27df11c91269e9beed9260b3acf8 |
Hashes for skoolkit-9.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c545d20ac3a1d015438f5b21691f01d7c22e866beccbc816b1c63d28775b7114 |
|
MD5 | d8c76d7e01f386058981e81f3f356295 |
|
BLAKE2b-256 | ea80d5531fb54e1bcfcf17ca2d864198fe34f90bb8a45e2389289b7d53f37706 |
Hashes for skoolkit-9.3-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a078c7443e5ff1408733cd43971cba3bf3447460b5bd45b1a8cff7b45ff51a5e |
|
MD5 | 63da2ae1163316c289cb8befb52f9c9b |
|
BLAKE2b-256 | c34df70e937feeb6d726e526439a22c71d1e3093ea330103d7323958afd21c79 |
Hashes for skoolkit-9.3-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6425b7a46ea78a7b8609bcfda81beb39db02cc7a529fa91f7daa8607b1711c7 |
|
MD5 | b312ae278c1bbbb335650dd460edb6c7 |
|
BLAKE2b-256 | 68d85a66b2c56a2fa206399504f4f0deffbd0027c636f45920df7e254c040905 |
Hashes for skoolkit-9.3-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09f24e6b72d2b517d3adca60e3cd178092ba75eda1f4a4b91a3c791c55198858 |
|
MD5 | 9c7cb84b46be756a9dcf4cdb9e2ea699 |
|
BLAKE2b-256 | 8fba158acff81f7bcecf76d99d45c13b771309c91039bf4f9fa266355af9ea76 |
Hashes for skoolkit-9.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14424ac0d94be14475122d7fc207b14d6b1f31a431aaf6c7cdef52be522d10e9 |
|
MD5 | e08f7d6eee03fbb15c5c8ce89f62a52d |
|
BLAKE2b-256 | ff9e45430de3f9172ec86525c204198cbf93905ba54b03c4a83e617645fcd0d4 |
Hashes for skoolkit-9.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ee03e57a625ba49f07579a32cdc27e4fa56d9b89e57a57774095409ca5b10a1 |
|
MD5 | f79e1a4c0f0192e5c244fb8fd6fc1821 |
|
BLAKE2b-256 | d886a3f3f90acc6f284be14b02b3c804e1a42418521ec2f3a5de8d37da8a1261 |
Hashes for skoolkit-9.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b59424a5825c68abc54c0f344eea6597b5f1859b95cc8f34e273312f5110e6e |
|
MD5 | 5afe8b7e492e2fb7fda0b506fb72a0ba |
|
BLAKE2b-256 | 3820e202b1f08f7ddf52dfb973b97b4d802f1fad092466d4d5a1f180bf321eea |
Hashes for skoolkit-9.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63025cbaaa90c7a32adbb7349434444c872eec3bb216df7f754628239a13ab47 |
|
MD5 | 8ec4fc6a14c247ad51ff0d5524347d23 |
|
BLAKE2b-256 | de4cde8db5d5cce302c9fcf8c89ada5d8ab67bcb1ce4ed7d0c6bbe674446de4c |