diff --git a/README.md b/README.md index 822a083..43ff923 100644 --- a/README.md +++ b/README.md @@ -90,4 +90,4 @@ Some of the code used to launch programs has been adapted from the official Next Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE \ No newline at end of file +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE diff --git a/docs/CoverOn.png b/docs/CoverOn.png new file mode 100644 index 0000000..45ae468 Binary files /dev/null and b/docs/CoverOn.png differ diff --git a/docs/LoadDetails.png b/docs/LoadDetails.png new file mode 100644 index 0000000..190338f Binary files /dev/null and b/docs/LoadDetails.png differ diff --git a/docs/Manual_en.adoc b/docs/Manual_en.adoc new file mode 100644 index 0000000..69808bb --- /dev/null +++ b/docs/Manual_en.adoc @@ -0,0 +1,147 @@ += knloader +:author: kounch +:email: kounch@users.noreply.github.com +:Revision: 1.0 +:description: English Manual for knloader +:keywords: Manual, English, knloader, ZX Spectrum Next, BASIC, Launcher +:icons: font +:toc: left +:toc-title: Index +:toclevels: 4 + +<<< + +== Description + +Do you have a ZX Spectrum Next, but you are tired to remember which is the best option to launch your programs? knloader to the rescue! + +This a set of NextBASIC programs which you can configure to remember, and then use, your preferred way to launch other programs (Next/+3e Mode, 128K mode, USR 0, etc.). As a bonus, you can put some images (like cassette covers or loading screens). + +This program is not a replacement for the incoportaded Browser, nor offers any other function than to launch other programs. + +<<< + +== Requirements + +=== Download + +A ZIP file with the latest version is available following https://github.com/kounch/vscode_zx/releases/latest[this link] + +=== Software Requirements + +- *NextZXOS (version 1.3.2)*. Docs, downloads, etc. [here](https://www.specnext.com/latestdistro/) + +<<< + +== Installation + +Create `knloader.bdt` file (see below for more instructions). + +Copy `knloader.bas`, `knlauncher` and `knloader.bdt` to any place in your SD card. + +<<< + +== Use + +Use the browser or command line to navigate to the folder where `knloader.bas`, `knlauncher` and `knloader.bdt` are. Load `knloader.bas`. + +On first run, cache files will be created from the data inside database file `knloader.bdt`. This has to be done only once, or after any changes are made to the database file. + +[.text-center] +image::FirstBoot.png[] + +<<< + +The main interface shows a list of the programs found in the database file. + +[.text-center] +image::CoverOff.png[] + +<<< + +You can use the cursor keys or a joystick (Kempston or MD) to move and select the program that you want to load. Then, press `ENTER`, `0` or the joystick button to launch. + +[.text-center] +image::LoadDetails.png[] + +<<< + +After a brief period of time, the program should load using the desired mode. + +[.text-center] +image::knlauncher.png[] + +<<< + +If you have made a change to the database file, press R to rebuild the cache. + +Press C or the joystick secondary button (in MD mode) to hide/show images. + +[.text-center] +image::CoverOn.png[] + +Press X to exit the program. + +Press H to show some help. + +<<< + +== Database file format + +The main database is stored in a text file (ANSI encoding). + +The first line must be the base path where to start looking for programs (for example: `/games`). It's length cannot exceed 128 characters. + +Starting from line 2, each line must have the following format: + +`Program Name`,`Loading Mode`,``,`File`,`` + +*`Program Name`*: Name to show in the interface (maximum 22 characters) + +*`Loading Mode`*: A number indicating how to load the program file. Must be one of these: + + 0 - 3DOS + 1 - TAP + 2 - TZX (fast) + 3 - DSK (AUTOBOOT) + 4 - TAP (USR 0) + 5 - TZX (USR0 - Fast) + 6 - TAP (Next) + 7 - TZX (Next - Fast) + 8 - DSK (Custom Boot) + 9 - TAP (PI Audio) + 10 - TZX + 11 - TAP (USR 0 - PI Audio) + 12 - TZX (USR 0) + 13 - TAP (PI Audio - Next) + 14 - TZX (Next) + 15 - NEX + 16 - Snapshot + +*`Directory`*: Subdirectory where file (optionally) and image file are located (maximum 64 characters) + +*`File`*: Name of the file to execute (maximum 64 characters) + +*`Image File`*: (Optional) Name (maximum 64 characters) of a full screen image file to show behind the program listing. It can be in SCR, SLR, SHC, SL2 or BMP format. + +<<< + +== Notes + +This program creates a preferences file named `opts.tmp` inside the same folder where `knloader.bas` is installed. + +It also creates a variable number of cache files insidde `/tmp/knloader`. This is necessary to speed up the program execution and overcome RAM limitations for large database files. However, if the database file is not changed, these will become read only on all subsequent executions. + +<<< + +== Copyright + +Copyright (c) 2020 kounch + +Some of the code used to launch programs has been adapted from the official NextZXOS distribution (especifically from `browser.cfg`, `tapload.bas` and `tzxload.bas`). + +**_Spectrum Next_** and **_System/Next_** are © **SpecNext Ltd**. + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE diff --git a/docs/knlauncher.png b/docs/knlauncher.png new file mode 100644 index 0000000..0994550 Binary files /dev/null and b/docs/knlauncher.png differ