=============================================== = .z80extractor and how to use it = =============================================== z80extractor analyzes and extracts BASIC programs ("program listing") and variables that are stored in the .z80 file. The program is used from the Command Line. The options of the program will be described later. If there is a need to process a large amounts of files, please run one of the .bat files. It will run the program for all .z80 files in the folder they are in (.bat and .exe together) and for each file: * run.bat - the program will generate a 2 .txt file, one with a program and one with variables * run-list_only.bat - the program will only generate the program * run-vars_only.bat - the program will only generate the variable By default, if the .z80 file is named as "something.z80", the programs are placed in "something.txt", and the variables in "something-vars.txt" The program can receive the following parameters: * a filename or a file path - the file that we want to process * -o - the name of the output file with the program (if the default settings are not acceptable), the variables add "-vars.txt" to the name * -stdout - print everything on the screen instead in the files * -list - print only the listings * -vars - print only the variables If it runs without the parameters, the program will display this brief description of the options. All the output files, if already exist, will be deleted and replaced with new ones. A programs are written as they would be on the original computer. The variables generally follow the record of the Spectrum, except the strings, which have the word "string" in front of them instead of adding the $ to the name. The strings are printed as A(x,y,z,...) = value, each element in its line, where A is the name, and x, y, z, ... are the coordinates of that value in the n-dimensional string. Due to a different standard for recording of numbers in the floating point, which is used on the Spectrum, as well as the system for converting to decimal format, some values ​​will be shown differently than they are on the Spectrum (rounded up differently), for example, 0.3 becomes 0.2999999 ..., although they are identical at the binary level. If the empty "vars" file is obtained as the result, this means that in the .z80 file there were no variables.