mirror of https://github.com/zxdos/zxuno.git
Merge branch 'master' of https://github.com/antoniovillena/zxuno
This commit is contained in:
commit
09a3354b65
|
|
@ -53,6 +53,3 @@ cores/Oric/source/_impact.cmd
|
|||
cores/Oric/source/_impact.log
|
||||
|
||||
cores/Oric/build/oric.v4_my.bit
|
||||
|
||||
sdk/bin/sjasmplus
|
||||
sdk/src/sjasmplus
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
FILE *f;
|
||||
unsigned char *scr;
|
||||
char nombre[256];
|
||||
int i,leido;
|
||||
|
||||
if (argc<2)
|
||||
return 1;
|
||||
|
||||
scr = malloc(65536);
|
||||
f = fopen (argv[1],"rb");
|
||||
if (!f)
|
||||
return 1;
|
||||
|
||||
leido = fread (scr, 1, 65536, f);
|
||||
fclose (f);
|
||||
|
||||
strcpy (nombre, argv[1]);
|
||||
nombre[strlen(nombre)-3]=0;
|
||||
strcat (nombre, "hex");
|
||||
|
||||
f = fopen (nombre, "wt");
|
||||
for (i=0;i<leido;i++)
|
||||
fprintf (f, "%.2X\n", scr[i]);
|
||||
fclose(f);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Binary file not shown.
|
|
@ -1,33 +0,0 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
FILE *f;
|
||||
unsigned char *scr;
|
||||
char nombre[256];
|
||||
int i,leido;
|
||||
|
||||
if (argc<2)
|
||||
return 1;
|
||||
|
||||
scr = malloc(65536);
|
||||
f = fopen (argv[1],"rb");
|
||||
if (!f)
|
||||
return 1;
|
||||
|
||||
leido = fread (scr, 1, 65536, f);
|
||||
fclose (f);
|
||||
|
||||
strcpy (nombre, argv[1]);
|
||||
nombre[strlen(nombre)-3]=0;
|
||||
strcat (nombre, "hex");
|
||||
|
||||
f = fopen (nombre, "wt");
|
||||
for (i=0;i<leido;i++)
|
||||
fprintf (f, "%.2X\n", scr[i]);
|
||||
fclose(f);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Binary file not shown.
|
|
@ -1,10 +1,10 @@
|
|||
= ZXDOS+ and gomaDOS+ Manual
|
||||
:author: kounch
|
||||
:revnumber: 1.4.4
|
||||
:revnumber: 1.4.6
|
||||
:doctype: book
|
||||
:front-cover-image: image:img/portada.jpg[]
|
||||
:email: kounch@users.noreply.github.com
|
||||
:Revision: 1.3
|
||||
:Revision: 1.4
|
||||
:description: English Manual of ZXDOS+ and gomaDOS+
|
||||
:keywords: Manual, English, ZXDOS+, gomaDOS+
|
||||
:icons: font
|
||||
|
|
@ -56,7 +56,7 @@ image:img/gomaDosBack.jpg[pdfwidth=70%]
|
|||
|
||||
==== Description
|
||||
|
||||
[cols=2*]
|
||||
[align="center",width="80%",cols=2*]
|
||||
|===
|
||||
|1
|
||||
|Power Switch
|
||||
|
|
@ -173,7 +173,7 @@ diskutil partitionDisk /dev/disk6 MBR "MS-DOS FAT32" ZXDOSPLUS 4G "MS-DOS FAT32"
|
|||
|
||||
===== Linux
|
||||
|
||||
There are a lot of tools for Linux that can format and/or partition an SD card (`fdisk`, `parted`, `cfdisk`, `sfdisk` or `GParted` to name a few). It should only be taken into account that the partition scheme must always be MBR, and the first partition (the one that will be used for esxdos) must be primary partition.
|
||||
There are a lot of tools for Linux that can format and/or partition a microSD card (`fdisk`, `parted`, `cfdisk`, `sfdisk` or `GParted` to name a few). It should only be taken into account that the partition scheme must always be MBR, and the first partition (the one that will be used for esxdos) must be primary partition.
|
||||
|
||||
<<<
|
||||
|
||||
|
|
@ -228,7 +228,7 @@ The default is ZX Spectrum mode. To change to a different mode, you must press `
|
|||
|
||||
This table shows the available modes and activation keys:
|
||||
|
||||
[%header,cols=2*]
|
||||
[align="center",width="40%",%header,cols=2*]
|
||||
|===
|
||||
|Mode
|
||||
|Key
|
||||
|
|
@ -264,7 +264,7 @@ This table shows the available modes and activation keys:
|
|||
|
||||
ZX Spectrum mode key assignment, with the corresponding keypress when used simultaneouly with `Caps Shift+Symbol Shift`:
|
||||
|
||||
[cols=10*]
|
||||
[align="center",width="80%",cols=10*]
|
||||
|===
|
||||
^|**1**
|
||||
^|**2**
|
||||
|
|
@ -360,7 +360,7 @@ Where:
|
|||
|
||||
The full list of key combinations (and compatible modes) is as follows:
|
||||
|
||||
[%header,cols=3*]
|
||||
[align="center",width="75%",%header,cols=3*]
|
||||
|===
|
||||
|Caps S.+Symbol S.
|
||||
|Mode
|
||||
|
|
@ -913,7 +913,7 @@ You can download the ROM, a user manual and other files from the https://www.fac
|
|||
|
||||
Since it is a 64K ROM with support for new hardware, these flags can be used when <<#_zx123_tool,adding it to the SPI flash>>:
|
||||
|
||||
[%header,cols=2*]
|
||||
[align="center",width="60%",%header,cols=2*]
|
||||
|===
|
||||
|Flag
|
||||
|Meaning
|
||||
|
|
@ -942,7 +942,7 @@ The whole ROM set is available to download from the repository in GitHub https:/
|
|||
|
||||
Depending on which ROM you choose, the flags when <<#_zx123_tool,adding to the SPI flash>> may vary. For example, for the ROM `48le_ea_re_po` (with all features enabled), these flags can be used (we cannot enable NMI DivMMC since the POKE editor will use it):
|
||||
|
||||
[%header,cols=2*]
|
||||
[align="center",width="60%",%header,cols=2*]
|
||||
|===
|
||||
|Flag
|
||||
|Meaning
|
||||
|
|
@ -1041,7 +1041,7 @@ You can find much more information, including the user manual, etc. at https://g
|
|||
|
||||
Here are flag settings which work when <<#_zx123_tool,adding to the SPI flash>> some other known custom ROMs:
|
||||
|
||||
[%header,cols=2*]
|
||||
[align="center",width="60%",%header,cols=2*]
|
||||
|===
|
||||
|ROM Name
|
||||
|Flags
|
||||
|
|
@ -1114,14 +1114,19 @@ In addition, esxdos also has an NMI manager, an application that loads when NMI
|
|||
The esxdos manager shows file and directory entries in the order stored in the internal FAT table, and not alphabetically. If you want to see them ordered, you have to reorder the microSD card structure with a utility like Fat Sorter for Windows, https://fatsort.sourceforge.io/[FATsort] for Linux and MacOS, https://www.luisrios.eti.br/public/en_us/projects/yafs/[YAFS], http://www.trustfm.net/software/utilities/SDSorter.phpp[SDSorter] or other.
|
||||
====
|
||||
|
||||
[CAUTION]
|
||||
====
|
||||
Ïf the card is also being used with the <<#_pc_xt,PC XT>> core, **do not use any FAT reordering utility** as it may stop DOS from booting.
|
||||
====
|
||||
|
||||
<<<
|
||||
|
||||
==== ZXDOS+ Commands
|
||||
|
||||
As explained in the installation part, there are a series of commands that are exclusive to ZXDOS+:
|
||||
|
||||
- `back16m`: Dumps to a `FLASH.ZX1` file, in the root directory of the SD card, the contents of a 16 Meg SPI Flash memory. It must be run while using a "root" mode ROM. After finishing, it is necessary to execute the command `.ls` so that the cache is written to the card
|
||||
- `backzx2` or `backzxd`: Creates a `FLASH.ZX2` o `FLASH.ZXD` file, in the root directory of the SD card, with the contents of a 32 Meg SPI Flash memory. It must be run while using a "root" mode ROM.After finishing its execution, you must execute the command `.ls` to finish recording the cache on the microSD card. If not, the length of the file will be wrongly set to 0
|
||||
- `back16m`: Dumps to a `FLASH.ZX1` file, in the root directory of the microSD card, the contents of a 16 Meg SPI Flash memory. It must be run while using a "root" mode ROM. After finishing, it is necessary to execute the command `.ls` so that the cache is written to the card
|
||||
- `backzx2` or `backzxd`: Creates a `FLASH.ZX2` o `FLASH.ZXD` file, in the root directory of the microSD card, with the contents of a 32 Meg SPI Flash memory. It must be run while using a "root" mode ROM.After finishing its execution, you must execute the command `.ls` to finish recording the cache on the microSD card. If not, the length of the file will be wrongly set to 0
|
||||
- `corebios`: To upddate simultaneously ZX Spectrum core and BIOS
|
||||
- `dmaplayw`: Plays .WAV file, which has to be 8 bits, unsigned and sampled at 15625 Hz
|
||||
- `esprst`: Resets the WiFi ESP8266(ESP-12) module
|
||||
|
|
@ -1450,6 +1455,11 @@ If you choose `Browser`, NextZXOS Browser will start, and then you can see the c
|
|||
The browser shows file and directory entries in the order stored in the internal FAT table, and not alphabetically. If you want to see them ordered, yo have to reorder the microSD card structure with a utility like Fat Sorter for Windows, https://fatsort.sourceforge.io/[FATsort] for Linux and MacOS, https://www.luisrios.eti.br/public/en_us/projects/yafs/[YAFS], http://www.trustfm.net/software/utilities/SDSorter.phpp[SDSorter] or other.
|
||||
====
|
||||
|
||||
[CAUTION]
|
||||
====
|
||||
Ïf the card is also being used with the <<#_pc_xt,PC XT>> core, **do not use any FAT reordering utility** as it may stop DOS from booting.
|
||||
====
|
||||
|
||||
[.text-center]
|
||||
image:img/next3.png[pdfwidth=70%]
|
||||
|
||||
|
|
@ -1480,7 +1490,7 @@ Some of its features are:
|
|||
- Joystick support
|
||||
- I^2^S audio output (with the <<#_rtci2spizero_addon,RTC+I^2^S+Pizero addon>>)
|
||||
|
||||
==== microSD format
|
||||
==== microSD card format
|
||||
|
||||
You have to use a microSD card with the first partition in FAT16 format with https://en.wikipedia.org/wiki/Partition_type[code `0x06` (16-bit FAT)]. You can also use a second FAT16 partition for MSX software, and leaving the first one only for the system startup.
|
||||
|
||||
|
|
@ -1492,6 +1502,11 @@ You need to get:
|
|||
|
||||
Copy the contents of the https://github.com/fbelavenuto/msx1fpga/tree/master/Support/SD[SD directory] in the root of the first partition of the microSD.
|
||||
|
||||
[WARNING]
|
||||
====
|
||||
Because some of DOS directories and files may have the same name, it's not recommended to use the same card for the <<#_pc_xt,PC XT core>> and MSX.
|
||||
====
|
||||
|
||||
Copy `NEXTOR.SYS` to the same place.
|
||||
|
||||
Copy `NEXTOR.ROM` inside the `MSX1FPGA` directory.
|
||||
|
|
@ -1610,7 +1625,7 @@ Some of its features are:
|
|||
|
||||
==== microSD card format
|
||||
|
||||
You have to use a microSD card with the first partition in FAT32 format, with a maximum of 4GB in size, and 4096 bytes per cluster.
|
||||
You have to use a microSD card with the first partition in FAT32 format (`0B` Win95 FAT-32 Partition Type), with a maximum of 4GB in size, and 4096 bytes per cluster.
|
||||
|
||||
You also need the following ROM files (they are available http://www.cpcwiki.eu/index.php/FPGAmstrad#How_to_assemble_it[at the original project Wiki]) or from the https://github.com/renaudhelias/FPGAmstrad/raw/master/OS6128_BASIC1-1_AMSDOS_MAXAM.zip[GitHub repository]:
|
||||
- `OS6128.ROM`
|
||||
|
|
@ -1663,9 +1678,9 @@ Download the latest version of Atom Software Archive https://github.com/hoglet67
|
|||
|
||||
You can set up the files in the microSD in two different ways:
|
||||
|
||||
. Extract all the contents of the archive to the root of the SD card. `SYS` directory contents are compatible with esxdos `SYS` directory, so you can merge both into one.
|
||||
. Extract all the contents of the archive to the root of the microSD card. `SYS` directory contents are compatible with esxdos `SYS` directory, so you can merge both into one.
|
||||
|
||||
. Have less files an directories in the root directory. Create a directory named `ATOM` in the SD root, and copy inside all the uncompressed archive content, except for the directory `MANPAGES` which must also be in root. Then, extract and the files from `trick_ATOM_folder` archive (available https://www.zxuno.com/forum/viewtopic.php?f=16&t=4006[at ZX-Uno Forum]), replacing any file with the same name. You will get a file and directory structure like this:
|
||||
. Have less files an directories in the root directory. Create a directory named `ATOM` in the microSD root, and copy inside all the uncompressed archive content, except for the directory `MANPAGES` which must also be in root. Then, extract and the files from `trick_ATOM_folder` archive (available https://www.zxuno.com/forum/viewtopic.php?f=16&t=4006[at ZX-Uno Forum]), replacing any file with the same name. You will get a file and directory structure like this:
|
||||
|
||||
----
|
||||
/
|
||||
|
|
@ -1733,7 +1748,7 @@ The ZXDOS+ core is developed by Neuro.
|
|||
|
||||
==== microSD card format
|
||||
|
||||
You can use a microSD card with the first partition formatted as FAT16 or FAT32. Disk image (`D64`) and tape (`TAP`) files can be loaded from the SD card.
|
||||
You can use a microSD card with the first partition formatted as FAT16 or FAT32. Disk image (`D64`) and tape (`TAP`) files can be loaded from the microSD card.
|
||||
|
||||
See the <<#_cores,corresponding section>> for instructions of how to install the Commodore 64 core in ZXDOS+.
|
||||
|
||||
|
|
@ -1767,7 +1782,7 @@ The menu offers the following options
|
|||
- Enable or disable PAL mode
|
||||
- Enable or disable tape loading sound (Sonido Carga Cinta)
|
||||
- Enable or disable audio filter (Filtro de Audio)
|
||||
- Load D64 file from SD (Carga D64)
|
||||
- Load D64 file from microSD (Carga D64)
|
||||
- Load TAP file (Carga Tap)
|
||||
|
||||
After a disk is inserted, normally, you can use `LOAD "*",8,1` and press `Enter` to load the software inside. Once `READY` is shown on screen, type `RUN` and press `Enter` to execute it.
|
||||
|
|
@ -1795,7 +1810,7 @@ Some of the features of the ZXDOS+ core are:
|
|||
- Scanlines on VGA mode
|
||||
- Controls can be optionally rotated 90º
|
||||
|
||||
==== microSD format
|
||||
==== microSD card format
|
||||
|
||||
This core does not use the microSD card.
|
||||
|
||||
|
|
@ -1893,7 +1908,7 @@ Some features of this core are:
|
|||
- HQ2X filters that "removes pixels" from the image
|
||||
- Scanlines simulation
|
||||
- Made with NES NTSC clock timings, so only USA ROMs run fine. PAL ROMs run faster than they sould
|
||||
- You can load ROMs from the SD
|
||||
- You can load ROMs from the microSD
|
||||
- You need, at least, one gamepad or joystick connected, and it must have several buttons
|
||||
- Only VGA video mode is supported, with non-accurate timings, so it may not work with some displays
|
||||
|
||||
|
|
@ -1942,13 +1957,13 @@ The ZXDOS+ core has these features:
|
|||
|
||||
- 48kB and 96 kB modes
|
||||
- Optional Scorpion ROM
|
||||
- Carga usando la entrada de audio
|
||||
- Load from a external audio device
|
||||
- Joystick support
|
||||
- RGB video and VGA Support
|
||||
|
||||
==== SD card format
|
||||
==== microSD card format
|
||||
|
||||
This core does not use the SD card
|
||||
This core does not use the microSD card
|
||||
|
||||
==== Keyboard
|
||||
|
||||
|
|
@ -1956,7 +1971,6 @@ This core does not use the SD card
|
|||
|
||||
While running the core:
|
||||
|
||||
- `Ctrl+Alt+Del`: Reset.
|
||||
- `F6` (`Caps Shift+Symbol Shift+6` on gomaDOS+): Switch between 48kB mode and 96kB mode (default)
|
||||
- `F7` (`Caps Shift+Symbol Shift+7` on gomaDOS+): Enable or disable Scorpio ROM
|
||||
- `F8` (`Caps Shift+Symbol Shift+8` on gomaDOS+): Switch the option to consider port $80 bits 2 and 3, so that Level 9 games are displayed properly.
|
||||
|
|
@ -2193,7 +2207,7 @@ The https://en.wikipedia.org/wiki/ZX81[ZX81] was a home computer produced by Sin
|
|||
|
||||
The ZXDOS+ version has been made by avlixa.
|
||||
|
||||
==== SD card format
|
||||
==== microSD card format
|
||||
|
||||
You can use a microSD card with the first partition in FAT16 or FAT32 format to store tape files.
|
||||
|
||||
|
|
@ -2247,6 +2261,186 @@ Some monitors stop playing audio if the video signal is lost. It's recommended t
|
|||
|
||||
<<<
|
||||
|
||||
=== PC XT
|
||||
|
||||
The https://en.wikipedia.org/wiki/IBM_Personal_Computer_XT[IBM Personal Computer XT] is the second computer in the IBM Personal Computer line. It is very similar to the original IBM PC model 5150 from 1981.
|
||||
|
||||
The ZXDOS+ core is an implementation based on https://opencores.org/projects/next186_soc_pc[Next186].
|
||||
|
||||
Features:
|
||||
|
||||
- Next186 core with 30 MHz CPU (166.66Mhz 32 bit bus)
|
||||
- 64 MB DDR3 RAM (DDR3-1333 333.33Mhz)
|
||||
- 40 MHz DSP
|
||||
- OPL3 support (with fix for adlib detection)
|
||||
- PS/2 mouse and keyboard support
|
||||
- BIOS detection in the first 64 or the las 16 sectors of the microSD card
|
||||
|
||||
==== microSD card format
|
||||
|
||||
An SDHC card is required (so it has to be 4GB or more in size), with the first partition in FAT16 and MS-DOS (or similar) installed. You can achieve this using, for example, virtualization software and attaching directly the microSD device as a hard disk.
|
||||
|
||||
Once partitioned and formatted (with the reserved bytes ad the end), the BIOS image file `Next186_BIOS_zxdos_ddr3.COM` (available to download https://github.com/zxdos/sources/raw/master/next186_zxdos_ddr3/software/Next186_BIOS_zxdos_ddr3.COM[at this link]) has to be written somewhere in the first 64 sectors or to the last 16 sectors of the card.
|
||||
|
||||
[CAUTION]
|
||||
====
|
||||
**Do not use any FAT reordering utility** as it may stop DOS from booting.
|
||||
====
|
||||
|
||||
[WARNING]
|
||||
====
|
||||
Because some of MSXDOS system directories and files may have the same name, it's not recommended to use the same card for the <<#_msx,MSX core>> and PC XT.
|
||||
====
|
||||
|
||||
===== Windows
|
||||
|
||||
You can use the program https://mh-nexus.de/en/hxd/[HxD (Hex editor for Windows)]:
|
||||
|
||||
. Start the program as administrator and select the option `Open disk...` in the `Tools` menu
|
||||
. Disable the option to only read, and select the microSD device
|
||||
. Open in another window the file with the BIOS image
|
||||
. Copy all the content from the BIOS image, and paste at the end of the microSD, or, if there is enough freespace before the first partition, somewhere within the first 64 sectors (512 bytes in size each)
|
||||
. Save all changes to the card
|
||||
|
||||
<<<
|
||||
|
||||
===== Linux
|
||||
|
||||
Follow these steps:
|
||||
|
||||
. After finding which device belongs to the SD card (`sdb` for this example), execute `fdisk` to find out the size
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
fdisk -l /dev/sdb
|
||||
Disk /dev/sdb: 59.49 GiB, 63864569856 bytes, 124735488 sectors
|
||||
Disk model: SD/MMC
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
(...)
|
||||
----
|
||||
|
||||
[start=2]
|
||||
. As the sector size is 512 bytes, subtract 16 (for this example, `124735488-16=124735472`) and use that info to inject the BIOS at the end:
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
sudo dd if=Next186_BIOS_zxdos_ddr3.COM of=/dev/sdb bs=512 seek=124735472
|
||||
----
|
||||
|
||||
Instead of the end of the card, if there is enough free space before the first partition, you may use the beginning. For example, to write starting at sector 10:
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
sudo dd if=Next186_BIOS_zxdos_ddr3.COM of=/dev/sdb bs=512 seek=10
|
||||
----
|
||||
|
||||
===== MacOS
|
||||
|
||||
Steps to to follow:
|
||||
|
||||
. After finding out which disk is the card (`disk6` for this example), open `fdisk` to find out the size in sectors
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
sudo diskutil unmountDisk /dev/disk6
|
||||
sudo fdisk /dev/rdisk6
|
||||
|
||||
Disk: /dev/rdisk6 geometry: 15566/255/63 [30535680 sectors]
|
||||
(...)
|
||||
Enter 'help' for information
|
||||
fdisk: 1>q
|
||||
----
|
||||
|
||||
[start=2]
|
||||
. As the sectors are 512 bytes in size, substract 16 (for this example, `30535680-16=30535664`) and use that number to inject the data at the end:
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
sudo diskutil unmountDisk /dev/disk6
|
||||
sudo dd if=Next186_BIOS_zxdos_ddr3.COM of=/dev/rdisk6 bs=512 seek=30535664
|
||||
----
|
||||
|
||||
Instead of the end of the card, if there is enough free space before the first partition, you may use the beginning. For example, to write starting at sector 10:
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
sudo dd if=Next186_BIOS_zxdos_ddr3.COM of=/dev/rdisk6 bs=512 seek=10
|
||||
----
|
||||
|
||||
See the <<#_cores,corresponding section>> for instructions of how to install the PC XT core in ZXDOS+.
|
||||
|
||||
==== Keyboard
|
||||
|
||||
===== Special keys and buttons
|
||||
|
||||
During the core execution:
|
||||
|
||||
- `Ctrl+Alt+Supr` (`Caps Shift+Symbol Shift+N` on gomaDOS+): Reset
|
||||
|
||||
==== Basic Guide
|
||||
|
||||
[.text-center]
|
||||
image:img/pcxt.png[pdfwidth=70%]
|
||||
|
||||
<<<
|
||||
|
||||
=== Chip-8
|
||||
|
||||
https://en.wikipedia.org/wiki/CHIP-8[CHIP-8] CHIP-8 is an interpreted programming language, developed by Joseph Weisbecker. It was initially used on the COSMAC VIP and Telmac 1800 8-bit microcomputers in the mid-1970s. Erik Bryntse later created another interpreter based on CHIP-8, called SCHIP, S-CHIP or Super-Chip which extended the CHIP-8.
|
||||
|
||||
The ZXDOS+ core is based on an existing https://bitbucket.org/csoren/fpga-chip8/[FPGA implementation] of the SuperChip.
|
||||
|
||||
There are several sites like https://johnearnest.github.io/chip8Archive/[CHIP-8 Archive] ot https://github.com/mattmikolay/chip-8[Matthew Mikolay's CHIP-8] where you can obtain osftware for these machines.
|
||||
|
||||
==== microSD card format
|
||||
|
||||
You can use a SD card with the first partition in FAT16 or FAT32 formata to store `BIN` or `CH8` ROM files to load with the core.
|
||||
|
||||
==== Keyboard
|
||||
|
||||
The CHIP-9 machine uses an hexadecimal keyboard as input. This is the key mapping:
|
||||
|
||||
[align="center",width="25%",%header,cols=2*]
|
||||
|===
|
||||
|Chip-8|PS/2
|
||||
|`1 2 3 C`|`1 2 3 4`
|
||||
|`4 5 6 D`|`Q W E R`
|
||||
|`7 8 9 E`|`A S D F`
|
||||
|`A 0 B F`|`Z X C V`
|
||||
|===
|
||||
|
||||
===== Special keys and buttons
|
||||
|
||||
While the core is running:
|
||||
|
||||
- `Esc` (or `Caps Shift+Space` on gomaDOS+, `PC XT` keyboard mode): Show or hide configuration menu
|
||||
- `F12` (`Caps Shift+Symbol Shift+W` on gomaDOS+): Reset
|
||||
|
||||
<<<
|
||||
|
||||
==== Basic Guide
|
||||
|
||||
Pressing `Esc` (`Caps Shift+Space` on gomaDOS+, `PC XT` keyboard mode) shows or hides the configuration menu. Use the cursor keys (`Caps Shift+5`, `Caps Shift+6`, `Caps Shift+7` and `Caps Shift+8` on gomaDOS+, `PC XT` keyboard mode) and `Enter` to select and choose menu options.
|
||||
|
||||
[.text-center]
|
||||
image:img/chip8.jpg[pdfwidth=70%]
|
||||
|
||||
|
||||
The following options are available:
|
||||
|
||||
- Reset the core
|
||||
- Change the core clock speed
|
||||
- Load a ROM file from the microSD card
|
||||
- Exit the menu
|
||||
|
||||
[CAUTION]
|
||||
====
|
||||
After loading a ROM, always press the reset key so that it runs correctly: `F12` (`Caps Shift+Symbol Shift+W` on gomaDOS+)
|
||||
====
|
||||
|
||||
<<<
|
||||
|
||||
== Other Hardware
|
||||
|
||||
=== Rotary Encoders
|
||||
|
|
@ -2346,7 +2540,7 @@ aclocal && autoconf && autoheader && automake --add-missing
|
|||
make
|
||||
----
|
||||
|
||||
If all goes well, a new file named `tzxplay` will be created, which you can copy anywhere and then use. You can delete the compilation directory.
|
||||
If all goes well, a new file named `playtzx` has been created, which you can copy anywhere and then use. You can delete the compilation directory.
|
||||
|
||||
==== Mobile phone, tablet, MP3 player, etc.
|
||||
|
||||
|
|
@ -2393,7 +2587,7 @@ image:img/MiniduinoBack.jpg[pdfwidth=50%]
|
|||
[.text-center]
|
||||
image:img/MiniduinoFront.jpg[pdfwidth=50%]
|
||||
|
||||
[cols=2*]
|
||||
[align="center",width="60%",cols=2*]
|
||||
|===
|
||||
|1
|
||||
|Power
|
||||
|
|
@ -2428,6 +2622,11 @@ Copy the tape files (`TAP`, `TZX`, `O`, `P`, `CAS`, `TSX`, etc) to the first par
|
|||
The player shows file and directory entries in the order stored in the internal FAT table, and not alphabetically. If you want to see them ordered, you have to reorder the microSD card structure with a utility like Fat Sorter for Windows, https://fatsort.sourceforge.io/[FATsort] for Linux and MacOS, https://www.luisrios.eti.br/public/en_us/projects/yafs/[YAFS], http://www.trustfm.net/software/utilities/SDSorter.phpp[SDSorter] or other.
|
||||
====
|
||||
|
||||
[CAUTION]
|
||||
====
|
||||
Ïf the card is also being used with the <<#_pc_xt,PC XT>> core, **do not use any FAT reordering utility** as it may stop DOS from booting.
|
||||
====
|
||||
|
||||
<<<
|
||||
|
||||
===== Use
|
||||
|
|
@ -2666,7 +2865,7 @@ image:img/pizeroaddon.jpg[pdfwidth=70%]
|
|||
====
|
||||
When writing this manual, the latest NextPI version (0.99D RTM), doesn't need all the pins to work. It's enough to use:
|
||||
|
||||
[%header,cols=3*]
|
||||
[align="center",width="90%",%header,cols=3*]
|
||||
|===
|
||||
|Name
|
||||
|Pin
|
||||
|
|
@ -2819,7 +3018,7 @@ See the https://github.com/kounch/zx123_tool/[documentation] for all the possib
|
|||
|
||||
Amongst the information you give when adding a ROM, there are some flags used to tell which hardware options, etc, you want to have enabled or disabled when loading the ROM, as shown in this table:
|
||||
|
||||
[%header,cols=2*]
|
||||
[align="center",width="70%",%header,cols=2*]
|
||||
|===
|
||||
|`i`
|
||||
|Keyboard issue 3 enabled (instead of issue 2)
|
||||
|
|
@ -2972,7 +3171,7 @@ image:img/gpio.jpg[pdfwidth=70%]
|
|||
|
||||
In this example, the `31`, `33`, `35`, `37` and `39` pins will be used (corresponding to `GPIO #6`, `GPIO #13`, `GPIO #19`, `GPIO #26` and `GND`), like this:
|
||||
|
||||
[%header,cols=3*]
|
||||
[align="center",width="50%",%header,cols=3*]
|
||||
|===
|
||||
|ZXDOS+ JTAG
|
||||
|GPIO
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,10 +1,10 @@
|
|||
= Manual de ZXDOS+ y gomaDOS+
|
||||
:author: kounch
|
||||
:revnumber: 1.4.4
|
||||
:revnumber: 1.4.6
|
||||
:doctype: book
|
||||
:front-cover-image: image:img/portada.jpg[]
|
||||
:email: kounch@users.noreply.github.com
|
||||
:Revision: 1.3
|
||||
:Revision: 1.4
|
||||
:description: Manual en castellano de ZXDOS+ y gomaDOS+
|
||||
:keywords: Manual, Castellano, ZXDOS+, gomaDOS+
|
||||
:icons: font
|
||||
|
|
@ -56,7 +56,7 @@ image:img/gomaDosBack.jpg[pdfwidth=90%]
|
|||
|
||||
==== Descripción
|
||||
|
||||
[cols=2*]
|
||||
[align="center",width="80%",cols=2*]
|
||||
|===
|
||||
|1
|
||||
|Interruptor
|
||||
|
|
@ -173,7 +173,7 @@ diskutil partitionDisk /dev/disk6 MBR "MS-DOS FAT32" ZXDOSPLUS 4G "MS-DOS FAT32"
|
|||
|
||||
===== Linux
|
||||
|
||||
Existen multitud de herramientas en Linux que permiten formatear y particionar el contenido de una tarjeta SD (como `fdisk`, `parted`, `cfdisk`, `sfdisk` o `GParted`). Sólo se ha de tener en cuenta que el esquema de particiones a utilizar siempre ha de ser MBR, y la primera partición (la que se utilizará para esxdos) ha de ser primaria.
|
||||
Existen multitud de herramientas en Linux que permiten formatear y particionar el contenido de una tarjeta microSD (como `fdisk`, `parted`, `cfdisk`, `sfdisk` o `GParted`). Sólo se ha de tener en cuenta que el esquema de particiones a utilizar siempre ha de ser MBR, y la primera partición (la que se utilizará para esxdos) ha de ser primaria.
|
||||
|
||||
<<<
|
||||
|
||||
|
|
@ -228,7 +228,7 @@ Por defecto, está configurado en modo ZX Spectrum. Para cambiar a otro modo, se
|
|||
|
||||
La siguiente tabla indica los distintos modos y la tecla de activación asociada:
|
||||
|
||||
[%header,cols=2*]
|
||||
[align="center",width="40%",%header,cols=2*]
|
||||
|===
|
||||
|Modo
|
||||
|Tecla
|
||||
|
|
@ -264,7 +264,7 @@ La siguiente tabla indica los distintos modos y la tecla de activación asociada
|
|||
|
||||
La distribución del teclado en modo ZX Spectrum, con la pulsación asociada al combinar junto con `Caps Shift+Symbol Shift`, se puede resumir según el siguiente esquema:
|
||||
|
||||
[cols=10*]
|
||||
[align="center",width="80%",cols=10*]
|
||||
|===
|
||||
^|**1**
|
||||
^|**2**
|
||||
|
|
@ -360,7 +360,7 @@ Donde:
|
|||
|
||||
La lista completa de combinaciones de teclado (y el modo en que se pueden utilizar) es la siguiente:
|
||||
|
||||
[%header,cols=3*]
|
||||
[align="center",width="75%",%header,cols=3*]
|
||||
|===
|
||||
|Caps S.+Symbol S.
|
||||
|Modo
|
||||
|
|
@ -918,7 +918,7 @@ Se puede descargar la ROM, un manual de usuario y otos ficheros del https://www.
|
|||
|
||||
Puesto que se trata de una ROM de 64K con soporte para nuevo hardware, se pueden usar estas opciones al <<#_zx123_tool,añadirla a la SPI flash>>:
|
||||
|
||||
[%header,cols=2*]
|
||||
[align="center",width="60%",%header,cols=2*]
|
||||
|===
|
||||
|Ajuste
|
||||
|Significado
|
||||
|
|
@ -947,7 +947,7 @@ El conjunto completo de ROMs está disponible para descargar desde el repositori
|
|||
|
||||
Dependiendo de la ROM elegida, los ajustes a indicar cuando se <<#_zx123_tool,añada a la SPI flash>> pueden variar. Por ejemplo, para la ROM `48le_ea_re_po` (que tiene habilitadas todas las opciones), se pueden usar estos ajustes (no hay que habilitar NMI DivMMC porque el editor de POKEs ya lo utiliza):
|
||||
|
||||
[%header,cols=2*]
|
||||
[align="center",width="60%",%header,cols=2*]
|
||||
|===
|
||||
|Ajuste
|
||||
|Significado
|
||||
|
|
@ -1045,7 +1045,7 @@ Se puede encontrar mucha más información, incluyendo el manual de usuario, etc
|
|||
|
||||
Estos son algunos ajustes válidos para <<#_zx123_tool,añadir a la SPI flash>> algunas otras ROM personalizadas:
|
||||
|
||||
[%header,cols=2*]
|
||||
[align="center",width="60%",%header,cols=2*]
|
||||
|===
|
||||
|Nombre de la ROM
|
||||
|Ajustes
|
||||
|
|
@ -1073,7 +1073,7 @@ Los principales comandos "DOT" commands son los siguientes:
|
|||
|
||||
- `128`: Para pasar al modo 128K desde el modo 48K.
|
||||
- `cd`: Cambiar el directorio actual de trabajo.
|
||||
- `chmod`: cambiar los atributos de los ficheros de la tarjeta SD.
|
||||
- `chmod`: cambiar los atributos de los ficheros de la tarjeta microSD.
|
||||
- `cp`: Copiar un archivo.
|
||||
- `divideo`: Reproduce un archivo de vídeo Divideo (.DVO).
|
||||
- `drives`: Mostrar las unidades disponibles.
|
||||
|
|
@ -1118,14 +1118,19 @@ Además, esxdos incluye un gestor NMI, es decir, una aplicación que se carga cu
|
|||
El gestor de esxdos muestra las entradas de archivos y directorios en el orden de la tabla FAT interna, y no de manera alfabética. Si se desea ver esta información ordenada, se debe reorganizar la estructura de la tarjeta con una utilidad como FAT Sorter para Windows, https://fatsort.sourceforge.io/[FATsort] para Linux y MacOS, https://www.luisrios.eti.br/public/en_us/projects/yafs/[YAFS], http://www.trustfm.net/software/utilities/SDSorter.phpp[SDSorter] u otros.
|
||||
====
|
||||
|
||||
[CAUTION]
|
||||
====
|
||||
En el caso de utilizarse también la tarjeta con el core de <<#_pc_xt,PC XT>>, **no se debe utilizar ninguna utilidad de reordenación de FAT** ya que esto puede provocar que deje de arrancar correctamente DOS en dicho core.
|
||||
====
|
||||
|
||||
<<<
|
||||
|
||||
==== Comandos para ZXDOS+
|
||||
|
||||
Tal y como se ha explicado en la parte de instalación, existe una serie de comandos que son exclusivos para ZXDOS+, y que se describen a continuación:
|
||||
|
||||
- `back16m`: Copia a un fichero `FLASH.ZX1` en el directorio raíz de la tarjeta SD el contenido de una memoria SPI Flash de 16 megas. Se debe ejecutar desde una ROM en modo "root". Tras terminar su ejecución hay que ejecutar el comando `.ls` para que se termine de grabar la cache en la tarjeta.
|
||||
- `backzx2` o `backzxd`: Genera un fichero `FLASH.ZX2` o `FLASH.ZXD` en el directorio raíz de la tarjeta SD el contenido de una memoria SPI Flash de 32 megas. Se debe ejecutar desde una ROM en modo "root". Cuando termine hay que ejecutar el comando `.ls` para que se termine de grabar la cache en la tarjeta microSD. Si no se hace, la longitud del archivo se quedará en 0 de forma errónea.
|
||||
- `back16m`: Copia a un fichero `FLASH.ZX1` en el directorio raíz de la tarjeta microSD el contenido de una memoria SPI Flash de 16 megas. Se debe ejecutar desde una ROM en modo "root". Tras terminar su ejecución hay que ejecutar el comando `.ls` para que se termine de grabar la cache en la tarjeta.
|
||||
- `backzx2` o `backzxd`: Genera un fichero `FLASH.ZX2` o `FLASH.ZXD` en el directorio raíz de la tarjeta microSD el contenido de una memoria SPI Flash de 32 megas. Se debe ejecutar desde una ROM en modo "root". Cuando termine hay que ejecutar el comando `.ls` para que se termine de grabar la cache en la tarjeta microSD. Si no se hace, la longitud del archivo se quedará en 0 de forma errónea.
|
||||
- `corebios`: Para hacer una actualización conjunta del core de ZX Spectrum y de la BIOS.
|
||||
- `dmaplayw`: Reproduce un archivo de audio .WAV, que debe ser de 8 bits, sin signo y muestreado a 15625 Hz.
|
||||
- `esprst`: Resetea el módulo WiFi ESP8266(ESP-12).
|
||||
|
|
@ -1137,7 +1142,7 @@ Tal y como se ha explicado en la parte de instalación, existe una serie de coma
|
|||
- `playrmov`: Reproduce vídeos en <<#_creación_de_vídeos_rdm_radastan_movie,formato radastaniano (ficheros `.RDM`)>>. Este comando no funciona en modo 48K.
|
||||
- `romsback`: Copia a un fichero RomPack, llamado `ROMS.ZX1`, en el directorio raíz de la tarjeta microSD todas las ROMS del core ZX Spectrum almacenadas en la memoria SPI Flash. Sólo funciona correctamente en ZX-Uno y ZXDOS (no utilizar en ZXDOS+ o gomaDOS+). Se debe ejecutar desde una ROM en modo "root".
|
||||
- `romsupgr`: Copia el contenido de un fichero RomPack, llamado `ROMS.ZX1`, en el directorio raíz de la tarjeta microSD con todas las ROMS para el core ZX Spectrum a la memoria SPI Flash. Se debe ejecutar desde una ROM en modo "root".
|
||||
- `upgr16m`: Copia el contenido de un fichero `FLASH.ZX1` en el directorio raíz de la tarjeta SD a una memoria SPI Flash de 16 megas. Se debe ejecutar desde una ROM en modo "root".
|
||||
- `upgr16m`: Copia el contenido de un fichero `FLASH.ZX1` en el directorio raíz de la tarjeta microSD a una memoria SPI Flash de 16 megas. Se debe ejecutar desde una ROM en modo "root".
|
||||
- `upgrzx2` o `upgrzxd`: Copia el contenido de un fichero `FLASH.ZX2` o `FLASH.ZXD` a una memoria SPI Flash de 32 megas.Versión del comando upgrade exclusivo para memorias SPI Flash de 32 Megas. Se debe ejecutar desde una ROM en modo "root".
|
||||
- `zxuc`: Configura todas las opciones de la BIOS, permitiendo grabar en la microSD las opciones seleccionadas en archivos de configuración que pueden posteriormente ser cargados.
|
||||
- `zxunocfg`: Configura determinados aspectos del funcionamiento del ZX-Uno como los timings, la contención, el tipo de teclado, la velocidad de la CPU, el tipo y frecuencia vertical del vídeo.
|
||||
|
|
@ -1451,6 +1456,11 @@ Si se elige `Browser`, se cargará el navegador de NextZXOS, desde el que es pos
|
|||
El navegador muestra las entradas de archivos y directorios en el orden de la tabla FAT interna, y no de manera alfabética. Si se desea ver esta información ordenada, se debe reorganizar la estructura de la tarjeta con una utilidad como FAT Sorter para Windows, https://fatsort.sourceforge.io/[FATsort] para Linux y MacOS, https://www.luisrios.eti.br/public/en_us/projects/yafs/[YAFS], http://www.trustfm.net/software/utilities/SDSorter.phpp[SDSorter] u otros.
|
||||
====
|
||||
|
||||
[CAUTION]
|
||||
====
|
||||
En el caso de utilizarse también la tarjeta con el core de <<#_pc_xt,PC XT>>, **no se debe utilizar ninguna utilidad de reordenación de FAT** ya que esto puede provocar que deje de arrancar correctamente DOS en dicho core.
|
||||
====
|
||||
|
||||
[.text-center]
|
||||
image:img/next3.png[pdfwidth=70%]
|
||||
|
||||
|
|
@ -1475,7 +1485,7 @@ MSX1FPGA es un proyecto para clonar MSX1. El desarrollo original es de Fabio Bel
|
|||
Algunas de sus características son:
|
||||
|
||||
- MSX1 a 50Hz o 60Hz;
|
||||
- Utiliza Nextor ROM con un controladr para SD
|
||||
- Utiliza Nextor ROM con un controlador para SD
|
||||
- Mapa de teclado configurable
|
||||
- Simulación de línea de exploración (Scanlines)
|
||||
- Soporte para joystick
|
||||
|
|
@ -1487,12 +1497,17 @@ Se debe de utilizar una tarjeta microSD con la primera partición en formato FAT
|
|||
|
||||
Obtener lo siguiente:
|
||||
|
||||
- Ficheros básicos del proyecto para la SD https://github.com/fbelavenuto/msx1fpga/tree/master/Support/SD[desde GitHub]
|
||||
- Ficheros básicos del proyecto para la microSD https://github.com/fbelavenuto/msx1fpga/tree/master/Support/SD[desde GitHub]
|
||||
- Controlador (`NEXTOR.SYS`) y ROM (`NEXTOR.ROM`) de Nextor https://github.com/fbelavenuto/msx1fpga/tree/master/Software/nextor[también desde GitHub]
|
||||
- ROM de MSX1 (`MSX_INT.rom`, `MSX_JP.rom` o `MSX_USA.rom`) https://github.com/fbelavenuto/msx1fpga/tree/master/Software/msx1[en el mismo repositorio]
|
||||
|
||||
Copiar el contenido del https://github.com/fbelavenuto/msx1fpga/tree/master/Support/SD[directorio SD] en la raíz de la primera partición de la tarjeta microSD.
|
||||
|
||||
[WARNING]
|
||||
====
|
||||
Como algunos de los directorios y ficheros de sistema de DOS pueden tienen el mismo nombre, no se recomienda utilizar la misma tarjeta para el <<#_pc_xt,core de PC XT>> y el de MSX.
|
||||
====
|
||||
|
||||
Copiar `NEXTOR.SYS` en el mismo lugar.
|
||||
|
||||
Copiar `NEXTOR.ROM` en el directorio `MSX1FPGA`.
|
||||
|
|
@ -1611,7 +1626,7 @@ Algunas de sus características son:
|
|||
|
||||
==== Formato de Tarjeta microSD
|
||||
|
||||
Se debe de utilizar una tarjeta microSD con la primera partición en formato FAT32, de 4GB de tamaño máximo y 4096 bytes por cluster.
|
||||
Se debe de utilizar una tarjeta microSD con la primera partición en formato FAT32 (Tipo de partición `0B` Win95 FAT-32), de 4GB de tamaño máximo y 4096 bytes por cluster.
|
||||
|
||||
Además son necesarios los ficheros ROM siguientes (se pueden obtener http://www.cpcwiki.eu/index.php/FPGAmstrad#How_to_assemble_it[en la wiki oficial del proyecto original]) o en el https://github.com/renaudhelias/FPGAmstrad/raw/master/OS6128_BASIC1-1_AMSDOS_MAXAM.zip[repositorio de GitHub]:
|
||||
- `OS6128.ROM`
|
||||
|
|
@ -1896,7 +1911,7 @@ Algunas de las características del core son:
|
|||
- Filtro HQ2X que "despixeliza" la imagen
|
||||
- Simulación de línea de exploración (Scanlines)
|
||||
- Utiliza el reloj de la NES NTSC, por tanto funcionan correctamente las ROMs USA. Las ROMs PAL van más rápido de lo que deberían
|
||||
- Permite cargar ROMS desde la SD
|
||||
- Permite cargar ROMS desde la microSD
|
||||
- Necesita, al menos, un mando o joystick conectado y que tenga varios botones de disparo
|
||||
- Sólo soporta salida VGA y utiliza timings poco rigurosos, por lo que es posible que de problemas en algunos monitores
|
||||
|
||||
|
|
@ -1932,7 +1947,7 @@ En él se pueden activar o desactivar las siguientes opciones:
|
|||
- Encender o apagar el filtro que suaviza la imagen (HQ2X Filter)
|
||||
- Simular la pulsación del botón Select del mando 1 (P1 Select)
|
||||
- Simular la pulsación del botón Start del mando 1 (P1 Start)
|
||||
- Elegir un ROM para cargar desde la SD (Load ROM)
|
||||
- Elegir una ROM para cargar desde la microSD (Load ROM)
|
||||
- Salir del menú (Exit)
|
||||
|
||||
<<<
|
||||
|
|
@ -1949,9 +1964,9 @@ La versión para ZXDOS+ tiene estas características:
|
|||
- Carga usando la entrada de audio
|
||||
- Soporte para vídeo RGB y VGA
|
||||
|
||||
==== Formato de Tarjeta SD
|
||||
==== Formato de tarjeta microSD
|
||||
|
||||
Este core no utiliza la tarjeta SD.
|
||||
Este core no utiliza la tarjeta microSD.
|
||||
|
||||
==== Teclado
|
||||
|
||||
|
|
@ -2036,7 +2051,7 @@ Durante la ejecución del core:
|
|||
|
||||
==== Guía básica
|
||||
|
||||
Al iniciar, la ROM de la BIOS se carga desde la tarjeta SD, así como la ROM multicartucho.
|
||||
Al iniciar, la ROM de la BIOS se carga desde la tarjeta microSD, así como la ROM multicartucho.
|
||||
|
||||
[.text-center]
|
||||
image:img/coleco.jpg[pdfwidth=70%]
|
||||
|
|
@ -2191,7 +2206,7 @@ El computador personal https://es.wikipedia.org/wiki/ZX81[Sinclair ZX81], lanzad
|
|||
|
||||
La versión para ZXDOS+ ha sido creada por avlixa.
|
||||
|
||||
==== Formato de Tarjeta SD
|
||||
==== Formato de Tarjeta microSD
|
||||
|
||||
Se debe de utilizar una tarjeta microSD, con la primera partición en formato FAT16 o FAT32, para almacenar los ficheros con archivos de cinta que se deseen cargar.
|
||||
|
||||
|
|
@ -2243,6 +2258,185 @@ Algunos monitores dejan de reproducir la entrada de audio si se desactiva la se
|
|||
|
||||
<<<
|
||||
|
||||
=== PC XT
|
||||
|
||||
El https://es.wikipedia.org/wiki/IBM_Personal_Computer_XT[IBM Personal Computer XT], fue el sucesor del IBM PC original. Estaba basado esencialmente en la misma arquitectura que el PC original, pero con algunas mejoras y se acabó convirtió en un estándar.
|
||||
|
||||
El core de ZXDOS+ es una implementación adaptada de https://opencores.org/projects/next186_soc_pc[Next186].
|
||||
|
||||
Características del sistema implementado:
|
||||
|
||||
- Núcleo Next186 con CPU a 30 MHz (bus de 32 bit a 166.66Mhz)
|
||||
- 64 MB DDR3 RAM (DDR3-1333 333.33Mhz)
|
||||
- DSP a 40 MHz
|
||||
- Soporte para OPL3 (corregido para detección correcta de adlib)
|
||||
- Soporte para teclado y raton PS/2
|
||||
- Detección de BIOS en la tarjeta microSD en los primeros 64 sectores o en los últimos 16
|
||||
|
||||
==== Formato de Tarjeta microSD
|
||||
|
||||
Se debe de utilizar una tarjeta SDHC (por tanto de al menos 4GB), con la primera partición FAT16 y con MS-DOS (o similar) instalado. Esto se puede conseguir usando, por ejemplo, software de virtualización y conectando directamente el dispositivo de la tarjeta microSD como disco.
|
||||
|
||||
Una vez formateada y particionada (con la reserva al final), se debe grabar la imagen de BIOS `Next186_BIOS_zxdos_ddr3.COM` (disponible https://github.com/zxdos/sources/raw/master/next186_zxdos_ddr3/software/Next186_BIOS_zxdos_ddr3.COM[en este enlace]) en algún lugar de los primeros 64 sectores, o bien en los últimos 16 sectores de la tarjeta microSD.
|
||||
|
||||
[CAUTION]
|
||||
====
|
||||
**No se debe utilizar ninguna utilidad de reordenación de FAT** ya que esto puede provocar que deje de arrancar correctamente DOS.
|
||||
====
|
||||
|
||||
[WARNING]
|
||||
====
|
||||
Como algunos de los directorios y ficheros de sistema de MSXDOS pueden tienen el mismo nombre, no se recomienda utilizar la misma tarjeta para el <<#_msx,core de MSX>> y el de PC XT.
|
||||
====
|
||||
|
||||
===== Windows
|
||||
|
||||
Se puede utilizar el programa https://mh-nexus.de/en/hxd/[HxD (editor hexadecimal para Windows)]:
|
||||
|
||||
. Abrir el programa como administrador y elegir la opción `Abrir disco...` en el menú `Herramientas`
|
||||
. Desmarcar la opción para abrir como solo lectura y seleccionar la tarjeta microSD
|
||||
. Abrir en otra ventana el fichero con la imagen de BIOS
|
||||
. Copiar el contenido de la imagen de BIOS, y pegarlo, reemplazando, en el final de la microSD, o bien, si hubiera espacio libre antes de la primera partición, en algún lugar dentro de los primeros 64 sectores (de 512 bytes cada uno)
|
||||
. Guardar los cambios en la SD
|
||||
|
||||
<<<
|
||||
|
||||
===== Linux
|
||||
|
||||
Seguir los siguientes pasos:
|
||||
|
||||
. Tras identificar el disco de la tarjeta (en este ejemplo, `sdb`), invocar `fdisk` para ver el tamaño
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
fdisk -l /dev/sdb
|
||||
Disk /dev/sdb: 59.49 GiB, 63864569856 bytes, 124735488 sectors
|
||||
Disk model: SD/MMC
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
(...)
|
||||
----
|
||||
|
||||
[start=2]
|
||||
. Como los sectores son de 512 bytes, restar 16 (en este ejemplo, `124735488-16=124735472`) y usar esta información para inyectar la BIOS al final:
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
sudo dd if=Next186_BIOS_zxdos_ddr3.COM of=/dev/sdb bs=512 seek=124735472
|
||||
----
|
||||
|
||||
En lugar del final de la tarjeta, si hay espacio libre antes de la primera partición, se puede utilizar el principio. Por ejemplo, para hacerlo a partir del sector 10:
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
sudo dd if=Next186_BIOS_zxdos_ddr3.COM of=/dev/sdb bs=512 seek=10
|
||||
----
|
||||
|
||||
===== MacOS
|
||||
|
||||
Pasos a seguir:
|
||||
|
||||
. Tras identificar el disco de la tarjeta (en este ejemplo, `disk6`), invocar `fdisk` para ver el tamaño en sectores
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
sudo diskutil unmountDisk /dev/disk6
|
||||
sudo fdisk /dev/rdisk6
|
||||
|
||||
Disk: /dev/rdisk6 geometry: 15566/255/63 [30535680 sectors]
|
||||
(...)
|
||||
Enter 'help' for information
|
||||
fdisk: 1>q
|
||||
----
|
||||
|
||||
[start=2]
|
||||
. Como los sectores son de 512 bytes, restar 16 (en este ejemplo, `30535680-16=30535664`) y usar esta información para inyectar la BIOS al final:
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
sudo diskutil unmountDisk /dev/disk6
|
||||
sudo dd if=Next186_BIOS_zxdos_ddr3.COM of=/dev/rdisk6 bs=512 seek=30535664
|
||||
----
|
||||
|
||||
En lugar del final de la tarjeta, si hay espacio libre antes de la primera partición, se puede utilizar el principio, por ejemplo, para hacerlo a partir del sector 10:
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
sudo dd if=Next186_BIOS_zxdos_ddr3.COM of=/dev/rdisk6 bs=512 seek=10
|
||||
----
|
||||
|
||||
Si no estuviera ya, <<#_cores,instalar el core de PC XT>> en el ZXDOS+.
|
||||
|
||||
==== Teclado
|
||||
|
||||
===== Teclas especiales y botones
|
||||
|
||||
Durante la ejecución del core:
|
||||
|
||||
- `Ctrl+Alt+Supr` (`Caps Shift+Symbol Shift+N` en gomaDOS+): Soft reset.
|
||||
|
||||
==== Guía Básica
|
||||
|
||||
[.text-center]
|
||||
image:img/pcxt.png[pdfwidth=70%]
|
||||
|
||||
<<<
|
||||
|
||||
=== Chip-8
|
||||
|
||||
https://es.wikipedia.org/wiki/CHIP-8[CHIP-8] es un lenguaje de programación interpretado, desarrollado por Joseph Weisbecker. Fue inicialmente usado en los microcomputadores de 8 bits COSMAC VIP y Telmac 1800 a mediados de 1970. CHIP-8 tiene un descendiente llamado SCHIP (Super Chip), presentado por Erik Bryntse.
|
||||
|
||||
El core de ZXDOS+ está basada en una implementación ya existente https://bitbucket.org/csoren/fpga-chip8/[para FPGA] de la máquina virtual de SuperChip.
|
||||
|
||||
Existen múltiples sitios como https://johnearnest.github.io/chip8Archive/[CHIP-8 Archive] o https://github.com/mattmikolay/chip-8[CHIP-8 de Matthew Mikolay] donde se puede obtener software para este tipo de máquinas.
|
||||
|
||||
==== Formato de Tarjeta microSD
|
||||
|
||||
Se puede utilizar una tarjeta con la primera partición en formato FAT16 o FAT32 para almacenar ficheros ROM en formato `BIN` o `CH8` para usar con el core.
|
||||
|
||||
==== Teclado
|
||||
|
||||
La máquina CHIP-8 utiliza un teclado hexadecimal como entrada. La asignación en el teclado es la siguiente:
|
||||
|
||||
[align="center",width="25%",%header,cols=2*]
|
||||
|===
|
||||
|Chip-8|PS/2
|
||||
|`1 2 3 C`|`1 2 3 4`
|
||||
|`4 5 6 D`|`Q W E R`
|
||||
|`7 8 9 E`|`A S D F`
|
||||
|`A 0 B F`|`Z X C V`
|
||||
|===
|
||||
|
||||
===== Teclas especiales y botones
|
||||
|
||||
Durante la ejecución del core:
|
||||
|
||||
- `Esc` (o `Caps Shift+Espacio` en gomaDOS+) para mostrar u ocultar el menú.
|
||||
- `F12` (`Caps Shift+Symbol Shift+W` en gomaDOS+): Reset
|
||||
|
||||
<<<
|
||||
|
||||
==== Guía Básica
|
||||
|
||||
Pulsando `Esc` (o `Caps Shift+Espacio` en gomaDOS+, en modo de teclado `PC XT`) se muestra el menú de configuración. Se usan las teclas de cursor (`Caps Shift+5`, `Caps Shift+6`, `Caps Shift+7` y `Caps Shift+8` en gomaDOS+, en modo de teclado `PC XT`) y `Enter` para elegir y seleccionar las distintas opciones.
|
||||
|
||||
[.text-center]
|
||||
image:img/chip8.jpg[pdfwidth=70%]
|
||||
|
||||
En él se pueden activar, desactivar o configurar las siguientes opciones:
|
||||
|
||||
- Reiniciar el core (Reset)
|
||||
- Cambiar la velocidad de reloj del core (Clock Speed)
|
||||
- Cargar un archivo de ROM desde la tarjeta microSD (Load Rom)
|
||||
- Salir del menú (Exit)
|
||||
|
||||
[CAUTION]
|
||||
====
|
||||
Después de cargar cualquier ROM, pulsar siempre a continuación la tecla de reset para que funcione correctamente: `F12` (`Caps Shift+Symbol Shift+W` en gomaDOS+)
|
||||
====
|
||||
|
||||
<<<
|
||||
|
||||
== Otro Hardware
|
||||
|
||||
=== Codificadores rotatorios
|
||||
|
|
@ -2346,7 +2540,7 @@ aclocal && autoconf && autoheader && automake --add-missing
|
|||
make
|
||||
----
|
||||
|
||||
Si todo se ha hecho correctamente, se habrá generado el fichero `tzplay` que se puede copiar a donde se desee en el disco duro y utilizar. Se puede borrar el directorio descomprimido donde se compiló.
|
||||
Si todo se ha hecho correctamente, se habrá generado el fichero `playtzx` que se puede copiar a donde se desee en el disco duro y utilizar. Se puede borrar el directorio descomprimido donde se compiló.
|
||||
|
||||
==== Teléfono móvil, tableta, reproductor de sonido MP3, etc.
|
||||
|
||||
|
|
@ -2400,7 +2594,7 @@ image:img/MiniduinoBack.jpg[pdfwidth=50%]
|
|||
[.text-center]
|
||||
image:img/MiniduinoFront.jpg[pdfwidth=50%]
|
||||
|
||||
[cols=2*]
|
||||
[align="center",width="60%",cols=2*]
|
||||
|===
|
||||
|1
|
||||
|Alimentación
|
||||
|
|
@ -2435,6 +2629,11 @@ En la primera partición de la tarjeta se han de copiar los archivos de cinta (`
|
|||
El reproductor muestra las entradas de archivos y directorios en el orden de la tabla FAT interna, y no de manera alfabética. Si se desea ver esta información ordenada, se debe reorganizar la estructura de la tarjeta con una utilidad como FAT Sorter para Windows, https://fatsort.sourceforge.io/[FATsort] para Linux y MacOS, https://www.luisrios.eti.br/public/en_us/projects/yafs/[YAFS], http://www.trustfm.net/software/utilities/SDSorter.phpp[SDSorter] u otros.
|
||||
====
|
||||
|
||||
[CAUTION]
|
||||
====
|
||||
En el caso de utilizarse también la tarjeta con el core de <<#_pc_xt,PC XT>>, **no se debe utilizar ninguna utilidad de reordenación de FAT** ya que esto puede provocar que deje de arrancar correctamente DOS en dicho core.
|
||||
====
|
||||
|
||||
<<<
|
||||
|
||||
===== Uso
|
||||
|
|
@ -2679,7 +2878,7 @@ image:img/pizeroaddon.jpg[pdfwidth=70%]
|
|||
====
|
||||
Para la versión de NextPI disponible al escribir estas líneas (0.99D RTM), no es necesario utilizar todas conexiones, siendo suficiente utilizar:
|
||||
|
||||
[%header,cols=3*]
|
||||
[align="center",width="90%",%header,cols=3*]
|
||||
|===
|
||||
|Nombre
|
||||
|Pin
|
||||
|
|
@ -2832,7 +3031,7 @@ Véase la https://github.com/kounch/zx123_tool/#castellano[documentación de la
|
|||
|
||||
Entre los datos que se indican al añadir una ROM, hay una serie de indicadores para definir qué opciones de hardware, etc. se desean habilitar o deshabilitar al cargar esa ROM en concreto, según se puede ver en esta tabla:
|
||||
|
||||
[%header,cols=2*]
|
||||
[align="center",width="70%",%header,cols=2*]
|
||||
|===
|
||||
|`i`
|
||||
|Habilitar teclado issue 3 (en vez de issue 2)
|
||||
|
|
@ -2986,7 +3185,7 @@ image:img/gpio.jpg[pdfwidth=70%]
|
|||
|
||||
En este ejemplo, se utilizarán los pines `31`, `33`, `35`, `37` y `39` (correspondientes a `GPIO #6`, `GPIO #13`, `GPIO #19`, `GPIO #26` y `GND`), de la siguiente manera:
|
||||
|
||||
[%header,cols=3*]
|
||||
[align="center",width="50%",%header,cols=3*]
|
||||
|===
|
||||
|JTAG ZXDOS+
|
||||
|GPIO
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 377 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 548 KiB |
|
|
@ -1,31 +0,0 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int main (int argc, char *argv[]){
|
||||
FILE *f;
|
||||
unsigned char *scr;
|
||||
char nombre[256];
|
||||
int i,leido;
|
||||
|
||||
if (argc<2)
|
||||
return 1;
|
||||
|
||||
scr = (unsigned char *) malloc(65536);
|
||||
f = fopen (argv[1],"rb");
|
||||
if (!f)
|
||||
return 1;
|
||||
|
||||
leido = fread (scr, 1, 65536, f);
|
||||
fclose (f);
|
||||
|
||||
strcpy (nombre, argv[1]);
|
||||
nombre[strlen(nombre)-3]=0;
|
||||
strcat (nombre, "hex");
|
||||
|
||||
f = fopen (nombre, "wt");
|
||||
for (i=0;i<leido;i++)
|
||||
fprintf (f, "%.2X\n", scr[i]);
|
||||
fclose(f);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
https://sourceforge.net/p/emuscriptoria/code/HEAD/tree/desprot/fcut.c
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
@call ..\sdk\setvars.bat
|
||||
set output=\Google Drive\Proyecto ZX-Uno\cores_%2\
|
||||
echo define version %1 > version.asm
|
||||
call make.bat
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,68 +0,0 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
FILE *fi, *fo;
|
||||
int i;
|
||||
unsigned char mem[0x4004], core;
|
||||
unsigned short j, k;
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
if( argc==1 )
|
||||
printf("\n"
|
||||
"AddItem v0.02, simulates Machine and ROM addition to the ZX-Uno flash image\n\n"
|
||||
" AddItem <type> <input_file> <slot>\n\n"
|
||||
" <type> ROM or COREX, when 2<=X<=45, i.e. CORE5\n"
|
||||
" <input_file> Input .TAP file generate with GenRom\n"
|
||||
" <slot> Number of slot from 0 to 63, only when type is ROM\n\n"
|
||||
"All modifications occur in the file FLASH.ZX1\n\n"),
|
||||
exit(0);
|
||||
fo= fopen("FLASH.ZX1", "rb+");
|
||||
if( strstr(argv[1], "CORE")==argv[1] && strlen(argv[1])<=6 && strlen(argv[1])>=5 && argc==3 ){
|
||||
core= (strlen(argv[1])==5 ? argv[1][4] : (argv[1][4]-'0')*10+argv[1][5])-'2';
|
||||
if( core>43 )
|
||||
printf("\nCore number out of range: %d\n", core+2),
|
||||
exit(-1);
|
||||
fi= fopen(argv[2], "rb");
|
||||
if( !fi )
|
||||
printf("\nInput file not found: %s\n", argv[2]),
|
||||
exit(-1);
|
||||
fread(mem, 1, 0x58, fi);
|
||||
fseek(fo, 0x7100+(core<<5), SEEK_SET);
|
||||
fwrite(mem+0x34, 1, 0x20, fo);
|
||||
j= mem[3];
|
||||
fseek(fo, (core>7?0x160000:0xac000)+core*0x54000, SEEK_SET);
|
||||
for ( i=0; i<j; i++ )
|
||||
fread(mem, 1, 0x4004, fi),
|
||||
fwrite(mem, 1, 0x4000, fo);
|
||||
}
|
||||
else if( !strcmp(argv[1], "ROM") && argc==4 ){
|
||||
fi= fopen(argv[3], "rb");
|
||||
if( !fi )
|
||||
printf("\nInput file not found: %s\n", argv[3]),
|
||||
exit(-1);
|
||||
fseek(fo, 0x7000, SEEK_SET);
|
||||
fread(mem, 1, 0x40, fo);
|
||||
for ( i= 0; i<0x40; i++ )
|
||||
if( mem[i]==0xff )
|
||||
break;
|
||||
mem[i]= i;
|
||||
fseek(fo, 0x7000, SEEK_SET);
|
||||
fwrite(mem, 1, 0x40, fo);
|
||||
fread(mem, 1, 0x58, fi);
|
||||
fseek(fo, 0x6000|i<<6, SEEK_SET);
|
||||
k= mem[2]= atoi(argv[2]);
|
||||
fwrite(mem+2, 1, 0x20, fo);
|
||||
fwrite(mem+0x34, 1, 0x20, fo);
|
||||
j= mem[3];
|
||||
for ( i=0; i<j; i++ )
|
||||
fseek(fo, (k<19?0xc000:0x300000)+k*0x4000, SEEK_SET),
|
||||
k= (k+1)&0x3f,
|
||||
fread(mem, 1, 0x4004, fi),
|
||||
fwrite(mem, 1, 0x4000, fo);
|
||||
}
|
||||
else
|
||||
printf("\nInvalid parameters\n"),
|
||||
exit(-1);
|
||||
printf("\nDone\n");
|
||||
}
|
||||
Binary file not shown.
|
|
@ -1,163 +0,0 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
FILE *fi, *fo;
|
||||
int i;
|
||||
unsigned char mem[0x4004+0x55], checksum;
|
||||
unsigned short j, k, crc, tab[]= {
|
||||
0x0000, 0x2110, 0x4220, 0x6330, 0x8440, 0xa550, 0xc660, 0xe770,
|
||||
0x0881, 0x2991, 0x4aa1, 0x6bb1, 0x8cc1, 0xadd1, 0xcee1, 0xeff1,
|
||||
0x3112, 0x1002, 0x7332, 0x5222, 0xb552, 0x9442, 0xf772, 0xd662,
|
||||
0x3993, 0x1883, 0x7bb3, 0x5aa3, 0xbdd3, 0x9cc3, 0xfff3, 0xdee3,
|
||||
0x6224, 0x4334, 0x2004, 0x0114, 0xe664, 0xc774, 0xa444, 0x8554,
|
||||
0x6aa5, 0x4bb5, 0x2885, 0x0995, 0xeee5, 0xcff5, 0xacc5, 0x8dd5,
|
||||
0x5336, 0x7226, 0x1116, 0x3006, 0xd776, 0xf666, 0x9556, 0xb446,
|
||||
0x5bb7, 0x7aa7, 0x1997, 0x3887, 0xdff7, 0xfee7, 0x9dd7, 0xbcc7,
|
||||
0xc448, 0xe558, 0x8668, 0xa778, 0x4008, 0x6118, 0x0228, 0x2338,
|
||||
0xccc9, 0xedd9, 0x8ee9, 0xaff9, 0x4889, 0x6999, 0x0aa9, 0x2bb9,
|
||||
0xf55a, 0xd44a, 0xb77a, 0x966a, 0x711a, 0x500a, 0x333a, 0x122a,
|
||||
0xfddb, 0xdccb, 0xbffb, 0x9eeb, 0x799b, 0x588b, 0x3bbb, 0x1aab,
|
||||
0xa66c, 0x877c, 0xe44c, 0xc55c, 0x222c, 0x033c, 0x600c, 0x411c,
|
||||
0xaeed, 0x8ffd, 0xeccd, 0xcddd, 0x2aad, 0x0bbd, 0x688d, 0x499d,
|
||||
0x977e, 0xb66e, 0xd55e, 0xf44e, 0x133e, 0x322e, 0x511e, 0x700e,
|
||||
0x9fff, 0xbeef, 0xdddf, 0xfccf, 0x1bbf, 0x3aaf, 0x599f, 0x788f,
|
||||
0x8891, 0xa981, 0xcab1, 0xeba1, 0x0cd1, 0x2dc1, 0x4ef1, 0x6fe1,
|
||||
0x8010, 0xa100, 0xc230, 0xe320, 0x0450, 0x2540, 0x4670, 0x6760,
|
||||
0xb983, 0x9893, 0xfba3, 0xdab3, 0x3dc3, 0x1cd3, 0x7fe3, 0x5ef3,
|
||||
0xb102, 0x9012, 0xf322, 0xd232, 0x3542, 0x1452, 0x7762, 0x5672,
|
||||
0xeab5, 0xcba5, 0xa895, 0x8985, 0x6ef5, 0x4fe5, 0x2cd5, 0x0dc5,
|
||||
0xe234, 0xc324, 0xa014, 0x8104, 0x6674, 0x4764, 0x2454, 0x0544,
|
||||
0xdba7, 0xfab7, 0x9987, 0xb897, 0x5fe7, 0x7ef7, 0x1dc7, 0x3cd7,
|
||||
0xd326, 0xf236, 0x9106, 0xb016, 0x5766, 0x7676, 0x1546, 0x3456,
|
||||
0x4cd9, 0x6dc9, 0x0ef9, 0x2fe9, 0xc899, 0xe989, 0x8ab9, 0xaba9,
|
||||
0x4458, 0x6548, 0x0678, 0x2768, 0xc018, 0xe108, 0x8238, 0xa328,
|
||||
0x7dcb, 0x5cdb, 0x3feb, 0x1efb, 0xf98b, 0xd89b, 0xbbab, 0x9abb,
|
||||
0x754a, 0x545a, 0x376a, 0x167a, 0xf10a, 0xd01a, 0xb32a, 0x923a,
|
||||
0x2efd, 0x0fed, 0x6cdd, 0x4dcd, 0xaabd, 0x8bad, 0xe89d, 0xc98d,
|
||||
0x267c, 0x076c, 0x645c, 0x454c, 0xa23c, 0x832c, 0xe01c, 0xc10c,
|
||||
0x1fef, 0x3eff, 0x5dcf, 0x7cdf, 0x9baf, 0xbabf, 0xd98f, 0xf89f,
|
||||
0x176e, 0x367e, 0x554e, 0x745e, 0x932e, 0xb23e, 0xd10e, 0xf01e};
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
if( argc==1 )
|
||||
printf("\n"
|
||||
"GenRom v0.06, generates a TAP for loading a ROM in the ZX-Uno, 2016-07-04\n\n"
|
||||
" GenRom <params> <name> <input_file> <output_file>\n\n"
|
||||
" <params> Set 13 flags parameters, combinable\n"
|
||||
" 0 MODE=00, DI1FFD=DI7FFD=DITAY=DIAY=DIRADAS=DITIMEX=DIULAPLUS=0\n"
|
||||
" I2KB=DISCONT=DIVEN=DISNMI=DISD=ENMMU=DIROM1F=DIROM7F=0\n"
|
||||
" i Change Issue2\n"
|
||||
" t Force Timing to 128\n"
|
||||
" p Force Timing to Pentagon\n"
|
||||
" c Disable Contention\n"
|
||||
" d Enable DivMMC paging\n"
|
||||
" n Enable NMI-DivMMC\n"
|
||||
" s Disable SD ports (DivMMC and ZXMMC)\n"
|
||||
" m Enable horizontal MMU in Timex Sinclair\n"
|
||||
" h Disable high bit ROM (1FFD bit 2)\n"
|
||||
" l Disable low bit ROM (7FFD bit 4)\n"
|
||||
" 1 Disable 1FFD port (+2A/+3 memory paging)\n"
|
||||
" 7 Disable 7FFD port (128K memory paging)\n"
|
||||
" 2 Disable 2nd AY chip\n"
|
||||
" a Disable main AY chip\n"
|
||||
" r Disable Radastanian mode\n"
|
||||
" x Disable Timex mode\n"
|
||||
" u Disable Ulaplus\n"
|
||||
" <name> Name between single quotes up to 32 chars\n"
|
||||
" <input_file> Input ROM file\n"
|
||||
" <output_file> Output TAP file\n\n"
|
||||
"All params are mandatory\n\n"),
|
||||
exit(0);
|
||||
if( argc!=5 )
|
||||
printf("\nInvalid number of parameters\n"),
|
||||
exit(-1);
|
||||
fi= fopen(argv[3], "rb");
|
||||
if( !fi )
|
||||
printf("\nInput file not found: %s\n", argv[3]),
|
||||
exit(-1);
|
||||
fseek(fi, 0, SEEK_END);
|
||||
i= ftell(fi);
|
||||
if( i&0x3fff && i!=8192 )
|
||||
printf("\nInput file size must be multiple of 16384: %s\n", argv[3]),
|
||||
exit(-1);
|
||||
fo= fopen(argv[4], "wb+");
|
||||
if( !fo )
|
||||
printf("\nCannot create output file: %s\n", argv[4]),
|
||||
exit(-1);
|
||||
fwrite(mem, 1, 0x55, fo);
|
||||
j= i>>14;
|
||||
mem[0]= 0x02;
|
||||
mem[1]= 0x40;
|
||||
mem[2]= 0xff;
|
||||
mem[0x4004]= 0x53;
|
||||
mem[0x4005]= 0x00;
|
||||
mem[0x4006]= 0xff;
|
||||
if( j ){
|
||||
for ( i= j; i--; ){
|
||||
fseek(fi, i<<14, SEEK_SET);
|
||||
fread(mem+3, 1, 0x4000, fi);
|
||||
for ( checksum= 0, k= 3; k<0x4003; ++k )
|
||||
checksum|= mem[k];
|
||||
if( checksum )
|
||||
break;
|
||||
}
|
||||
j= i+1;
|
||||
fseek(fi, 0, SEEK_SET);
|
||||
for ( i= 0; i<j; i++ ){
|
||||
fread(mem+3, 1, 0x4000, fi);
|
||||
crc= 0xffff;
|
||||
for ( checksum= 0xff, k= 3; k<0x4003; ++k )
|
||||
crc= tab[mem[k] ^ crc & 0xff] ^ crc>>8,
|
||||
checksum^= mem[k];
|
||||
*(unsigned short*)(mem+0x400c+(j-i)*2)= crc;
|
||||
mem[0x4003]= checksum;
|
||||
fwrite(mem, 1, 0x4004, fo);
|
||||
}
|
||||
}
|
||||
else{
|
||||
fseek(fi, 0, SEEK_SET);
|
||||
mem[1]= 0x20;
|
||||
fread(mem+3, j= 1, 0x2000, fi);
|
||||
crc= 0xffff;
|
||||
for ( checksum= 0xff, k= 3; k<0x2003; ++k )
|
||||
crc= tab[mem[k] ^ crc & 0xff] ^ crc>>8,
|
||||
checksum^= mem[k];
|
||||
*(unsigned short*)(mem+0x400e)= crc;
|
||||
mem[0x2003]= checksum;
|
||||
fwrite(mem, 1, 0x2004, fo);
|
||||
}
|
||||
fseek(fo, 0, SEEK_SET);
|
||||
mem[0x4007]= j;
|
||||
mem[0x4008]= 0b00110000;
|
||||
mem[0x4009]= 0b00000000;
|
||||
for ( i= 0; i<strlen(argv[1]); i++ )
|
||||
switch( argv[1][i] ){
|
||||
case 'i': mem[0x4008]^= 0b00100000; break;
|
||||
case 'c': mem[0x4008]^= 0b00010000; break;
|
||||
case 'd': mem[0x4008]^= 0b00001000; break;
|
||||
case 'n': mem[0x4008]^= 0b00000100; break;
|
||||
case 'p': mem[0x4008]^= 0b00000010; break;
|
||||
case 't': mem[0x4008]^= 0b00000001; break;
|
||||
case 's': mem[0x4009]^= 0b10000000; break;
|
||||
case 'm': mem[0x4009]^= 0b01000000; break;
|
||||
case 'h': mem[0x4009]^= 0b00100000; break;
|
||||
case 'l': mem[0x4009]^= 0b00010000; break;
|
||||
case '1': mem[0x4009]^= 0b00001000; break;
|
||||
case '7': mem[0x4009]^= 0b00000100; break;
|
||||
case '2': mem[0x4009]^= 0b00000010; break;
|
||||
case 'a': mem[0x4009]^= 0b00000001; break;
|
||||
case 'r': mem[0x400a]^= 0b00000100; break;
|
||||
case 'x': mem[0x400a]^= 0b00000010; break;
|
||||
case 'u': mem[0x400a]^= 0b00000001;
|
||||
}
|
||||
for ( i= 0; i<32 && i<strlen(argv[2]); i++ )
|
||||
mem[i+0x4006+0x32]= argv[2][i];
|
||||
while( ++i<33 )
|
||||
mem[i+0x4006+0x31]= ' ';
|
||||
for ( checksum= 0xff, k= 0x4007; k<0x4058; ++k )
|
||||
checksum^= mem[k];
|
||||
mem[0x4058]= checksum;
|
||||
fwrite(mem+0x4004, 1, 0x55, fo);
|
||||
printf("\nFile generated successfully\n");
|
||||
}
|
||||
Binary file not shown.
|
|
@ -6,35 +6,16 @@
|
|||
# * GNU/Linux
|
||||
# * Windows NT (using MinGW/MSYS/Cygwin/WSL)
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
GENROM = GenRom.exe
|
||||
ADDITEM = AddItem.exe
|
||||
else
|
||||
GENROM = GenRom
|
||||
ADDITEM = AddItem
|
||||
endif
|
||||
include ../sdk/common.mk
|
||||
|
||||
.PHONY: all
|
||||
all: | FLASHempty.ZX1 $(GENROM) $(ADDITEM) ./addroms.sh ./addcores.sh roms.txt cores.txt
|
||||
all: | FLASHempty.ZX1 $(ADDITEM) ./addroms.sh ./addcores.sh roms.txt cores.txt
|
||||
cp FLASHempty.ZX1 FLASH.ZX1
|
||||
./addroms.sh
|
||||
./addcores.sh
|
||||
|
||||
ifneq ($(OS),Windows_NT)
|
||||
$(GENROM): GenRom.c
|
||||
$(CC) $(CFLAGS) $< -o $@
|
||||
|
||||
$(ADDITEM): AddItem.c
|
||||
$(CC) $(CFLAGS) $< -o $@
|
||||
endif
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
ifeq ($(OS),Windows_NT)
|
||||
# Nothing to do
|
||||
else
|
||||
rm -f $(GENROM) $(ADDITEM)
|
||||
endif
|
||||
clean:;
|
||||
|
||||
.PHONY: dist-clean
|
||||
dist-clean: clean
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ rem SPDX-FileNotice: Based on code by Antonio Villena <_@antoniovillena.es>
|
|||
rem
|
||||
rem SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
call ..\sdk\setvars.bat
|
||||
|
||||
set /a i=2
|
||||
for /f "eol=# tokens=1,2,3 delims=;" %%a in (cores.txt) do call :AddCore %%a %%b %%c
|
||||
exit /b
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@
|
|||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
GENROM=./GenRom
|
||||
ADDITEM=./AddItem
|
||||
i=2
|
||||
|
||||
Error() {
|
||||
|
|
@ -17,8 +15,8 @@ Error() {
|
|||
AddCore() {
|
||||
local f=${3%.*}.tap
|
||||
echo "Adding core $i: \"$2\" ($3)..."
|
||||
$GENROM $1 "$2" $3 $f || Error $?
|
||||
$ADDITEM CORE$i $f || Error $?
|
||||
GenRom $1 "$2" $3 $f || Error $?
|
||||
AddItem CORE$i $f || Error $?
|
||||
rm -f $f
|
||||
let i+=1
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ rem SPDX-FileNotice: Based on code by Antonio Villena <_@antoniovillena.es>
|
|||
rem
|
||||
rem SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
call ..\sdk\setvars.bat
|
||||
|
||||
set /a i=0
|
||||
for /f "eol=# tokens=1,2,3 delims=;" %%a in (roms.txt) do call :AddROM %%a %%b %%c
|
||||
exit /b
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@
|
|||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
GENROM=./GenRom
|
||||
ADDITEM=./AddItem
|
||||
i=0
|
||||
|
||||
Error() {
|
||||
|
|
@ -19,8 +17,8 @@ AddROM() {
|
|||
local i1=$((i+n/16384-1))
|
||||
local f=${3%.*}.tap
|
||||
echo "Adding ROM in slots $i-$i1: \"$2\" ($3)..."
|
||||
$GENROM $1 "$2" $3 $f || Error $?
|
||||
$ADDITEM ROM $i $f || Error $?
|
||||
GenRom $1 "$2" $3 $f || Error $?
|
||||
AddItem ROM $i $f || Error $?
|
||||
rm -f $f
|
||||
let i=i1+1
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
@rem SPDX-FileCopyrightText: 2019 Antonio Villena <_@antoniovillena.es>
|
||||
@rem
|
||||
@rem SPDX-FileContributor: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
|
||||
@rem
|
||||
@rem SPDX-License-Identifier: GPL-3.0-only
|
||||
copy /Y FLASHempty.ZX1 FLASH.ZX1
|
||||
call addroms.bat
|
||||
call addcores.bat
|
||||
|
|
|
|||
|
|
@ -1,8 +1,17 @@
|
|||
All the files for ZX-Uno project repository:
|
||||
|
||||
http://zxuno.com
|
||||
|
||||
https://svn.zxuno.com/svn/zxuno/
|
||||
|
||||
Open Source FPGA Foundation:
|
||||
|
||||
https://osfpga.org/osfpga-foundation-launched/
|
||||
|
||||
https://osfpga.org/
|
||||
|
||||
https://github.com/os-fpga/open-source-fpga-resource
|
||||
|
||||
License is Creative Commons by SA, except the cores and ugophy(gopher browser) that has its own license
|
||||
|
||||
| Core | Original author | Port Author | Video output | SD | EAR | Audio | Keyb | Mou | Joystick | Updated on | DL | Help
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
Copyright (c) <year> <owner>. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
|
@ -0,0 +1,121 @@
|
|||
Creative Commons Legal Code
|
||||
|
||||
CC0 1.0 Universal
|
||||
|
||||
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
||||
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
||||
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
||||
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
||||
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
||||
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
||||
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
||||
HEREUNDER.
|
||||
|
||||
Statement of Purpose
|
||||
|
||||
The laws of most jurisdictions throughout the world automatically confer
|
||||
exclusive Copyright and Related Rights (defined below) upon the creator
|
||||
and subsequent owner(s) (each and all, an "owner") of an original work of
|
||||
authorship and/or a database (each, a "Work").
|
||||
|
||||
Certain owners wish to permanently relinquish those rights to a Work for
|
||||
the purpose of contributing to a commons of creative, cultural and
|
||||
scientific works ("Commons") that the public can reliably and without fear
|
||||
of later claims of infringement build upon, modify, incorporate in other
|
||||
works, reuse and redistribute as freely as possible in any form whatsoever
|
||||
and for any purposes, including without limitation commercial purposes.
|
||||
These owners may contribute to the Commons to promote the ideal of a free
|
||||
culture and the further production of creative, cultural and scientific
|
||||
works, or to gain reputation or greater distribution for their Work in
|
||||
part through the use and efforts of others.
|
||||
|
||||
For these and/or other purposes and motivations, and without any
|
||||
expectation of additional consideration or compensation, the person
|
||||
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
||||
is an owner of Copyright and Related Rights in the Work, voluntarily
|
||||
elects to apply CC0 to the Work and publicly distribute the Work under its
|
||||
terms, with knowledge of his or her Copyright and Related Rights in the
|
||||
Work and the meaning and intended legal effect of CC0 on those rights.
|
||||
|
||||
1. Copyright and Related Rights. A Work made available under CC0 may be
|
||||
protected by copyright and related or neighboring rights ("Copyright and
|
||||
Related Rights"). Copyright and Related Rights include, but are not
|
||||
limited to, the following:
|
||||
|
||||
i. the right to reproduce, adapt, distribute, perform, display,
|
||||
communicate, and translate a Work;
|
||||
ii. moral rights retained by the original author(s) and/or performer(s);
|
||||
iii. publicity and privacy rights pertaining to a person's image or
|
||||
likeness depicted in a Work;
|
||||
iv. rights protecting against unfair competition in regards to a Work,
|
||||
subject to the limitations in paragraph 4(a), below;
|
||||
v. rights protecting the extraction, dissemination, use and reuse of data
|
||||
in a Work;
|
||||
vi. database rights (such as those arising under Directive 96/9/EC of the
|
||||
European Parliament and of the Council of 11 March 1996 on the legal
|
||||
protection of databases, and under any national implementation
|
||||
thereof, including any amended or successor version of such
|
||||
directive); and
|
||||
vii. other similar, equivalent or corresponding rights throughout the
|
||||
world based on applicable law or treaty, and any national
|
||||
implementations thereof.
|
||||
|
||||
2. Waiver. To the greatest extent permitted by, but not in contravention
|
||||
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
||||
irrevocably and unconditionally waives, abandons, and surrenders all of
|
||||
Affirmer's Copyright and Related Rights and associated claims and causes
|
||||
of action, whether now known or unknown (including existing as well as
|
||||
future claims and causes of action), in the Work (i) in all territories
|
||||
worldwide, (ii) for the maximum duration provided by applicable law or
|
||||
treaty (including future time extensions), (iii) in any current or future
|
||||
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
||||
including without limitation commercial, advertising or promotional
|
||||
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
||||
member of the public at large and to the detriment of Affirmer's heirs and
|
||||
successors, fully intending that such Waiver shall not be subject to
|
||||
revocation, rescission, cancellation, termination, or any other legal or
|
||||
equitable action to disrupt the quiet enjoyment of the Work by the public
|
||||
as contemplated by Affirmer's express Statement of Purpose.
|
||||
|
||||
3. Public License Fallback. Should any part of the Waiver for any reason
|
||||
be judged legally invalid or ineffective under applicable law, then the
|
||||
Waiver shall be preserved to the maximum extent permitted taking into
|
||||
account Affirmer's express Statement of Purpose. In addition, to the
|
||||
extent the Waiver is so judged Affirmer hereby grants to each affected
|
||||
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
||||
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
||||
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
||||
maximum duration provided by applicable law or treaty (including future
|
||||
time extensions), (iii) in any current or future medium and for any number
|
||||
of copies, and (iv) for any purpose whatsoever, including without
|
||||
limitation commercial, advertising or promotional purposes (the
|
||||
"License"). The License shall be deemed effective as of the date CC0 was
|
||||
applied by Affirmer to the Work. Should any part of the License for any
|
||||
reason be judged legally invalid or ineffective under applicable law, such
|
||||
partial invalidity or ineffectiveness shall not invalidate the remainder
|
||||
of the License, and in such case Affirmer hereby affirms that he or she
|
||||
will not (i) exercise any of his or her remaining Copyright and Related
|
||||
Rights in the Work or (ii) assert any associated claims and causes of
|
||||
action with respect to the Work, in either case contrary to Affirmer's
|
||||
express Statement of Purpose.
|
||||
|
||||
4. Limitations and Disclaimers.
|
||||
|
||||
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
||||
surrendered, licensed or otherwise affected by this document.
|
||||
b. Affirmer offers the Work as-is and makes no representations or
|
||||
warranties of any kind concerning the Work, express, implied,
|
||||
statutory or otherwise, including without limitation warranties of
|
||||
title, merchantability, fitness for a particular purpose, non
|
||||
infringement, or the absence of latent or other defects, accuracy, or
|
||||
the present or absence of errors, whether or not discoverable, all to
|
||||
the greatest extent permissible under applicable law.
|
||||
c. Affirmer disclaims responsibility for clearing rights of other persons
|
||||
that may apply to the Work or any use thereof, including without
|
||||
limitation any person's Copyright and Related Rights in the Work.
|
||||
Further, Affirmer disclaims responsibility for obtaining any necessary
|
||||
consents, permissions or other rights required for any use of the
|
||||
Work.
|
||||
d. Affirmer understands and acknowledges that Creative Commons is not a
|
||||
party to this document and has no duty or obligation with respect to
|
||||
this CC0 or use of the Work.
|
||||
|
|
@ -0,0 +1,149 @@
|
|||
GNU Free Documentation License
|
||||
Version 1.3, 3 November 2008
|
||||
|
||||
Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
0. PREAMBLE
|
||||
|
||||
The purpose of this License is to make a manual, textbook, or other functional and useful document "free" in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others.
|
||||
|
||||
This License is a kind of "copyleft", which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software.
|
||||
|
||||
We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference.
|
||||
|
||||
1. APPLICABILITY AND DEFINITIONS
|
||||
|
||||
This License applies to any manual or other work, in any medium, that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. Such a notice grants a world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein. The "Document", below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as "you". You accept the license if you copy, modify or distribute the work in a way requiring permission under copyright law.
|
||||
|
||||
A "Modified Version" of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language.
|
||||
|
||||
A "Secondary Section" is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them.
|
||||
|
||||
The "Invariant Sections" are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none.
|
||||
|
||||
The "Cover Texts" are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words.
|
||||
|
||||
A "Transparent" copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not "Transparent" is called "Opaque".
|
||||
|
||||
Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG. Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only.
|
||||
|
||||
The "Title Page" means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, "Title Page" means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text.
|
||||
|
||||
The "publisher" means any person or entity that distributes copies of the Document to the public.
|
||||
|
||||
A section "Entitled XYZ" means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as "Acknowledgements", "Dedications", "Endorsements", or "History".) To "Preserve the Title" of such a section when you modify the Document means that it remains a section "Entitled XYZ" according to this definition.
|
||||
|
||||
The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License.
|
||||
|
||||
2. VERBATIM COPYING
|
||||
|
||||
You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3.
|
||||
|
||||
You may also lend copies, under the same conditions stated above, and you may publicly display copies.
|
||||
|
||||
3. COPYING IN QUANTITY
|
||||
|
||||
If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects.
|
||||
|
||||
If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages.
|
||||
|
||||
If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public.
|
||||
|
||||
It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document.
|
||||
|
||||
4. MODIFICATIONS
|
||||
|
||||
You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version:
|
||||
|
||||
A. Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission.
|
||||
B. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this requirement.
|
||||
C. State on the Title page the name of the publisher of the Modified Version, as the publisher.
|
||||
D. Preserve all the copyright notices of the Document.
|
||||
E. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices.
|
||||
F. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below.
|
||||
G. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice. H. Include an unaltered copy of this License.
|
||||
I. Preserve the section Entitled "History", Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section Entitled "History" in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence.
|
||||
J. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the "History" section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission.
|
||||
K. For any section Entitled "Acknowledgements" or "Dedications", Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein.
|
||||
L. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles.
|
||||
M. Delete any section Entitled "Endorsements". Such a section may not be included in the Modified Version.
|
||||
N. Do not retitle any existing section to be Entitled "Endorsements" or to conflict in title with any Invariant Section.
|
||||
O. Preserve any Warranty Disclaimers.
|
||||
|
||||
If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles.
|
||||
|
||||
You may add a section Entitled "Endorsements", provided it contains nothing but endorsements of your Modified Version by various parties--for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard.
|
||||
|
||||
You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one.
|
||||
|
||||
The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version.
|
||||
|
||||
5. COMBINING DOCUMENTS
|
||||
|
||||
You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers.
|
||||
|
||||
The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work.
|
||||
|
||||
In the combination, you must combine any sections Entitled "History" in the various original documents, forming one section Entitled "History"; likewise combine any sections Entitled "Acknowledgements", and any sections Entitled "Dedications". You must delete all sections Entitled "Endorsements".
|
||||
|
||||
6. COLLECTIONS OF DOCUMENTS
|
||||
|
||||
You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects.
|
||||
|
||||
You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document.
|
||||
|
||||
7. AGGREGATION WITH INDEPENDENT WORKS
|
||||
|
||||
A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called an "aggregate" if the copyright resulting from the compilation is not used to limit the legal rights of the compilation's users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document.
|
||||
|
||||
If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Document's Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate.
|
||||
|
||||
8. TRANSLATION
|
||||
|
||||
Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail.
|
||||
|
||||
If a section in the Document is Entitled "Acknowledgements", "Dedications", or "History", the requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual title.
|
||||
|
||||
9. TERMINATION
|
||||
|
||||
You may not copy, modify, sublicense, or distribute the Document except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, or distribute it is void, and will automatically terminate your rights under this License.
|
||||
|
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, receipt of a copy of some or all of the same material does not give you any rights to use it.
|
||||
|
||||
10. FUTURE REVISIONS OF THIS LICENSE
|
||||
|
||||
The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/copyleft/.
|
||||
|
||||
Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License "or any later version" applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. If the Document specifies that a proxy can decide which future versions of this License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Document.
|
||||
|
||||
11. RELICENSING
|
||||
|
||||
"Massive Multiauthor Collaboration Site" (or "MMC Site") means any World Wide Web server that publishes copyrightable works and also provides prominent facilities for anybody to edit those works. A public wiki that anybody can edit is an example of such a server. A "Massive Multiauthor Collaboration" (or "MMC") contained in the site means any set of copyrightable works thus published on the MMC site.
|
||||
|
||||
"CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0 license published by Creative Commons Corporation, a not-for-profit corporation with a principal place of business in San Francisco, California, as well as future copyleft versions of that license published by that same organization.
|
||||
|
||||
"Incorporate" means to publish or republish a Document, in whole or in part, as part of another Document.
|
||||
|
||||
An MMC is "eligible for relicensing" if it is licensed under this License, and if all works that were first published under this License somewhere other than this MMC, and subsequently incorporated in whole or in part into the MMC, (1) had no cover texts or invariant sections, and (2) were thus incorporated prior to November 1, 2008.
|
||||
|
||||
The operator of an MMC Site may republish an MMC contained in the site under CC-BY-SA on the same site at any time before August 1, 2009, provided the MMC is eligible for relicensing.
|
||||
|
||||
ADDENDUM: How to use this License for your documents
|
||||
|
||||
To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page:
|
||||
|
||||
Copyright (c) YEAR YOUR NAME. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
|
||||
|
||||
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the "with...Texts." line with this:
|
||||
|
||||
with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
|
||||
|
||||
If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those two alternatives to suit the situation.
|
||||
|
||||
If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software.
|
||||
|
|
@ -0,0 +1,232 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
“This License” refers to version 3 of the GNU General Public License.
|
||||
|
||||
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||
|
||||
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
|
||||
|
||||
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
|
||||
|
||||
A “covered work” means either the unmodified Program or a work based on the Program.
|
||||
|
||||
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||
|
||||
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
|
||||
|
||||
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||
|
||||
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
|
||||
|
||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||
|
||||
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||
|
||||
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||
|
||||
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
|
||||
|
||||
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||
|
||||
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
|
|
@ -0,0 +1,232 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
“This License” refers to version 3 of the GNU General Public License.
|
||||
|
||||
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||
|
||||
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
|
||||
|
||||
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
|
||||
|
||||
A “covered work” means either the unmodified Program or a work based on the Program.
|
||||
|
||||
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||
|
||||
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
|
||||
|
||||
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||
|
||||
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
|
||||
|
||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||
|
||||
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||
|
||||
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||
|
||||
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
|
||||
|
||||
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||
|
||||
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
57
sdk/Makefile
57
sdk/Makefile
|
|
@ -3,19 +3,64 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# Supported environments:
|
||||
# * GNU/Linux
|
||||
# * Windows NT (using MinGW/MSYS/Cygwin/WSL)
|
||||
# * GNU on Linux, FreeBSD etc.
|
||||
# * GNU on Windows NT (using MinGW/MSYS/Cygwin/WSL)
|
||||
#
|
||||
# Build:
|
||||
# make [BUILD=<BUILD>] [FORCEBUILD=<FB_FLAG>] [<TARGET>]
|
||||
# Clean:
|
||||
# make [BUILD=<BUILD>] [FORCECLEAN=<FC_FLAG>] clean
|
||||
#
|
||||
# where:
|
||||
# <BUILD> is one of: mingw32, mingw64.
|
||||
# <FB_FLAG> is 1 to force build, otherwise do not (default).
|
||||
# <FC_FLAG> is 1 to force clean, otherwise do not (default).
|
||||
# <TARGET> is one of values of TOOLS variable (see below).
|
||||
#
|
||||
# Notes:
|
||||
# BUILD, FORCEBUILD, FORCECLEAN variables may be set in user's environment.
|
||||
|
||||
include common.mk
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
SJASMPLUS := sjasmplus.exe
|
||||
ifeq ($(BUILD),mingw32)
|
||||
FORCEBUILD:=1
|
||||
else ifeq ($(BUILD),mingw64)
|
||||
FORCEBUILD:=1
|
||||
else
|
||||
SJASMPLUS := sjasmplus
|
||||
BUILD:=
|
||||
FORCEBUILD:=0
|
||||
endif
|
||||
|
||||
ifdef $(FORCECLEAN)
|
||||
ifneq ($(FORCECLEAN),1)
|
||||
FORCECLEAN:=0
|
||||
else
|
||||
FORCECLEAN:=0
|
||||
endif
|
||||
endif
|
||||
|
||||
export BUILD
|
||||
export FORCEBUILD
|
||||
export FORCECLEAN
|
||||
|
||||
SJASMPLUS := sjasmplus$(EXECEXT)
|
||||
ZX7B := zx7b$(EXECEXT)
|
||||
BIN2HEX := bin2hex$(EXECEXT)
|
||||
FCUT := fcut$(EXECEXT)
|
||||
FPAD := fpad$(EXECEXT)
|
||||
FPOKE := fpoke$(EXECEXT)
|
||||
GENROM := GenRom$(EXECEXT)
|
||||
ADDITEM := AddItem$(EXECEXT)
|
||||
|
||||
TOOLS:=\
|
||||
bin/$(SJASMPLUS)
|
||||
bin/$(SJASMPLUS) \
|
||||
bin/$(ZX7B) \
|
||||
bin/$(BIN2HEX) \
|
||||
bin/$(FCUT) \
|
||||
bin/$(FPAD) \
|
||||
bin/$(FPOKE) \
|
||||
bin/$(GENROM) \
|
||||
bin/$(ADDITEM)
|
||||
|
||||
.PHONY: all
|
||||
all: $(TOOLS)
|
||||
|
|
|
|||
125
sdk/README.md
125
sdk/README.md
|
|
@ -22,21 +22,70 @@ Check it out by using this [reuse-tool](https://github.com/fsfe/reuse-tool).
|
|||
|
||||
# 2. Using SDK in GNU environment on Linux, FreeBSD etc.
|
||||
|
||||
## 2.1. Build tools
|
||||
## 2.1. Prepare a build environment
|
||||
|
||||
To build all tools type:
|
||||
### 2.1.1. On a Debian-based system (Ubuntu etc.)
|
||||
|
||||
Open terminal and type:
|
||||
|
||||
```bash
|
||||
make
|
||||
# apt install -y build-essential git cmake libboost-all-dev
|
||||
```
|
||||
|
||||
To build only **sjasmplus** type:
|
||||
**NOTE**: here the first symbol "#" means that the following command must be run as *root* or using `sudo` utility.
|
||||
|
||||
To use cross-compilation for Windows platform install *mingw-w64* package:
|
||||
|
||||
```bash
|
||||
make bin/sjasmplus
|
||||
# apt install -y mingw-w64
|
||||
```
|
||||
|
||||
## 2.2. Clean tools
|
||||
### 2.1.2. Clone repository
|
||||
|
||||
Choose a directory for project and type:
|
||||
|
||||
```bash
|
||||
git clone git://github.com/zxdos/zxuno.git zxuno
|
||||
```
|
||||
|
||||
Now `zxuno` sub-directory is the ZX-Uno project's root directory and all actions we'll make inside it.
|
||||
|
||||
## 2.2. Build tools
|
||||
|
||||
Go to the project's root directory and type one of the following commands:
|
||||
|
||||
Command | Target
|
||||
----|----
|
||||
`make` | all tools
|
||||
`make bin/sjasmplus` | **sjasmplus**
|
||||
`make bin/zx7b` | **zx7b**
|
||||
`make bin/bin2hex` | **bin2hex**
|
||||
`make bin/fcut` | **fcut**
|
||||
`make bin/fpad` | **fpad**
|
||||
`make bin/fpoke` | **fpoke**
|
||||
`make bin/GenRom` | **GenRom**
|
||||
`make bin/AddItem` | **AddItem**
|
||||
|
||||
To build using MinGW add this parameter for `make` tool:
|
||||
|
||||
Parameter | Target system
|
||||
----|----
|
||||
`BUILD=mingw32` | Windows with i686 architecture (32-bits)
|
||||
`BUILD=mingw64` | Windows with AMD64 architecture (64-bits)
|
||||
|
||||
Remember to specify proper file extension (`.exe`) for target when building with MinGW. Example:
|
||||
|
||||
```bash
|
||||
make BUILD=mingw64 bin/fcut.exe bin/fpad.exe bin/fpoke.exe
|
||||
```
|
||||
|
||||
Then you may use `strip` tool to strip debug information from file and thus shrink file's size:
|
||||
|
||||
```bash
|
||||
strip bin/fcut.exe bin/fpad.exe bin/fpoke.exe
|
||||
```
|
||||
|
||||
## 2.3. Clean tools
|
||||
|
||||
To clean everything type:
|
||||
|
||||
|
|
@ -44,11 +93,17 @@ To clean everything type:
|
|||
make clean
|
||||
```
|
||||
|
||||
## 2.3. Tools usage
|
||||
To clean MinGW builds use appropriate `BUILD` parameter as described in [2.2](#22-build-tools). Example:
|
||||
|
||||
```bash
|
||||
make BUILD=mingw64 clean
|
||||
```
|
||||
|
||||
## 2.4. Tools usage
|
||||
|
||||
These tools are supposed to be used mainly in Makefiles and Bash scripts invoked from Makefiles.
|
||||
|
||||
### 2.3.1. In Makefiles
|
||||
### 2.4.1. In Makefiles
|
||||
|
||||
To use these tools in a Makefile just include `common.mk` file at the beginning of one like this:
|
||||
|
||||
|
|
@ -58,12 +113,12 @@ include ../sdk/common.mk
|
|||
|
||||
Remember to specify correct relative path to it.
|
||||
|
||||
This will set "ZXUNOSDK" environment variable (on first inclusion only) and update your "PATH" environment variable to point to SDK's tools.
|
||||
These changes are actual for current invocation of "make" utility and all child processes.
|
||||
This will set `ZXUNOSDK` environment variable (on first inclusion only) and update your `PATH` environment variable to point to SDK's tools.
|
||||
These changes are actual for current invocation of `make` utility and all child processes.
|
||||
|
||||
### 2.3.2. In Bash scripts
|
||||
### 2.4.2. In Bash scripts
|
||||
|
||||
Bash scripts are supposed to be invoked from Makefiles where the correct environment is already prepared by "make" utility so nothing must be done for such scripts.
|
||||
Bash scripts are supposed to be invoked from Makefiles where the correct environment is already prepared by `make` utility so nothing must be done for such scripts.
|
||||
|
||||
In other cases you must source `setvars.sh` file in a Bash script like this:
|
||||
|
||||
|
|
@ -83,43 +138,41 @@ This has the same behavior as the inclusion of `common.mk` file in a Makefile.
|
|||
|
||||
# 3. Using SDK in GNU environment on Windows
|
||||
|
||||
**NOTE**: compilation of the following tools:
|
||||
**NOTE**: *by default* compilation of the following tools:
|
||||
|
||||
* sjasmplus
|
||||
* zx7b
|
||||
* bin2hex
|
||||
* fcut
|
||||
* fpad
|
||||
* fpoke
|
||||
* GenRom
|
||||
* AddItem
|
||||
|
||||
on Windows platform is disabled right now because of presence of precompiled binaries of them in repository. They are not deleted when cleaning.
|
||||
on Windows platform is disabled right now because of presence of precompiled binaries of them in repository.
|
||||
*By default* they are not deleted when cleaning.
|
||||
|
||||
## 3.1. Build tools
|
||||
|
||||
To build all tools type:
|
||||
|
||||
```bash
|
||||
make
|
||||
```
|
||||
|
||||
To build only **sjasmplus** type:
|
||||
|
||||
```
|
||||
make bin/sjasmplus.exe
|
||||
```
|
||||
The building process is similar to one for GNU on Linux, FreeBSD etc.
|
||||
See [2.2](#22-build-tools) with addition that you should provide correct target name (specify file extension `.exe`) and also specify parameter `FORCEBUILD=1`.
|
||||
|
||||
## 3.2. Clean tools
|
||||
|
||||
To clean everything type:
|
||||
|
||||
```bash
|
||||
make clean
|
||||
```
|
||||
The cleaning process is similar to one for GNU on Linux, FreeBSD etc.
|
||||
See [2.3](#23-clean-tools) with addition that you should specify parameter `FORCECLEAN=1`.
|
||||
|
||||
## 3.3. Tools usage
|
||||
|
||||
### 3.3.1. In Makefiles
|
||||
|
||||
The usage is similar to one for GNU/Linux, FreeBSD etc. See [2.3.1](#231-in-makefiles).
|
||||
The usage is similar to one for GNU on Linux, FreeBSD etc.
|
||||
See [2.4.1](#241-in-makefiles).
|
||||
|
||||
### 3.3.2. In Bash scripts
|
||||
|
||||
The usage is similar to one for GNU/Linux, FreeBSD etc. See [2.3.2](#232-in-bash-scripts).
|
||||
The usage is similar to one for GNU on Linux, FreeBSD etc.
|
||||
See [2.4.2](#242-in-bash-scripts).
|
||||
|
||||
# 4. Using SDK on Windows without GNU environment
|
||||
|
||||
|
|
@ -133,5 +186,11 @@ call ..\sdk\setvars.bat
|
|||
|
||||
Remember to specify correct relative path to it.
|
||||
|
||||
This will set "ZXUNOSDK" environment variable (on first call only) and update your "PATH" environment variable to point to SDK's tools.
|
||||
This will set `ZXUNOSDK` environment variable (on first call only) and update your `PATH` environment variable to point to SDK's tools.
|
||||
These changes are actual for current invocation of command shell and all child processes.
|
||||
|
||||
# References
|
||||
|
||||
* [Open Source FPGA Foundation Formed to Accelerate Widespread Adoption of Programmable Logic](https://osfpga.org/osfpga-foundation-launched/) - news article (April 8, 2021)
|
||||
* [Open-Source FPGA Foundation](https://osfpga.org/) - main site
|
||||
* [Related Projects of Open Source FPGA Foundation](https://github.com/os-fpga/open-source-fpga-resource) - page on GitHub
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
# SPDX-FileCopyrightText: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
|
||||
#
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
sjasmplus
|
||||
zx7b
|
||||
bin2hex
|
||||
fcut
|
||||
fpad
|
||||
fpoke
|
||||
GenRom
|
||||
AddItem
|
||||
Binary file not shown.
|
|
@ -0,0 +1,11 @@
|
|||
SPDX-FileName: AddItem.exe
|
||||
|
||||
SPDX-FileType: BINARY
|
||||
|
||||
SPDX-FileChecksum: SHA1: 4c0298aa44631d46b241f90471d36775b536d844
|
||||
|
||||
SPDX-FileCopyrightText: Copyright (C) 2019, 2021 Antonio Villena
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
SPDX-FileComment: AddItem version 0.02 - simulates Machine and ROM addition to the ZX-Uno flash image.
|
||||
Binary file not shown.
|
|
@ -0,0 +1,11 @@
|
|||
SPDX-FileName: GenRom.exe
|
||||
|
||||
SPDX-FileType: BINARY
|
||||
|
||||
SPDX-FileChecksum: SHA1: 82b861b2de44feeaea9538a33ae23949316581e5
|
||||
|
||||
SPDX-FileCopyrightText: Copyright (C) 2016, 2021 Antonio Villena
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
SPDX-FileComment: GenRom version 0.06 (2016-07-04) - generates a TAP for loading a ROM in the ZX-Uno.
|
||||
Binary file not shown.
|
|
@ -0,0 +1,9 @@
|
|||
SPDX-FileName: bin2hex.exe
|
||||
|
||||
SPDX-FileType: BINARY
|
||||
|
||||
SPDX-FileChecksum: SHA1: acc480181c0cdc8d5bfce1c633c8eefd8165908c
|
||||
|
||||
SPDX-FileCopyrightText: Copyright (C) 2016, 2021 Antonio Villena
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-only
|
||||
Binary file not shown.
|
|
@ -0,0 +1,11 @@
|
|||
SPDX-FileName: fcut.exe
|
||||
|
||||
SPDX-FileType: BINARY
|
||||
|
||||
SPDX-FileChecksum: SHA1: 57dc4b8241477fe9bfdf03b249575b38876da7f2
|
||||
|
||||
SPDX-FileCopyrightText: Copyright (C) 2015, 2021 Antonio Villena
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
SPDX-FileComment: fcut version 1.00 (20 Jun 2015) - a file hexadecimal cutter.
|
||||
Binary file not shown.
|
|
@ -0,0 +1,11 @@
|
|||
SPDX-FileName: fpad.exe
|
||||
|
||||
SPDX-FileType: BINARY
|
||||
|
||||
SPDX-FileChecksum: SHA1: 1aa7d48a742da3ffaff2c29bcb8acceb7eb8042c
|
||||
|
||||
SPDX-FileCopyrightText: Copyright (C) 2016, 2021 Antonio Villena
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
SPDX-FileComment: fpad version 1.00 (24 Apr 2016) - generate a file with padded values.
|
||||
Binary file not shown.
|
|
@ -0,0 +1,11 @@
|
|||
SPDX-FileName: fpoke.exe
|
||||
|
||||
SPDX-FileType: BINARY
|
||||
|
||||
SPDX-FileChecksum: SHA1: 59c8b1ea5221e31d7c23573591bdb4bb61878d9a
|
||||
|
||||
SPDX-FileCopyrightText: Copyright (C) 2016, 2021 Antonio Villena
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
SPDX-FileComment: fpoke version 1.0 (11 May 2016) - tool that overwrites bytes in a file.
|
||||
Binary file not shown.
|
|
@ -0,0 +1,16 @@
|
|||
SPDX-FileName: zx7b.exe
|
||||
|
||||
SPDX-FileType: BINARY
|
||||
|
||||
SPDX-FileChecksum: SHA1: 0068364b1463d8f27c29a8a183ea348af12cf456
|
||||
|
||||
SPDX-FileCopyrightText: Copyright (c) 2013, 2021 Antonio Villena. All rights reserved.
|
||||
|
||||
SPDX-FileNotice: Based on ZX7 <http://www.worldofspectrum.org/infoseekid.cgi?id=0027996>
|
||||
SPDX-FileNotice: ZX7 is Copyright (c) 2012 Einar Saukas. All rights reserved.
|
||||
|
||||
SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
SPDX-LicenseComments: License's text equals to one from https://directory.fsf.org/wiki/License:BSD-3-Clause
|
||||
|
||||
SPDX-FileComment: zx7b version 1.01 (28 Dec 2013) - backwards compressor.
|
||||
|
|
@ -5,8 +5,8 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# Supported environments:
|
||||
# * GNU/Linux
|
||||
# * Windows NT (using MinGW/MSYS/Cygwin/WSL)
|
||||
# * GNU on Linux, FreeBSD etc.
|
||||
# * GNU on Windows NT (using MinGW/MSYS/Cygwin/WSL)
|
||||
|
||||
ifndef ZXUNOSDK
|
||||
|
||||
|
|
@ -17,3 +17,17 @@ export ZXUNOSDK
|
|||
export PATH
|
||||
|
||||
endif
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
EXECEXT := .exe
|
||||
else
|
||||
EXECEXT :=
|
||||
endif
|
||||
|
||||
ifeq ($(BUILD),mingw32)
|
||||
CC := i686-w64-mingw32-gcc
|
||||
EXECEXT := .exe
|
||||
else ifeq ($(BUILD),mingw64)
|
||||
CC := x86_64-w64-mingw32-gcc
|
||||
EXECEXT := .exe
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
# SPDX-FileCopyrightText: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
|
||||
#
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
sjasmplus
|
||||
114
sdk/src/Makefile
114
sdk/src/Makefile
|
|
@ -3,22 +3,68 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# Supported environments:
|
||||
# * GNU/Linux
|
||||
# * Windows NT (using MinGW/MSYS/Cygwin/WSL)
|
||||
# * GNU on Linux, FreeBSD etc.
|
||||
# * GNU on Windows NT (using MinGW/MSYS/Cygwin/WSL)
|
||||
#
|
||||
# Build:
|
||||
# make [BUILD=<BUILD>] [FORCEBUILD=<FB_FLAG>] [<TARGET>]
|
||||
# Clean:
|
||||
# make [BUILD=<BUILD>] [FORCECLEAN=<FC_FLAG>] clean
|
||||
#
|
||||
# where:
|
||||
# <BUILD> is one of: mingw32, mingw64.
|
||||
# <FB_FLAG> is 1 to force build, otherwise do not (default).
|
||||
# <FC_FLAG> is 1 to force clean, otherwise do not (default).
|
||||
# <TARGET> is one of values of TOOLS variable (see below).
|
||||
#
|
||||
# Notes:
|
||||
# BUILD, FORCEBUILD, FORCECLEAN variables may be set in user's environment.
|
||||
|
||||
include ../common.mk
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
SJASMPLUS := sjasmplus.exe
|
||||
else
|
||||
SJASMPLUS := sjasmplus
|
||||
endif
|
||||
SJASMPLUS := sjasmplus$(EXECEXT)
|
||||
ZX7B := zx7b$(EXECEXT)
|
||||
BIN2HEX := bin2hex$(EXECEXT)
|
||||
FCUT := fcut$(EXECEXT)
|
||||
FPAD := fpad$(EXECEXT)
|
||||
FPOKE := fpoke$(EXECEXT)
|
||||
GENROM := GenRom$(EXECEXT)
|
||||
ADDITEM := AddItem$(EXECEXT)
|
||||
|
||||
TOOLS:= \
|
||||
../bin/$(SJASMPLUS) \
|
||||
../bin/$(ZX7B) \
|
||||
../bin/$(BIN2HEX) \
|
||||
../bin/$(FCUT) \
|
||||
../bin/$(FPAD) \
|
||||
../bin/$(FPOKE) \
|
||||
../bin/$(GENROM) \
|
||||
../bin/$(ADDITEM)
|
||||
|
||||
.PHONY: all
|
||||
all: \
|
||||
../bin/$(SJASMPLUS)
|
||||
all: $(TOOLS)
|
||||
|
||||
ifneq ($(OS),Windows_NT)
|
||||
ifeq ($(OS),Windows_NT)
|
||||
ifeq ($(FORCEBUILD),1)
|
||||
_DoBuild:=1
|
||||
else
|
||||
_DoBuild:=0
|
||||
endif
|
||||
else
|
||||
_DoBuild:=1
|
||||
endif
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
ifeq ($(FORCECLEAN),1)
|
||||
_DoClean:=1
|
||||
else
|
||||
_DoClean:=0
|
||||
endif
|
||||
else
|
||||
_DoClean:=1
|
||||
endif
|
||||
|
||||
ifeq ($(_DoBuild),1)
|
||||
../bin/$(SJASMPLUS): sjasmplus/build/$(SJASMPLUS)
|
||||
cp $< $@
|
||||
|
||||
|
|
@ -26,14 +72,54 @@ sjasmplus/build/$(SJASMPLUS): | sjasmplus sjasmplus.mk
|
|||
$(MAKE) -w -C sjasmplus -f ../sjasmplus.mk
|
||||
|
||||
sjasmplus:
|
||||
git clone https://github.com/sjasmplus/sjasmplus.git $@
|
||||
wget -c https://github.com/sjasmplus/sjasmplus/archive/refs/tags/20190306.1.tar.gz -O sjasmplus.tgz
|
||||
echo 'f3f6d28af19880ed2cb427b6b427e9bd42371929c7d263dac840fb71de1302d6 sjasmplus.tgz' >sjasmplus.sha256sum
|
||||
sha256sum -c sjasmplus.sha256sum
|
||||
rm -f sjasmplus.sha256sum
|
||||
tar -xzf sjasmplus.tgz
|
||||
mv sjasmplus-20190306.1 sjasmplus
|
||||
rm -f sjasmplus.tgz
|
||||
|
||||
../bin/$(ZX7B): zx7b/$(ZX7B)
|
||||
cp $< $@
|
||||
|
||||
zx7b/$(ZX7B): | zx7b
|
||||
$(MAKE) -w -C $|
|
||||
|
||||
../bin/$(BIN2HEX): tools/$(BIN2HEX)
|
||||
cp $< $@
|
||||
|
||||
../bin/$(FCUT): tools/$(FCUT)
|
||||
cp $< $@
|
||||
|
||||
../bin/$(FPAD): tools/$(FPAD)
|
||||
cp $< $@
|
||||
|
||||
../bin/$(FPOKE): tools/$(FPOKE)
|
||||
cp $< $@
|
||||
|
||||
../bin/$(GENROM): tools/$(GENROM)
|
||||
cp $< $@
|
||||
|
||||
../bin/$(ADDITEM): tools/$(ADDITEM)
|
||||
cp $< $@
|
||||
|
||||
tools/$(BIN2HEX) \
|
||||
tools/$(FCUT) \
|
||||
tools/$(FPAD) \
|
||||
tools/$(FPOKE) \
|
||||
tools/$(GENROM) \
|
||||
tools/$(ADDITEM): | tools
|
||||
$(MAKE) -w -C $|
|
||||
endif
|
||||
|
||||
.PHONY: clean
|
||||
ifeq ($(OS),Windows_NT)
|
||||
ifneq ($(_DoClean),1)
|
||||
clean:;
|
||||
else
|
||||
clean: | sjasmplus sjasmplus.mk
|
||||
clean: | sjasmplus sjasmplus.mk zx7b tools
|
||||
$(MAKE) -w -C sjasmplus -f ../sjasmplus.mk clean
|
||||
rm -f ../bin/$(SJASMPLUS)
|
||||
$(MAKE) -w -C zx7b clean
|
||||
$(MAKE) -w -C tools clean
|
||||
rm -f $(TOOLS)
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
# SPDX-FileCopyrightText: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# From https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/cross_compiling/Mingw
|
||||
|
||||
# the name of the target operating system
|
||||
SET(CMAKE_SYSTEM_NAME Windows)
|
||||
|
||||
SET(MINGW_VER i686-w64-mingw32)
|
||||
# which compilers to use for C and C++
|
||||
SET(CMAKE_C_COMPILER ${MINGW_VER}-gcc)
|
||||
SET(CMAKE_CXX_COMPILER ${MINGW_VER}-g++)
|
||||
SET(CMAKE_RC_COMPILER ${MINGW_VER}-windres)
|
||||
# here is the target environment located
|
||||
SET(CMAKE_FIND_ROOT_PATH /usr/${MINGW_VER} )
|
||||
|
||||
# adjust the default behaviour of the FIND_XXX() commands:
|
||||
# search headers and libraries in the target environment, search
|
||||
# programs in the host environment
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
# SPDX-FileCopyrightText: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# From https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/cross_compiling/Mingw
|
||||
|
||||
# the name of the target operating system
|
||||
SET(CMAKE_SYSTEM_NAME Windows)
|
||||
|
||||
SET(MINGW_VER x86_64-w64-mingw32)
|
||||
# which compilers to use for C and C++
|
||||
SET(CMAKE_C_COMPILER ${MINGW_VER}-gcc)
|
||||
SET(CMAKE_CXX_COMPILER ${MINGW_VER}-g++)
|
||||
SET(CMAKE_RC_COMPILER ${MINGW_VER}-windres)
|
||||
# here is the target environment located
|
||||
SET(CMAKE_FIND_ROOT_PATH /usr/${MINGW_VER} )
|
||||
|
||||
# adjust the default behaviour of the FIND_XXX() commands:
|
||||
# search headers and libraries in the target environment, search
|
||||
# programs in the host environment
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
|
|
@ -3,29 +3,42 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# Supported environments:
|
||||
# * GNU/Linux
|
||||
# * Windows NT (using MinGW/MSYS/Cygwin/WSL)
|
||||
# * GNU on Linux, FreeBSD etc.
|
||||
# * GNU on Windows NT (using MinGW/MSYS/Cygwin/WSL)
|
||||
#
|
||||
# Build:
|
||||
# make -w -C sjasmplus -f ../sjasmplus.mk
|
||||
# make [BUILD=<BUILD>] -w -C sjasmplus -f ../sjasmplus.mk
|
||||
# Clean:
|
||||
# make -w -C sjasmplus -f ../sjasmplus.mk clean
|
||||
# make [BUILD=<BUILD>] -w -C sjasmplus -f ../sjasmplus.mk clean
|
||||
#
|
||||
# where:
|
||||
# <BUILD> is one of: mingw32, mingw64.
|
||||
#
|
||||
# Notes:
|
||||
# BUILD variable may be set in user's environment.
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
SJASMPLUS := sjasmplus.exe
|
||||
|
||||
include ../../common.mk
|
||||
|
||||
ifeq ($(BUILD),mingw32)
|
||||
CMAKEFLAGS := -DCMAKE_TOOLCHAIN_FILE=../Toolchain-mingw32.cmake
|
||||
else ifeq ($(BUILD),mingw64)
|
||||
CMAKEFLAGS := -DCMAKE_TOOLCHAIN_FILE=../Toolchain-mingw64.cmake
|
||||
else
|
||||
SJASMPLUS := sjasmplus
|
||||
CMAKEFLAGS :=
|
||||
endif
|
||||
|
||||
SJASMPLUS := sjasmplus$(EXECEXT)
|
||||
|
||||
build/$(SJASMPLUS): | build/Makefile
|
||||
$(MAKE) -w -C build
|
||||
|
||||
build/Makefile: | build
|
||||
cd build && cmake ..
|
||||
cd build && cmake $(CMAKEFLAGS) ..
|
||||
|
||||
build:
|
||||
mkdir -p build
|
||||
mkdir $@
|
||||
|
||||
.PHONY: clean
|
||||
clean: | build/Makefile
|
||||
$(MAKE) -w -C build clean
|
||||
clean:
|
||||
rm -rf build
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
# SPDX-FileCopyrightText: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
|
||||
#
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
bin2hex
|
||||
bin2hex.exe
|
||||
fcut
|
||||
fcut.exe
|
||||
fpad
|
||||
fpad.exe
|
||||
fpoke
|
||||
fpoke.exe
|
||||
GenRom
|
||||
GenRom.exe
|
||||
AddItem
|
||||
AddItem.exe
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
/*
|
||||
* AddItem - simulates Machine and ROM addition to the ZX-Uno flash image.
|
||||
*
|
||||
* Copyright (C) 2019, 2021 Antonio Villena
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* SPDX-FileCopyrightText: Copyright (C) 2019, 2021 Antonio Villena
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-only
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define PROGRAM "AddItem"
|
||||
#define DESCRIPTION "simulates Machine and ROM addition to the ZX-Uno flash image."
|
||||
#define VERSION "0.02"
|
||||
#define COPYRIGHT "Copyright (C) 2019, 2021 Antonio Villena"
|
||||
#define LICENSE \
|
||||
"This program is free software: you can redistribute it and/or modify\n" \
|
||||
"it under the terms of the GNU General Public License as published by\n" \
|
||||
"the Free Software Foundation, version 3."
|
||||
#define HOMEPAGE "https://github.com/zxdos/zxuno/"
|
||||
|
||||
#define OUTPUT_FILE "FLASH.ZX1"
|
||||
|
||||
FILE *fi, *fo;
|
||||
int i;
|
||||
unsigned char mem[0x4004], core;
|
||||
unsigned short j, k;
|
||||
|
||||
void show_help() {
|
||||
printf(
|
||||
PROGRAM " version " VERSION " - " DESCRIPTION "\n"
|
||||
COPYRIGHT "\n"
|
||||
LICENSE "\n"
|
||||
"Home page: " HOMEPAGE "\n"
|
||||
"\n"
|
||||
"Usage:\n"
|
||||
" " PROGRAM " <type> <input_file> <slot>\n"
|
||||
"\n"
|
||||
" <type> ROM or COREX, where 2<=X<=45, i.e. CORE5\n"
|
||||
" <input_file> Input .TAP file generated with GenRom\n"
|
||||
" <slot> Slot's number from 0 to 63, only when type is ROM\n"
|
||||
"\n"
|
||||
"All modifications occur in the file `" OUTPUT_FILE "'.\n"
|
||||
);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
if( argc==1 )
|
||||
show_help(),
|
||||
exit(0);
|
||||
fo= fopen(OUTPUT_FILE, "rb+");
|
||||
if( strstr(argv[1], "CORE")==argv[1] && strlen(argv[1])<=6 && strlen(argv[1])>=5 && argc==3 ){
|
||||
core= (strlen(argv[1])==5 ? argv[1][4] : (argv[1][4]-'0')*10+argv[1][5])-'2';
|
||||
if( core>43 )
|
||||
printf("\nCore number out of range: %d\n", core+2),
|
||||
exit(-1);
|
||||
fi= fopen(argv[2], "rb");
|
||||
if( !fi )
|
||||
printf("\nInput file not found: %s\n", argv[2]),
|
||||
exit(-1);
|
||||
fread(mem, 1, 0x58, fi);
|
||||
fseek(fo, 0x7100+(core<<5), SEEK_SET);
|
||||
fwrite(mem+0x34, 1, 0x20, fo);
|
||||
j= mem[3];
|
||||
fseek(fo, (core>7?0x160000:0xac000)+core*0x54000, SEEK_SET);
|
||||
for ( i=0; i<j; i++ )
|
||||
fread(mem, 1, 0x4004, fi),
|
||||
fwrite(mem, 1, 0x4000, fo);
|
||||
}
|
||||
else if( !strcmp(argv[1], "ROM") && argc==4 ){
|
||||
fi= fopen(argv[3], "rb");
|
||||
if( !fi )
|
||||
printf("\nInput file not found: %s\n", argv[3]),
|
||||
exit(-1);
|
||||
fseek(fo, 0x7000, SEEK_SET);
|
||||
fread(mem, 1, 0x40, fo);
|
||||
for ( i= 0; i<0x40; i++ )
|
||||
if( mem[i]==0xff )
|
||||
break;
|
||||
mem[i]= i;
|
||||
fseek(fo, 0x7000, SEEK_SET);
|
||||
fwrite(mem, 1, 0x40, fo);
|
||||
fread(mem, 1, 0x58, fi);
|
||||
fseek(fo, 0x6000|i<<6, SEEK_SET);
|
||||
k= mem[2]= atoi(argv[2]);
|
||||
fwrite(mem+2, 1, 0x20, fo);
|
||||
fwrite(mem+0x34, 1, 0x20, fo);
|
||||
j= mem[3];
|
||||
for ( i=0; i<j; i++ )
|
||||
fseek(fo, (k<19?0xc000:0x300000)+k*0x4000, SEEK_SET),
|
||||
k= (k+1)&0x3f,
|
||||
fread(mem, 1, 0x4004, fi),
|
||||
fwrite(mem, 1, 0x4000, fo);
|
||||
}
|
||||
else
|
||||
printf("\nInvalid parameters\n"),
|
||||
exit(-1);
|
||||
printf("File `" OUTPUT_FILE "' is successfully updated.\n");
|
||||
}
|
||||
|
|
@ -1,7 +1,39 @@
|
|||
/*
|
||||
* GenRom - generates a TAP for loading a ROM in the ZX-Uno.
|
||||
*
|
||||
* Copyright (C) 2016, 2021 Antonio Villena
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* SPDX-FileCopyrightText: Copyright (C) 2016, 2021 Antonio Villena
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-only
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define PROGRAM "GenRom"
|
||||
#define DESCRIPTION "generates a TAP for loading a ROM in the ZX-Uno."
|
||||
#define VERSION "0.06 (2016-07-04)"
|
||||
#define COPYRIGHT "Copyright (C) 2016, 2021 Antonio Villena"
|
||||
#define LICENSE \
|
||||
"This program is free software: you can redistribute it and/or modify\n" \
|
||||
"it under the terms of the GNU General Public License as published by\n" \
|
||||
"the Free Software Foundation, version 3."
|
||||
#define HOMEPAGE "https://github.com/zxdos/zxuno/"
|
||||
|
||||
FILE *fi, *fo;
|
||||
int i;
|
||||
unsigned char mem[0x4004+0x55], checksum;
|
||||
|
|
@ -39,11 +71,16 @@ unsigned short j, k, crc, tab[]= {
|
|||
0x1fef, 0x3eff, 0x5dcf, 0x7cdf, 0x9baf, 0xbabf, 0xd98f, 0xf89f,
|
||||
0x176e, 0x367e, 0x554e, 0x745e, 0x932e, 0xb23e, 0xd10e, 0xf01e};
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
if( argc==1 )
|
||||
printf("\n"
|
||||
"GenRom v0.06, generates a TAP for loading a ROM in the ZX-Uno, 2016-07-04\n\n"
|
||||
" GenRom <params> <name> <input_file> <output_file>\n\n"
|
||||
void show_help() {
|
||||
printf(
|
||||
PROGRAM " version " VERSION " - " DESCRIPTION "\n"
|
||||
COPYRIGHT "\n"
|
||||
LICENSE "\n"
|
||||
"Home page: " HOMEPAGE "\n"
|
||||
"\n"
|
||||
"Usage:\n"
|
||||
" " PROGRAM " <params> <name> <input_file> <output_file>\n"
|
||||
"\n"
|
||||
" <params> Set 13 flags parameters, combinable\n"
|
||||
" 0 MODE=00, DI1FFD=DI7FFD=DITAY=DIAY=DIRADAS=DITIMEX=DIULAPLUS=0\n"
|
||||
" I2KB=DISCONT=DIVEN=DISNMI=DISD=ENMMU=DIROM1F=DIROM7F=0\n"
|
||||
|
|
@ -66,8 +103,15 @@ int main(int argc, char *argv[]) {
|
|||
" u Disable Ulaplus\n"
|
||||
" <name> Name between single quotes up to 32 chars\n"
|
||||
" <input_file> Input ROM file\n"
|
||||
" <output_file> Output TAP file\n\n"
|
||||
"All params are mandatory\n\n"),
|
||||
" <output_file> Output TAP file\n"
|
||||
"\n"
|
||||
"All paramaters are mandatory.\n"
|
||||
);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
if( argc==1 )
|
||||
show_help(),
|
||||
exit(0);
|
||||
if( argc!=5 )
|
||||
printf("\nInvalid number of parameters\n"),
|
||||
|
|
@ -159,5 +203,5 @@ int main(int argc, char *argv[]) {
|
|||
checksum^= mem[k];
|
||||
mem[0x4058]= checksum;
|
||||
fwrite(mem+0x4004, 1, 0x55, fo);
|
||||
printf("\nFile generated successfully\n");
|
||||
printf("File `%s' is successfully generated.\n", argv[4]);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
# SPDX-FileCopyrightText: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# Supported environments:
|
||||
# * GNU on Linux, FreeBSD etc.
|
||||
# * GNU on Windows NT (using MinGW/MSYS/Cygwin/WSL)
|
||||
#
|
||||
# Build:
|
||||
# make [BUILD=<BUILD>] [<TARGET>]
|
||||
# Clean:
|
||||
# make [BUILD=<BUILD>] clean
|
||||
#
|
||||
# where:
|
||||
# <BUILD> is one of: mingw32, mingw64.
|
||||
# <TARGET> is one of values for TOOLS variable (see below).
|
||||
#
|
||||
# Notes:
|
||||
# BUILD variable may be set in user's environment.
|
||||
|
||||
include ../../common.mk
|
||||
|
||||
BIN2HEX := bin2hex$(EXECEXT)
|
||||
FCUT := fcut$(EXECEXT)
|
||||
FPAD := fpad$(EXECEXT)
|
||||
FPOKE := fpoke$(EXECEXT)
|
||||
GENROM := GenRom$(EXECEXT)
|
||||
ADDITEM := AddItem$(EXECEXT)
|
||||
|
||||
TOOLS:=\
|
||||
$(BIN2HEX) \
|
||||
$(FCUT) \
|
||||
$(FPAD) \
|
||||
$(FPOKE) \
|
||||
$(GENROM) \
|
||||
$(ADDITEM)
|
||||
|
||||
.PHONY: all
|
||||
all: $(TOOLS)
|
||||
|
||||
$(BIN2HEX): bin2hex.c
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
$(FCUT): fcut.c
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
$(FPAD): fpad.c
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
$(FPOKE): fpoke.c
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
$(GENROM): GenRom.c
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
$(ADDITEM): AddItem.c
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f $(TOOLS)
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Copyright (C) 2016, 2021 Antonio Villena
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* SPDX-FileCopyrightText: Copyright (C) 2016, 2021 Antonio Villena
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-only
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int main (int argc, char *argv[]){
|
||||
FILE *f;
|
||||
unsigned char *scr;
|
||||
char nombre[256];
|
||||
int i,leido;
|
||||
|
||||
if (argc<2)
|
||||
return 1;
|
||||
|
||||
scr = (unsigned char *) malloc(65536);
|
||||
f = fopen (argv[1],"rb");
|
||||
if (!f)
|
||||
return 1;
|
||||
|
||||
leido = fread (scr, 1, 65536, f);
|
||||
fclose (f);
|
||||
|
||||
strcpy (nombre, argv[1]);
|
||||
nombre[strlen(nombre)-3]=0;
|
||||
strcat (nombre, "hex");
|
||||
|
||||
f = fopen (nombre, "wt");
|
||||
for (i=0;i<leido;i++)
|
||||
fprintf (f, "%.2X\n", scr[i]);
|
||||
fclose(f);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
/*
|
||||
* fcut - a file hexadecimal cutter.
|
||||
*
|
||||
* Copyright (C) 2015, 2021 Antonio Villena
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* SPDX-FileCopyrightText: Copyright (C) 2015, 2021 Antonio Villena
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-only
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define PROGRAM "fcut"
|
||||
#define DESCRIPTION "a file hexadecimal cutter."
|
||||
#define VERSION "1.00 (20 Jun 2015)"
|
||||
#define COPYRIGHT "Copyright (C) 2015, 2021 Antonio Villena"
|
||||
#define LICENSE \
|
||||
"This program is free software: you can redistribute it and/or modify\n" \
|
||||
"it under the terms of the GNU General Public License as published by\n" \
|
||||
"the Free Software Foundation, version 3."
|
||||
#define HOMEPAGE "https://github.com/zxdos/zxuno/"
|
||||
|
||||
void show_help() {
|
||||
printf(
|
||||
PROGRAM " version " VERSION " - " DESCRIPTION "\n"
|
||||
COPYRIGHT "\n"
|
||||
LICENSE "\n"
|
||||
"Home page: " HOMEPAGE "\n"
|
||||
"\n"
|
||||
"Usage:\n"
|
||||
" " PROGRAM " <input_file> <start> <length> <output_file>\n"
|
||||
"\n"
|
||||
" <input_file> Origin file to cut\n"
|
||||
" <start> In hexadecimal, is the start offset of the segment\n"
|
||||
" <length> In hexadecimal, is the length of the segment\n"
|
||||
" <output_file> Genetated output file\n"
|
||||
"\n"
|
||||
"<start> negative value assumes a negative offset from the end of the file.\n"
|
||||
"<length> negative value will substract file size result to that parameter.\n"
|
||||
);
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[]){
|
||||
unsigned char *mem= (unsigned char *) malloc (0x10000);
|
||||
FILE *fi, *fo;
|
||||
long start, length, size;
|
||||
if( argc==1 )
|
||||
show_help(),
|
||||
exit(0);
|
||||
if( argc!=5 )
|
||||
printf("\nInvalid number of parameters\n"),
|
||||
exit(-1);
|
||||
fi= fopen(argv[1], "rb");
|
||||
if( !fi )
|
||||
printf("\nInput file not found: %s\n", argv[1]),
|
||||
exit(-1);
|
||||
fo= fopen(argv[4], "wb+");
|
||||
if( !fo )
|
||||
printf("\nCannot create output file: %s\n", argv[4]),
|
||||
exit(-1);
|
||||
fseek(fi, 0, SEEK_END);
|
||||
size= ftell(fi);
|
||||
rewind(fi);
|
||||
start= strtol(argv[2], NULL, 16);
|
||||
if( start<0 )
|
||||
start+= size;
|
||||
length= strtol(argv[3], NULL, 16);
|
||||
if( length<0 )
|
||||
length+= size;
|
||||
if( start+length>size
|
||||
|| start>size )
|
||||
printf("\nOut of input file\n"),
|
||||
exit(-1);
|
||||
fseek(fi, start, SEEK_SET);
|
||||
for ( size= 0; size<length>>16; size++ )
|
||||
fread(mem, 1, 0x10000, fi),
|
||||
fwrite(mem, 1, 0x10000, fo);
|
||||
fread(mem, 1, length&0xffff, fi);
|
||||
fwrite(mem, 1, length&0xffff, fo);
|
||||
fclose(fi);
|
||||
fclose(fo);
|
||||
printf("\n0x%lx bytes written (%lu) at offset 0x%lx (%lu)\n", length, length, start, start);
|
||||
}
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
/*
|
||||
* fpad - generate a file with padded values.
|
||||
*
|
||||
* Copyright (C) 2016, 2021 Antonio Villena
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* SPDX-FileCopyrightText: Copyright (C) 2016, 2021 Antonio Villena
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-only
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define PROGRAM "fpad"
|
||||
#define DESCRIPTION "generate a file with padded values."
|
||||
#define VERSION "1.00 (24 Apr 2016)"
|
||||
#define COPYRIGHT "Copyright (C) 2016, 2021 Antonio Villena"
|
||||
#define LICENSE \
|
||||
"This program is free software: you can redistribute it and/or modify\n" \
|
||||
"it under the terms of the GNU General Public License as published by\n" \
|
||||
"the Free Software Foundation, version 3."
|
||||
#define HOMEPAGE "https://github.com/zxdos/zxuno/"
|
||||
|
||||
void show_help() {
|
||||
printf(
|
||||
PROGRAM " version " VERSION " - " DESCRIPTION "\n"
|
||||
COPYRIGHT "\n"
|
||||
LICENSE "\n"
|
||||
"Home page: " HOMEPAGE "\n"
|
||||
"\n"
|
||||
"Usage:\n"
|
||||
" " PROGRAM " <length> <byte> <output_file>\n"
|
||||
"\n"
|
||||
" <length> In hexadecimal, is the length of the future file\n"
|
||||
" <byte> In hexadecimal, is the value of the padding\n"
|
||||
" <output_file> Genetated output file\n"
|
||||
);
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[]){
|
||||
unsigned char mem[0x10000];
|
||||
FILE *fo;
|
||||
long length, size;
|
||||
if( argc==1 )
|
||||
show_help(),
|
||||
exit(0);
|
||||
if( argc!=4 )
|
||||
printf("\nInvalid number of parameters\n"),
|
||||
exit(-1);
|
||||
fo= fopen(argv[3], "wb+");
|
||||
if( !fo )
|
||||
printf("\nCannot create output file: %s\n", argv[3]),
|
||||
exit(-1);
|
||||
memset(mem, strtol(argv[2], NULL, 16), 0x10000);
|
||||
length= strtol(argv[1], NULL, 16);
|
||||
for ( size= 0; size<length>>16; size++ )
|
||||
fwrite(mem, 1, 0x10000, fo);
|
||||
fwrite(mem, 1, length&0xffff, fo);
|
||||
fclose(fo);
|
||||
printf("\nDone\n");
|
||||
}
|
||||
|
|
@ -0,0 +1,164 @@
|
|||
/*
|
||||
* fpoke - tool that overwrites bytes in a file.
|
||||
*
|
||||
* Copyright (C) 2016, 2021 Antonio Villena
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* SPDX-FileCopyrightText: Copyright (C) 2016, 2021 Antonio Villena
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-only
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define PROGRAM "fpoke"
|
||||
#define DESCRIPTION "tool that overwrites bytes in a file."
|
||||
#define VERSION "1.0 (11 May 2016)"
|
||||
#define COPYRIGHT "Copyright (C) 2016, 2021 Antonio Villena"
|
||||
#define LICENSE \
|
||||
"This program is free software: you can redistribute it and/or modify\n" \
|
||||
"it under the terms of the GNU General Public License as published by\n" \
|
||||
"the Free Software Foundation, version 3."
|
||||
#define HOMEPAGE "https://github.com/zxdos/zxuno/"
|
||||
|
||||
#define BUFFER_LENGTH 0x60000
|
||||
|
||||
void show_help() {
|
||||
printf(
|
||||
PROGRAM " version " VERSION " - " DESCRIPTION "\n"
|
||||
COPYRIGHT "\n"
|
||||
LICENSE "\n"
|
||||
"Home page: " HOMEPAGE "\n"
|
||||
"\n"
|
||||
"Usage:\n"
|
||||
" " PROGRAM " <target_file> <addr> [<repeat>x]<bytes> [<addr> [<repeat>x]<bytes>] ..\n"
|
||||
"\n"
|
||||
" <target_file> Origin and target file to poke\n"
|
||||
" <addr> In hexadecimal, address of the first byte to poke\n"
|
||||
" <repeat> Number of repetitions, also in hex\n"
|
||||
" <bytes> Even digits in hex or single quotation string like 'hello'\n"
|
||||
" file:filename Equivalent to [<repeat>x]<bytes> but with a file\n"
|
||||
"\n"
|
||||
"At least one sequence of <addr><bytes> is mandatory (<repeat> is optional). The\n"
|
||||
"first char of <bytes> can be g or l to indicate biG endian or Little endian,\n"
|
||||
"default is little endian. Example:hello.txt 48 65 6C 6C 6F 20 57 6F 72 6C 64 21\n"
|
||||
" " PROGRAM " hello.txt 2 12 48 65 12 6C 6F 20 57 6F 72 6C 64 21\n"
|
||||
" " PROGRAM " hello.txt 3 1234 48 65 6C 34 12 20 57 6F 72 6C 64 21\n"
|
||||
" " PROGRAM " hello.txt 4 g123456 0 l1234 34 12 6C 6C 12 34 56 6F 72 6C 64 21\n"
|
||||
" " PROGRAM " hello.txt 5 3xab 48 65 6C 6C 6F AB AB AB 72 6C 64 21\n"
|
||||
" " PROGRAM " hello.txt 6 'Earth' 48 65 6C 6C 6F 20 45 61 72 74 68 21\n"
|
||||
" " PROGRAM " hello.txt 6 file:hi.bin\n"
|
||||
);
|
||||
}
|
||||
|
||||
char char2hex(char value){
|
||||
if( value<'0' || value>'f' || value<'A' && value>'9' || value<'a' && value>'F' )
|
||||
printf("\nInvalid character %c\n", value),
|
||||
exit(-1);
|
||||
return value>'9' ? 9+(value&7) : value-'0';
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[]){
|
||||
unsigned char *mem= (unsigned char *) malloc (BUFFER_LENGTH);
|
||||
FILE *fi, *fi2;
|
||||
char *bytes;
|
||||
long start, size, rep, length, i, j, k;
|
||||
if( argc==1 )
|
||||
show_help(),
|
||||
exit(0);
|
||||
if( argc&1 )
|
||||
printf("\nInvalid number of parameters\n"),
|
||||
exit(-1);
|
||||
fi= fopen(argv[1], "rb+");
|
||||
if( !fi )
|
||||
printf("\nInput file not found: %s\n", argv[1]),
|
||||
exit(-1);
|
||||
fseek(fi, 0, SEEK_END);
|
||||
size= ftell(fi);
|
||||
while ( argc > 2 ){
|
||||
start= strtol(argv++[2], NULL, 16);
|
||||
if( start<0 )
|
||||
start+= size;
|
||||
if( bytes= strchr(argv[2], ':') )
|
||||
rep= -1,
|
||||
argv++;
|
||||
else if( strchr(argv[2], 'x') || strchr(argv[2], 'X') )
|
||||
rep= strtol(strtok(argv++[2], "xX"), NULL, 16),
|
||||
bytes= strtok(NULL, "xX");
|
||||
else
|
||||
rep= 1,
|
||||
bytes= argv++[2];
|
||||
if( bytes[0]=='g' || bytes[0]=='l' || bytes[0]=='\'' )
|
||||
bytes++;
|
||||
if( bytes[-1]=='\'' )
|
||||
bytes= strtok(bytes, "'"),
|
||||
length= strlen(bytes);
|
||||
else if( rep==-1 ){
|
||||
fi2= fopen(++bytes, "rb+");
|
||||
if( !fi2 )
|
||||
printf("\nInput file not found: %s\n", bytes),
|
||||
exit(-1);
|
||||
fseek(fi2, 0, SEEK_END);
|
||||
length= ftell(fi2);
|
||||
fseek(fi2, 0, SEEK_SET);
|
||||
}
|
||||
else{
|
||||
length= strlen(bytes);
|
||||
if( length&1 )
|
||||
printf("\nIncorrect length %X (%s), must be even, in address %X\n", length, bytes, start),
|
||||
exit(-1);
|
||||
length>>= 1;
|
||||
}
|
||||
if( length*rep+start > size )
|
||||
printf("\nOut of file\n"),
|
||||
exit(-1);
|
||||
if( length>BUFFER_LENGTH )
|
||||
printf("\nOut of buffer\n"),
|
||||
exit(-1);
|
||||
if( rep==-1 )
|
||||
printf("hola %d %d %d\n", argc, length, fread(mem, 1, length, fi2)),
|
||||
fclose(fi2);
|
||||
else if( bytes[-1]=='g' )
|
||||
for ( i= 0; i < length; i++ )
|
||||
mem[i]= char2hex(bytes[i<<1|1]) | char2hex(bytes[i<<1]) << 4;
|
||||
else if( bytes[-1]=='\'' )
|
||||
for ( i= 0; i < length; i++ )
|
||||
mem[i]= bytes[i];
|
||||
else
|
||||
for ( i= 0; i < length; i++ )
|
||||
mem[length-i-1]= char2hex(bytes[i<<1|1]) | char2hex(bytes[i<<1]) << 4;
|
||||
for ( i= 1; i < rep; i++ )
|
||||
if( i*length > BUFFER_LENGTH )
|
||||
break;
|
||||
if( --i > 1 )
|
||||
for ( j= 1; j < i; j++ )
|
||||
for ( k= 0; k < length; k++ )
|
||||
mem[k+j*length]= mem[k];
|
||||
fseek(fi, start, SEEK_SET);
|
||||
if( i ){
|
||||
j= rep/i;
|
||||
for ( k= 0; k < j; k++ )
|
||||
fwrite(mem, 1, length*i, fi);
|
||||
if( rep%i )
|
||||
fwrite(mem, 1, length*(rep%i), fi);
|
||||
}
|
||||
else
|
||||
fwrite(mem, 1, length, fi);
|
||||
argc-= 2;
|
||||
}
|
||||
printf("\nFile correctly modified\n");
|
||||
fclose(fi);
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# SPDX-FileCopyrightText: 20219 Ivan Tatarinov <ivan-tat@ya.ru>
|
||||
#
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
https://sourceforge.net/p/emuscriptoria/code/HEAD/tree/desprot/
|
||||
https://github.com/antoniovillena/EmuScriptoria/tree/master/desprot
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
# SPDX-FileCopyrightText: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
|
||||
#
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
zx7b
|
||||
zx7b.exe
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
# SPDX-FileCopyrightText: 2021 Ivan Tatarinov <ivan-tat@ya.ru>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# Supported environments:
|
||||
# * GNU on Linux, FreeBSD etc.
|
||||
# * GNU on Windows NT (using MinGW/MSYS/Cygwin/WSL)
|
||||
#
|
||||
# Build:
|
||||
# make [BUILD=<BUILD>] [<TARGET>]
|
||||
# Clean:
|
||||
# make [BUILD=<BUILD>] clean
|
||||
#
|
||||
# where:
|
||||
# <BUILD> is one of: mingw32, mingw64.
|
||||
# <TARGET> is one of values of TOOLS variable (see below).
|
||||
#
|
||||
# Notes:
|
||||
# BUILD variable may be set in user's environment.
|
||||
|
||||
include ../../common.mk
|
||||
|
||||
ZX7B := zx7b$(EXECEXT)
|
||||
|
||||
$(ZX7B): zx7b.c
|
||||
$(CC) $(CFLAGS) -o $@ $<
|
||||
|
||||
zx7b.c:
|
||||
wget -c https://github.com/antoniovillena/zx7b/raw/master/zx7b.c
|
||||
|
||||
clean:
|
||||
rm -f $(ZX7B)
|
||||
|
|
@ -0,0 +1,346 @@
|
|||
/*
|
||||
* zx7b - backwards compressor.
|
||||
*
|
||||
* Copyright (c) 2013, 2021 Antonio Villena. All rights reserved.
|
||||
*
|
||||
* Based on ZX7 <http://www.worldofspectrum.org/infoseekid.cgi?id=0027996>
|
||||
* ZX7 is Copyright (c) 2012 Einar Saukas. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* * The name of its author may not be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* SPDX-FileCopyrightText: Copyright (c) 2013, 2021 Antonio Villena. All rights reserved.
|
||||
*
|
||||
* SPDX-FileNotice: Based on ZX7 <http://www.worldofspectrum.org/infoseekid.cgi?id=0027996>
|
||||
* SPDX-FileNotice: ZX7 is Copyright (c) 2012 Einar Saukas. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*
|
||||
* SPDX-LicenseComments: License's text equals to one from https://directory.fsf.org/wiki/License:BSD-3-Clause
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define PROGRAM "zx7b"
|
||||
#define DESCRIPTION "backwards compressor."
|
||||
#define VERSION "1.01 (28 Dec 2013)"
|
||||
#define COPYRIGHT "Copyright (c) 2013, 2021 Antonio Villena. All rights reserved.\n" \
|
||||
"Based on ZX7 <http://www.worldofspectrum.org/infoseekid.cgi?id=0027996>\n" \
|
||||
"ZX7 is Copyright (c) 2012 Einar Saukas. All rights reserved."
|
||||
#define LICENSE \
|
||||
"Distributed under BSD 3-clause license."
|
||||
#define HOMEPAGE "https://github.com/antoniovillena/zx7b/"
|
||||
|
||||
#define MAX_OFFSET 2176 /* range 1..2176 */
|
||||
#define MAX_LEN 65536 /* range 2..65536 */
|
||||
|
||||
typedef struct match_t {
|
||||
size_t index;
|
||||
struct match_t *next;
|
||||
} Match;
|
||||
|
||||
typedef struct optimal_t {
|
||||
size_t bits;
|
||||
int offset;
|
||||
int len;
|
||||
} Optimal;
|
||||
|
||||
void show_help() {
|
||||
printf(
|
||||
PROGRAM " version " VERSION " - " DESCRIPTION "\n"
|
||||
COPYRIGHT "\n"
|
||||
LICENSE "\n"
|
||||
"Home page: " HOMEPAGE "\n"
|
||||
"\n"
|
||||
"Usage:\n"
|
||||
" " PROGRAM " <input_file> <output_file>\n"
|
||||
"\n"
|
||||
" <input_file> Raw input file\n"
|
||||
" <output_file> Compressed output file\n"
|
||||
"\n"
|
||||
"Example: " PROGRAM " Cobra.scr Cobra.zx7b\n"
|
||||
);
|
||||
}
|
||||
|
||||
Optimal *optimize(unsigned char *input_data, size_t input_size);
|
||||
|
||||
unsigned char *compress(Optimal *optimal, unsigned char *input_data, size_t input_size, size_t *output_size);
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
FILE *ifp;
|
||||
FILE *ofp;
|
||||
unsigned char *input_data;
|
||||
unsigned char *output_data;
|
||||
size_t input_size;
|
||||
size_t output_size;
|
||||
size_t partial_counter;
|
||||
size_t total_counter;
|
||||
char *output_name;
|
||||
int i, j;
|
||||
|
||||
if( argc==1 )
|
||||
show_help(),
|
||||
exit(0);
|
||||
if( argc!=3 )
|
||||
printf("\nInvalid number of parameters\n"),
|
||||
exit(-1);
|
||||
|
||||
/* open input file */
|
||||
ifp= fopen(argv[1], "rb");
|
||||
if( !ifp )
|
||||
fprintf(stderr, "Error: Cannot access input file %s\n", argv[1]),
|
||||
exit(1);
|
||||
|
||||
/* determine input size */
|
||||
fseek(ifp, 0L, SEEK_END);
|
||||
input_size= ftell(ifp);
|
||||
fseek(ifp, 0L, SEEK_SET);
|
||||
if( !input_size )
|
||||
fprintf(stderr, "Error: Empty input file %s\n", argv[1]),
|
||||
exit(1);
|
||||
|
||||
/* allocate input buffer */
|
||||
input_data= (unsigned char *)malloc(input_size);
|
||||
if( !input_data )
|
||||
fprintf(stderr, "Error: Insufficient memory\n"),
|
||||
exit(1);
|
||||
|
||||
/* read input file */
|
||||
total_counter= 0;
|
||||
do {
|
||||
partial_counter = fread(input_data+total_counter, sizeof(char), input_size-total_counter, ifp);
|
||||
total_counter += partial_counter;
|
||||
} while ( partial_counter > 0 );
|
||||
|
||||
if( total_counter != input_size )
|
||||
fprintf(stderr, "Error: Cannot read input file %s\n", argv[1]),
|
||||
exit(1);
|
||||
|
||||
/* close input file */
|
||||
fclose(ifp);
|
||||
|
||||
/* create output file */
|
||||
ofp= fopen(argv[2], "wb");
|
||||
if( !ofp )
|
||||
fprintf(stderr, "Error: Cannot create output file %s\n", argv[2]),
|
||||
exit(1);
|
||||
|
||||
for ( i= 0; i<input_size>>1; i++ )
|
||||
j= input_data[i],
|
||||
input_data[i]= input_data[input_size-1-i],
|
||||
input_data[input_size-1-i]= j;
|
||||
|
||||
/* generate output file */
|
||||
output_data= compress(optimize(input_data, input_size), input_data, input_size, &output_size);
|
||||
|
||||
for ( i= 0; i<output_size>>1; i++ )
|
||||
j= output_data[i],
|
||||
output_data[i]= output_data[output_size-1-i],
|
||||
output_data[output_size-1-i]= j;
|
||||
|
||||
/* write output file */
|
||||
if( fwrite(output_data, sizeof(char), output_size, ofp) != output_size )
|
||||
fprintf(stderr, "Error: Cannot write output file %s\n", output_name),
|
||||
exit(1);
|
||||
|
||||
/* close output file */
|
||||
fclose(ofp);
|
||||
|
||||
/* done! */
|
||||
printf("\nFile %s compressed from %s (%d to %d bytes)\n", argv[2], argv[1], (int) input_size, (int) output_size);
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned char* output_data;
|
||||
size_t output_index;
|
||||
size_t bit_index;
|
||||
int bit_mask;
|
||||
|
||||
void write_byte(int value) {
|
||||
output_data[output_index++] = value;
|
||||
}
|
||||
|
||||
void write_bit(int value) {
|
||||
if( bit_mask == 0 )
|
||||
bit_mask = 128,
|
||||
bit_index = output_index,
|
||||
write_byte(0);
|
||||
if( value > 0 )
|
||||
output_data[bit_index] |= bit_mask;
|
||||
bit_mask >>= 1;
|
||||
}
|
||||
|
||||
int elias_gamma_bits(int value) {
|
||||
int bits;
|
||||
bits= 1;
|
||||
while ( value > 1 )
|
||||
bits+= 2,
|
||||
value>>= 1;
|
||||
return bits;
|
||||
}
|
||||
|
||||
void write_elias_gamma(int value) {
|
||||
int bits= 0, rvalue= 0;
|
||||
while ( value>1 )
|
||||
++bits,
|
||||
rvalue<<= 1,
|
||||
rvalue|= value&1,
|
||||
value>>= 1;
|
||||
while ( bits-- )
|
||||
write_bit(0),
|
||||
write_bit(rvalue & 1),
|
||||
rvalue>>= 1;
|
||||
write_bit(1);
|
||||
}
|
||||
|
||||
unsigned char *compress(Optimal *optimal, unsigned char *input_data, size_t input_size, size_t *output_size) {
|
||||
size_t input_index;
|
||||
size_t input_prev;
|
||||
int offset1;
|
||||
int mask;
|
||||
int i;
|
||||
|
||||
/* calculate and allocate output buffer */
|
||||
input_index= input_size-1;
|
||||
*output_size= (optimal[input_index].bits+16+7)/8;
|
||||
output_data= (unsigned char *)malloc(*output_size);
|
||||
if( !output_data )
|
||||
fprintf(stderr, "Error: Insufficient memory\n"),
|
||||
exit(1);
|
||||
|
||||
/* un-reverse optimal sequence */
|
||||
optimal[input_index].bits= 0;
|
||||
while ( input_index > 0 )
|
||||
input_prev= input_index - (optimal[input_index].len > 0 ? optimal[input_index].len : 1),
|
||||
optimal[input_prev].bits= input_index,
|
||||
input_index= input_prev;
|
||||
|
||||
output_index= 0;
|
||||
bit_mask= 0;
|
||||
|
||||
/* first byte is always literal */
|
||||
write_byte(input_data[0]);
|
||||
|
||||
/* process remaining bytes */
|
||||
while ( (input_index= optimal[input_index].bits) > 0)
|
||||
if( optimal[input_index].len == 0)
|
||||
write_bit(0),
|
||||
write_byte(input_data[input_index]);
|
||||
else{
|
||||
/* sequence indicator */
|
||||
write_bit(1);
|
||||
|
||||
/* sequence length */
|
||||
write_elias_gamma(optimal[input_index].len-1);
|
||||
|
||||
/* sequence offset */
|
||||
offset1= optimal[input_index].offset-1;
|
||||
if( offset1 < 128 )
|
||||
write_byte(offset1);
|
||||
else{
|
||||
offset1-= 128;
|
||||
write_byte((offset1 & 127) | 128);
|
||||
for ( mask= 1024; mask > 127; mask >>= 1)
|
||||
write_bit(offset1 & mask);
|
||||
}
|
||||
}
|
||||
|
||||
/* end mark */
|
||||
write_bit(1);
|
||||
write_elias_gamma(0xff);
|
||||
return output_data;
|
||||
}
|
||||
|
||||
int count_bits(int offset, int len) {
|
||||
return 1 + (offset > 128 ? 12 : 8) + elias_gamma_bits(len-1);
|
||||
}
|
||||
|
||||
Optimal* optimize(unsigned char *input_data, size_t input_size) {
|
||||
size_t *min;
|
||||
size_t *max;
|
||||
Match *matches;
|
||||
Match *match_slots;
|
||||
Optimal *optimal;
|
||||
Match *match;
|
||||
int match_index;
|
||||
int offset;
|
||||
size_t len;
|
||||
size_t best_len;
|
||||
size_t bits;
|
||||
size_t i;
|
||||
|
||||
/* allocate all data structures at once */
|
||||
min = (size_t *)calloc(MAX_OFFSET+1, sizeof(size_t));
|
||||
max = (size_t *)calloc(MAX_OFFSET+1, sizeof(size_t));
|
||||
matches = (Match *)calloc(256*256, sizeof(Match));
|
||||
match_slots = (Match *)calloc(input_size, sizeof(Match));
|
||||
optimal = (Optimal *)calloc(input_size, sizeof(Optimal));
|
||||
|
||||
if (!min || !max || !matches || !match_slots || !optimal) {
|
||||
fprintf(stderr, "Error: Insufficient memory\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/* first byte is always literal */
|
||||
optimal[0].bits = 8;
|
||||
|
||||
/* process remaining bytes */
|
||||
for ( i= 1; i < input_size; i++ ){
|
||||
optimal[i].bits= optimal[i-1].bits + 9;
|
||||
match_index= input_data[i-1] << 8 | input_data[i];
|
||||
best_len= 1;
|
||||
for ( match= &matches[match_index]; match->next != NULL && best_len < MAX_LEN; match = match->next){
|
||||
offset= i - match->next->index;
|
||||
if( offset > MAX_OFFSET ){
|
||||
match->next = NULL;
|
||||
break;
|
||||
}
|
||||
for ( len= 2; len <= MAX_LEN; len++ ){
|
||||
if( len > best_len && len&0xff ){
|
||||
best_len= len;
|
||||
bits= optimal[i-len].bits + count_bits(offset, len);
|
||||
if( optimal[i].bits > bits )
|
||||
optimal[i].bits= bits,
|
||||
optimal[i].offset= offset,
|
||||
optimal[i].len= len;
|
||||
}
|
||||
else if ( i+1 == max[offset]+len && max[offset] != 0 ){
|
||||
len= i-min[offset];
|
||||
if( len > best_len )
|
||||
len= best_len;
|
||||
}
|
||||
if( i < offset+len || input_data[i-len] != input_data[i-len-offset] )
|
||||
break;
|
||||
}
|
||||
min[offset]= i+1-len;
|
||||
max[offset]= i;
|
||||
}
|
||||
match_slots[i].index= i;
|
||||
match_slots[i].next= matches[match_index].next;
|
||||
matches[match_index].next= &match_slots[i];
|
||||
}
|
||||
|
||||
/* save time by releasing the largest block only, the O.S. will clean everything else later */
|
||||
free(match_slots);
|
||||
return optimal;
|
||||
}
|
||||
|
|
@ -0,0 +1,232 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
“This License” refers to version 3 of the GNU General Public License.
|
||||
|
||||
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||
|
||||
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
|
||||
|
||||
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
|
||||
|
||||
A “covered work” means either the unmodified Program or a work based on the Program.
|
||||
|
||||
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||
|
||||
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
|
||||
|
||||
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||
|
||||
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
|
||||
|
||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||
|
||||
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||
|
||||
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||
|
||||
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
|
||||
|
||||
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||
|
||||
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||
|
|
@ -1 +1,5 @@
|
|||
esprst
|
||||
# SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
esprst
|
||||
|
|
|
|||
|
|
@ -1,7 +1,15 @@
|
|||
# SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
include ../../sdk/common.mk
|
||||
|
||||
.PHONY: all
|
||||
all: esprst
|
||||
|
||||
esprst: *.asm
|
||||
sjasmplus main.asm
|
||||
esprst: main.asm uart.asm ring.asm
|
||||
sjasmplus $<
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm esprst
|
||||
rm -f esprst
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
DEVICE ZXSPECTRUM48
|
||||
org #2000
|
||||
Start:
|
||||
|
|
@ -86,4 +90,4 @@ cmd_info defb "AT+GMR", 13, 10, 0
|
|||
response_ok defb "OK", 13, 10, 0
|
||||
response_er defb "ready", 0
|
||||
|
||||
SAVEBIN "esprst", Start, $ - Start
|
||||
SAVEBIN "esprst", Start, $ - Start
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
; Pushes A to ring buffer
|
||||
pushRing
|
||||
push af
|
||||
|
|
@ -57,4 +61,4 @@ ringCmpLp
|
|||
|
||||
ring_buffer dup 33
|
||||
defb 0
|
||||
edup
|
||||
edup
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
UART_DATA_REG = #c6
|
||||
UART_STAT_REG = #c7
|
||||
UART_BYTE_RECIVED = #80
|
||||
|
|
@ -192,4 +196,4 @@ retBuff
|
|||
|
||||
poked_byte defb 0
|
||||
byte_buff defb 0
|
||||
is_recv defb 0
|
||||
is_recv defb 0
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
# SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
*.bin
|
||||
*.def
|
||||
IWCONFIG
|
||||
iwconfig
|
||||
|
|
|
|||
|
|
@ -1,7 +1,15 @@
|
|||
all: iwconfig
|
||||
# SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
include ../../sdk/common.mk
|
||||
|
||||
.PHONY: all
|
||||
all: iwconfig
|
||||
|
||||
iwconfig: iwconfig.c
|
||||
zcc +zx -vn -startup=30 -clib=new iwconfig.c -SO3 -o iwconfig -subtype=dot -create-app
|
||||
zcc +zx -vn -startup=30 -clib=new $< -SO3 -o $@ -subtype=dot -create-app
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm *.bin *.def IWCONFIG
|
||||
rm -f *.bin *.def iwconfig
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
SPDX-FileType: TEXT
|
||||
|
||||
SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <arch/zx/esxdos.h>
|
||||
|
|
@ -24,6 +30,6 @@ int main(int argc, char **argv)
|
|||
file = esx_f_open("/sys/config/iw.cfg", ESX_MODE_WRITE | ESX_MODE_OPEN_CREAT_TRUNC);
|
||||
esx_f_write(file, ssid, 80);
|
||||
esx_f_write(file, pass, 80);
|
||||
esx_f_close(file);
|
||||
esx_f_close(file);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
# SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
*.tap
|
||||
player.bin
|
||||
ugoph.bin
|
||||
.vscode
|
||||
.vscode
|
||||
|
|
|
|||
|
|
@ -1,674 +0,0 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
|
|
@ -1,7 +1,15 @@
|
|||
# SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
include ../../sdk/common.mk
|
||||
|
||||
.PHONY: all
|
||||
all: ugoph.bin
|
||||
|
||||
ugoph.bin: *.asm
|
||||
sjasmplus main.asm
|
||||
ugoph.bin ugoph.tap: main.asm tscreen.asm keyboard.asm utils.asm wifi.asm gopher.asm render.asm textrender.asm uart.asm ring.asm esxdos.asm vtpl.asm
|
||||
sjasmplus $<
|
||||
|
||||
clean:
|
||||
rm ugoph.bin
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f ugoph.bin ugoph.tap
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
SPDX-FileType: TEXT
|
||||
|
||||
SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
; API methods
|
||||
ESX_GETSETDRV = #89
|
||||
ESX_FOPEN = #9A
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
; hl - server
|
||||
; de - path
|
||||
; bc - port
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
CURKEY = 23560
|
||||
|
||||
; Returns in A key code or zero if key wans't pressed
|
||||
|
|
@ -60,4 +64,4 @@ iRet:
|
|||
ld hl, cleanLine :call printZ64
|
||||
ret
|
||||
|
||||
iBuff defs 65
|
||||
iBuff defs 65
|
||||
|
|
|
|||
|
|
@ -11,6 +11,11 @@
|
|||
;;
|
||||
;; You should have received a copy of the GNU General Public License
|
||||
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
;;
|
||||
;; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;;
|
||||
;; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
|
||||
DEVICE ZXSPECTRUM128
|
||||
org 24100
|
||||
|
|
@ -88,4 +93,4 @@ player
|
|||
ENT
|
||||
eop equ $
|
||||
SAVEBIN "ugoph.bin", Start, $ - Start
|
||||
SAVETAP "ugoph.tap", Start
|
||||
SAVETAP "ugoph.tap", Start
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
showPage:
|
||||
xor a : ld (show_offset), a
|
||||
inc a :ld (cursor_pos), a
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
; Pushes A to ring buffer
|
||||
pushRing
|
||||
push af
|
||||
|
|
@ -37,4 +41,4 @@ clearRing:
|
|||
|
||||
ring_buffer dup 33
|
||||
defb 0
|
||||
edup
|
||||
edup
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
showText:
|
||||
xor a : ld (show_offset), a
|
||||
call renderTextScreen
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
; Timex screen routines
|
||||
|
||||
showCursor:
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
UART_DATA_REG = #c6
|
||||
UART_STAT_REG = #c7
|
||||
UART_BYTE_RECIVED = #80
|
||||
|
|
@ -111,4 +115,4 @@ retBuff
|
|||
|
||||
poked_byte defb 0
|
||||
byte_buff defb 0
|
||||
is_recv defb 0
|
||||
is_recv defb 0
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
SCANDBLCTRL_REG = #0B
|
||||
ZXUNO_ADDR = #FC3B
|
||||
ZXUNO_REG = #FD3B
|
||||
|
|
|
|||
|
|
@ -1,3 +1,13 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
;
|
||||
; SPDX-FileComment: Universal PT2'n'PT3 Turbo Sound player for ZX Spectrum
|
||||
;
|
||||
; SPDX-FileNotice: Original code is Copyright (C) 2004-2007 S.V.Bulba <vorobey@mail.khstu.ru>
|
||||
; SPDX-FileNotice: Specially for AlCo
|
||||
; SPDX-FileNotice: http://bulba.untergrund.net/ (http://bulba.at.kz/)
|
||||
|
||||
;Universal PT2'n'PT3 Turbo Sound player for ZX Spectrum
|
||||
;(c)2004-2007 S.V.Bulba <vorobey@mail.khstu.ru>
|
||||
;Specially for AlCo
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
; SPDX-FileCopyrightText: Copyright (C) 2019 Alexander Sharikhin
|
||||
;
|
||||
; SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
; Initialize WiFi chip and connect to WiFi
|
||||
initWifi:
|
||||
call setNoTurboMode : call loadWiFiConfig : call uartBegin
|
||||
|
|
|
|||
Loading…
Reference in New Issue