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