-
Notifications
You must be signed in to change notification settings - Fork 4
/
b.cmd
27 lines (21 loc) · 1.2 KB
/
b.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@echo off
SETLOCAL
if [%PYTHON_PATH%]==[] (
set PYTHON_PATH=d:\Soft\Python3
)
REM These two steps were run only once, in the beginning, after running the game while capturing
REM a profile. THis profile gave an initial guess at what's data and what's code.
REM Generate a best-guess map file from the profile session
REM fuse-utils-1.3.2-win32\profile2map.exe s1.profile s1.map
REM Generate an initial control file from the best-guess map
REM %PYTHON_PATH%\python skoolkit-6.0\sna2skool.py -H -g s1.ctl -M s1.map s1.z80
REM these two are the main two steps to run while iterating on the control file
%PYTHON_PATH%\python skoolkit-6.0\sna2skool.py -h -H -c s1.ctl s1.z80 > s1.skool
%PYTHON_PATH%\python skoolkit-6.0\skool2asm.py s1.skool > s1.asm
REM This generates HTML documentation
%PYTHON_PATH%\python skoolkit-6.0\skool2html.py s1.skool
REM these generate the executable z80 snapshot
sjasmplus-win64\sjasmplus.exe --sym=s1_gen.sym s1.sjasm
%PYTHON_PATH%\python skoolkit-6.0\bin2sna.py -s 48517 -p 23346 s1_gen.bin
REM %PYTHON_PATH%\python skoolkit-6.0\snapmod.py -r iy=51394 -r ix=57478 -s iff=0 -f s1_gen.z80
%PYTHON_PATH%\python skoolkit-6.0\snapmod.py -s border=0 -s iff=0 -f s1_gen.z80