| 03a3459e Andy McCall |
1 |
Quick start guide for Linux users |
| 2 |
================================= |
| 3 |
|
| 4 |
Installing the emulator |
| 5 |
----------------------- |
| 6 |
|
| 7 |
### Getting the emulator |
| 8 |
|
| 9 |
Obtain the X16 emulator by downloading the most recent version from the 'releases' page in Github: |
| 10 |
https://github.com/X16Community/x16-emulator/releases |
| 11 |
Choose the correct version for your CPU architecture. |
| 12 |
|
| 13 |
|
| 14 |
#### Alternative builds or other platform |
| 15 |
|
| 16 |
If for any reason you cannot run the official release of the emulator, there's a Snap package |
| 17 |
of it that you could try instead, available at https://snapcraft.io/x16emu |
| 18 |
|
| 19 |
It should avoid any shared library version incompatibilities that you could potentially run into with the |
| 20 |
official version, and is available for a broad range of platforms. Details and instructions on how to install |
| 21 |
this are on the linked page. |
| 22 |
|
| 23 |
Ofcourse, you could also compile the emulator from source, but that is outside the scope of this guide. |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
### Installing the emulator and preparing for use |
| 28 |
|
| 29 |
* Extract the .zip file containing the emulator into an appropriate location such as `~/x16/emulator/`. |
| 30 |
For the rest of this guide we will assume this as the install location. |
| 31 |
* This directory should now contain at least `x16emu` (the emulator itself) and `rom.bin` (the X16 system rom). |
| 32 |
You can ignore all other files in the zip file for now. |
| 33 |
* Make sure the emulator is executable: `chmod u+x ~/x16/emulator/x16emu` |
| 34 |
|
| 35 |
|
| 36 |
### Create a place for the programs |
| 37 |
|
| 38 |
Programs for the X16 will usually be stored on an SD memory card that the system sees as the main disk drive. |
| 39 |
The emulator can use an SD card image file to replicate this, but we are not going to use this feature now, |
| 40 |
because the emulator can also use a regular directory on your computer as the disk drive for the X16. |
| 41 |
Notice that the X16 usually expects the file names to be in UPPERCASE. |
| 42 |
|
| 43 |
* Create a `disk` directory that will be the X16's storage location: `mkdir ~/x16/disk` |
| 44 |
|
| 45 |
|
| 46 |
### Convenient launching |
| 47 |
|
| 48 |
The emulator has many options to tweak its behavior. To avoid having to retype these every time, |
| 49 |
we'll be using a small shell script to launch the emulator. |
| 50 |
|
| 51 |
* Create a launch script somewhere (for example `~/x16/startemu`) with the following: |
| 52 |
```sh |
| 53 |
#!/usr/bin/env sh |
| 54 |
~/x16/emulator/x16emu -fsroot ~/x16/disk -scale 2 $* |
| 55 |
``` |
| 56 |
* make the script executable: `chmod u+x ~/x16/startemu` |
| 57 |
|
| 58 |
|
| 59 |
Installing programs on the 'disk' |
| 60 |
--------------------------------- |
| 61 |
The X16 is capable of using subdirectories. This can be used to avoid cluttering the disk contents |
| 62 |
with files from different programs together in a single location. |
| 63 |
Instead, create a directory for each program and the files it needs. |
| 64 |
|
| 65 |
* assume we have a game called "kart" and it comes in a zip file that contains the game program, |
| 66 |
the music and the graphics files. |
| 67 |
* create a directory for the game: `mkdir ~/x16/disk/KART` Remember that the X16 usually needs |
| 68 |
directories and file names in UPPER CASE. |
| 69 |
* extract the zip file into that directory. |
| 70 |
|
| 71 |
|
| 72 |
Running programs on the X16 |
| 73 |
--------------------------- |
| 74 |
|
| 75 |
* start the emulator with the launch script |
| 76 |
* on the X16, go to the directory containing the program: `DOS"CD:/DIRNAME"` |
| 77 |
* load and run the desired program: `LOAD"GAME"`, followed by `RUN` |
| 78 |
|