Setting a Default Configuration for Multiple Programs

For firmware 1.2.0 and above

Please read the guidance on using the File Loader before you read the following additional instructions for enhancements to the use of CJM files:

THEC64 Mini allows you to override the settings that the Mini applies to a program loaded from a USB stick through either filename flags, or a C64 Joystick Map (CJM) file. Starting with firmware 1.2.0, you can provide default settings for all files within a folder. This is particularly useful if you have multiple files that you wish to apply the same settings for.

Creating a default configuration for a folder

To configure programs within a folder, you create a CJM file in exactly the same way you would if you were configuring an individual program, and place it in the folder with the special filename THEC64-default.cjm

If present, THEC64 Mini will use this CJM configuration whenever there is no file-specific CJM file for the program being loaded.

An important and useful point to note is that THEC64 Mini will apply the settings supplied by a thec64-default.cjm file to all programs within the folder in which it is placed, even if the programs are in sub-folders.

How THEC64 Mini applies settings

THEC64 Mini will apply settings in the following order:

1. If a CJM file is present for the program being loaded from a USB stick, its settings are applied;
2. Otherwise, if a default CJM file is present in the folder containing the program (or one of its parent folders) then those settings are applied;
3. Otherwise, any filename flags present at the end of the program filename are applied as settings;
4. Otherwise, the built-in THEC64 Mini settings are applied to the program.

Structuring your files and folders on the USB stick

The folder level configuration feature works best when your C64 files and folders are arranged in a logical order on the USB memory stick. For example:

The content of the file is the same as you would expect from any other cjm file used by THEC64 Mini. For example, in the above \pal\j1 folder is thec64-default.cjm:

X:pal
J:1*:JU,JD,JL,JR,JF,JF,JF,JF,JF,,,,JF
J:2: JU,JD,JL,JR,JF,JF,JF,JF,JF,,,,JF

Every program stored in that folder will run on a PAL C64, and use Joystick port 1 as the primary controller.

If THEC64 Mini doesn’t find thec64-default.cjm file in the folder, then it comes out of the current folder and looks in the parent folder instead. It continues to behave this way, working its way back up the folder structure until it reaches the root of the USB memory stick.

If it doesn’t find thec64-default.cjm file then it will run the currently selected C64 program file based upon an individually named cjm file, or by filename flags as you would expect. As a last resort it will apply the system default settings, which are joystick 2 as the primary port and either PAL or NTSC (based upon if THEC64 Mini is a European or North American model, respectively).

Note: If you need different settings for each C64 program file (e.g. joystick buttons, vertical shift and so on), then use the standard cjm method, naming the cjm file after the individual C64 program file rather than using this alternative default method.

Virtual Joystick

For firmware v1.2.0 and above

Connecting a USB keyboard (that includes a numeric keypad and function keys up to at least F11) to THEC64 Mini gives access to a Virtual Joystick as well as all the benefits of a real keyboard.

Use the Virtual Joystick to navigate menus, select options and play games without needing a USB Joystick, or use the Virtual Joystick as a second controller if you only have one USB joystick attached.

You can choose between two Virtual Joystick layouts. Both layouts use the numeric keypad and the function keys F9, F10 and F11.

The current layout depends on whether your keyboard’s ‘Num Lock’ key is in the ON or OFF state. By default, the ‘Num Lock’ is OFF when you connect a USB keyboard to THEC64 Mini. Press the ‘Num Lock’ key to change from OFF to ON or vice versa. Some USB keyboards include a ‘Num Lock’ LED to show its current state.

Num Lock OFF (default)

Num Lock ON

Diagonals are achieved by pressing UP+RIGHT,
UP+LEFT, DOWN+LEFT or DOWN+RIGHT together

Note that the ‘Num Lock’ ON layout gives you more choice. You can mix and match the LEFT, RIGHT, UP and DOWN keys if you want to. For example, using 6, 3, 8 and 9 instead of 1, 2, 6 and 3.

Regardless of which layout you use, you have a choice of which keys to use as Left and Right FIRE, as you can see from the diagram above. The . key (the , key on a German USB keyboard) always acts as the Joystick’s MENU button, giving access to the usual Save/load game, Virtual keyboard and Exit game options. The TL and TR buttons are / and * respectively.

 

Keys F9, F10 and F11 perform the same functions as THEC64 Joystick buttons A, B and C.

Allocating Controllers

When you run a C64 program from the GAMES CAROUSEL or via the File Loader, THEC64 Mini will always allocate the primary controller to the joystick that selected the program, whether that is a USB joystick or the Virtual Joystick.

If there is an unallocated USB joystick attached, then THEC64 Mini chooses that as the secondary controller (if one is required). If not, then it will allocate the Virtual Joystick as the secondary controller, assuming that a suitable USB keyboard is attached and assuming that the Virtual Joystick has not already been allocated as the primary controller.

THEC64 Mini can only allocate one Virtual Joystick, even if you were to connect two USB keyboards.

Social Media

Find us on Social Media by selecting one of the links shown below.

Facebook

Twitter

YouTube

Keyboards

This information is for people who connect a USB keyboard to THEC64 Mini.

Links

A number of useful C64-related web sites are listed below as web links. Start becoming creative using THEC64 Mini!

Disclaimer

Although we do periodically check that the web sites listed below are legal, honest, decent and truthful, Retro Games Ltd cannot take responsibility for any pages maintained by third parties that are linked to from here.

Any views expressed by the content providers on the third party web sites listed above are not necessarily those of Retro Games Ltd.

CBM .prg Studio

CBM prg Studio is a Windows Integrated Development Environment (IDE) which allows you to type a BASIC or machine code program and convert it to a ‘.prg’ file (as used by THEC64 Mini, an original C64 and a number of other programs). It also includes character, sprite and screen editors and a fully featured 6510/65816 debugger…

C64 Bites

The easiest way to start programming Commodore 64. Life is too short to read twenty-year-old books. Learn BASIC and 6502 Assembly with bite-sized video tutorials today!

Retro Game Development – C64 Edition

RetroGameDev has been created to produce books, tutorials, and support for the retro game development community.

Fan Facebook group

Growing fan group for THEC64 Mini console.

THEC64 Community

Join the new fan-run forum for THEC64 Mini.

THEC64 Mini Zone

Another interesting site for Mini owners to visit, with the handy web-based CJM Configuration Tool for use with the File Loader functionality.

Manuals

Download the latest Quick Guide or full User Guide manuals for THEC64 Mini here.

Please be aware that functionality added via firmware upgrades are not included in either the Quick or User Guides. New functionality is explained via the Support section of this web site.

Please only print these documents if you have to and if you do, please consider printing on paper that can be recycled. Thank you.

THEC64 Mini – Quick Guide

THEC64 Mini – User Guide

For Warranty information, please visit the warranty page.

File Loader

File Loader for firmware v1.1.0 (USB file upgrade) and above.

Using the File Loader function and a FAT32 formatted USB memory stick, THEC64 Mini loads programs from various C64 file formats. Supported file formats include:

Disk images: D64, G64, D81, D82
Tape image file:T64, TAP
Others: PRG, P00 and CRT

To make file browsing and selection less arduous, the File Loader currently has a display limit of 256 files and/or folders per-folder, including the root of the memory stick. This equates to 18 pages of listed items to navigate through with your joystick.

Please note that only C64 programs supplied by Retro Games Ltd for use on THEC64 Mini are covered by the Warranty. This does not affect your statutory rights. Please read the Warranty for further details.

Control how THEC64 Mini configures a program loaded from a USB memory stick in two ways:

Either method gives THEC64 Mini information used to load and run a program correctly from USB. Note that some programs will load and run correctly just using the default settings, explained below.

Default settings

In the absence of flags in filenames or CJM text configuration files, THEC64 Mini applies default settings to any supported file it finds on a USB memory stick:

Many programs load and run fine using the default settings. If your program does not, or you wish to change the configuration, please refer to Appendix A.

The File Loader

Whilst on the HOME screen, insert a USB memory stick that contains supported C64 files into an available USB port on THEC64 Mini. After a few seconds, an icon appears beneath the GAMES CAROUSEL to confirm the USB memory stick is connected.

Highlight the USB icon and press FIRE. The FILE LOADER screen lists any supported files and folders stored in the root of the USB memory stick.

Note that file extensions (for example, D64, TAP, CRT), flags added to filenames (for example _TP) and CJM files (for example, c64-disk.cjm) are NOT shown in the list.

Highlight a file and press FIRE. The selected file loads and runs. How long it takes to load will vary based upon the type of file and the settings used by THEC64 Mini to load it.

Move the highlight over a folder and press FIRE. The contents of the sub-folder appear. You cannot enter a folder that is empty or does not contain any other folders or supported C64 files.

When inside a folder on the USB memory stick, press button A on the joystick to move out of the current folder. Alternatively, push LEFT to come out of a folder when on the far left side of the File Loader list.

The C64 Fast Loader is switched on by default, speeding up loading times. For those programs that do not load if the fast loader is ON, press button C on the joystick (a red X appears over the Fast Loader icon) before you press FIRE to load. This turns the fast loader OFF.

Note that the faster disk access function remains ON unless you specifically turn it OFF via filename flags or a CJM file. See Appendix A for full details.

Save/Load from USB

When loading a program file from a USB memory stick, the Save/Load function (see CHAPTER 5 of the User Guide) saves and loads on the USB memory stick rather than on THEC64 Mini. You have four slots to save to per program.

Save files are stored inside a folder on the USB memory stick called .THEC64SAVE. Inside that folder are sub-folders that contain your saves.

For example, .THEC64SAVES\c64-disk\ contains saved files for a C64 disk image file called ‘c64-disk’.

BASIC and accessing a USB memory stick

Please note that the only file stored on a USB stick that can be loaded directly when running BASIC on THEC64 Mini is a disk image with the filename THEC64-drive8.d64. Please visit programming-in-c64-basic and faq for further details on BASIC and THEC64-drive8.d64 file.

APPENDIX A – CONFIGURING C64 PROGRAMS

Add flags to each filename

By adding flags to the end of the filename, you define which joystick port(s) are used, specify the machine type (PAL or NTSC), set a disk to be read-only, turn on accurate disk loading (for troublesome disk image files that won’t load quickly), and disable the on-screen disk icon.

For example, the program on a disk image file called ‘c64-disk.d64’ requires a joystick connected to port 1 on the original C64 computer. Rename your d64 file ‘c64-disk_J1.d64’.

Below is a list of all the available flags:

J1 This sets the primary joystick port as port 1. With a second Joystick connected, it automatically uses port 2
J2 This sets the primary joystick port as port 2. With a second Joystick connected, it automatically uses port 1. Note that port 2 is the default set by THEC64 Mini, so it doesn’t *have* to be specified by this flag
AD This flag turns ‘accurate disk drive’ mode on (for original slower disk loading) and turns off the fastdisk mode which is ON by default
RO This makes the disk appear as read-only (which prevents THEC64 Mini writing to the disk image)
NI This flag disables the drive icon from appearing on-screen during disk loading
TN This runs as an NTSC C64. It doesn’t affect the HDMI output
TP This runs as a PAL C64. It doesn’t affect the HDMI output

Add flags to the end of the filename in any order. For example:

c64-disk_TNROJ1.d64 or
c64-disk_ROJ1TN.d64 or
c64-disk_J1TNRO.d64

Create a CJM file for each program file

Using a computer that can create new files, create a text file on the USB memory stick that includes joystick port requirements, machine type (PAL or NTSC) settings, accurate disk loading options, additional joystick button mappings and other settings for each program file.

You can use the standard text editors that come with Windows, Linux and Mac OS to create CJM files. Ensure that your file does end with a .cjm file extension, otherwise it will not be recognised by THEC64 Mini. For those who are interested, the files needs to be UTF-8 or ASCII encoded and must not contain any non-standard characters.

Save the CJM text file in the same folder as the program file on your USB stick. For example, ‘c64-disk.d64’ has a corresponding file ‘c64-disk.cjm’.

THEC64 Mini always uses a CJM file in preference to any filename flags or default settings.

An example CJM file looks like this:


X:pal,accuratedisk,driveicon
J:2*:JU,JD,JL,JR,JF,JF,SP,1,SP,2,3,4,JF
J:1:JU,JD,JL,JR,JF,JF,JF,JF,JF,,,,JF
V:12

As you can see from the example given, each line in a CJM text file complies with the following:

type: value [,value]

Entity name Entity type Values Description
Computer configuration X pal
ntsc
driveicon
readonly
accuratedisk
This sets the parameters needed to configure the C64 computer before it loads and runs the program.

The values are case sensitive and must be in lower case.

pal – This makes the program behave as though running on a European (PAL) C64. It doesn’t affect the HDMI output of THEC64 Mini.

ntsc – This makes the program behave as though running on a North American (NTSC) C64. It doesn’t affect the HDMI output of THEC64 Mini.

driveicon – This activates the on-screen drive icon, to show when a disk is accessed.

readonly – This makes a disk read-only, meaning THEC64 Mini cannot write back to the disk.

accuratedisk – This switches ON accurate (slower) disk drive functionality, necessary for some programs to load correctly. This is off by default.

Vertical display shift V -16 to +16 This number moves the screen position up or down over a range of + or – 16 display lines (pal). This is useful if a game has graphics that appear in the top or bottom border, as an HDMI 720p television screen can otherwise clip them. For ntsc programs, going above +7 or +8 could exhibit display problems at the bottom of the screen.
Joystick configuration J See following table for allowed values

Note that the entity type is always a capital letter rather than lower case, e.g. an X rather than an x, otherwise THEC64 Mini will ignore the entity type and the values associated with it in the CJM file.

Joystick configuration consists of 13 values that define how the joystick is to operate in the program.

The first value (after the J: entity) defines the primary port (1 or 2, with primary indicated by an *), followed by what happens when the joystick is pushed UP, DOWN, LEFT or RIGHT. The next two values define what happens when the LEFT FIRE and RIGHT FIRE buttons are pressed. The next two values define what happens when the TL and TR triangle buttons are pressed. The next value is an extra joystick button (not available on THEC64 Mini Joystick) but it usually assigned the same value as the TR button. The next three values are buttons A, B and C on THEC64 Joystick. The final value is another button not available on THEC64 Joystick, but is usually assigned the same value as the TL button. For example:

In the shown example, the joystick is behaving as if connected to port 2 on the original C64 computer. Moving up, down, left and right using the stick is as you would expect. Both FIRE buttons perform the same joystick fire (JF) function. Pressing TL on the joystick is the same as pressing the Spacebar (SP). Pressing TR is the same as pressing the 1 key, and buttons A, B and C do the same job as pressing keys 2, 3 and 4 respectively.

Joystick parameters are the port assignments first, then the joystick standard functions, then the button mapping:

Joystick to key map ID Description
JU JD JL JR JF Joystick directions Up, Down, Left, Right and Fire
F1 F2 F3 F4 F5 F6 F7 F8 C64 function keys F1 to F8
AL Arrow Left
AU Arrow Up
CM C64 key
CO Comma
CT Control
CU Cursor Up
CD Cursor Down
CL Cursor Left
CR Cursor Right
DL Delete
EN Return
HM Home
RS RUN/STOP
RE RESTORE
SL SHIFT Left
SR SHIFT Right
SS SHIFT Lock
SP Spacebar
PO Pound (£)

Assigning letters and numbers to joystick buttons is easy. For example, to assign pressing key A to a Joystick button, just enter A in the CJM data for the relevant button.

Considerations

In all of the games provided with THEC64 Mini, the LEFT and RIGHT joystick FIRE buttons have the same function (JF) so both left and right-handed players can use either button as FIRE. However, the LEFT and RIGHT joystick FIRE buttons are independent, so you can assign one FIRE button to JF and the other to a different function if you wish in your CJM files.

In addition, for consistency all of the games on the GAMES CAROUSEL start by pressing TL or by pressing a FIRE button. If you wish to retain this logic, keep in mind how your program starts once it has finished loading when you assign joystick buttons in the CJM file. If FIRE does not start the program, then assign the appropriate key press to the TL button.

Upgrade your Firmware

Firmware upgrades for THEC64 Mini provide new features and/or correct any technical issues. We always recommend that you upgrade to the latest version of the firmware.

Ensure that your USB memory stick is formatted using FAT32 (with MBR), else your upgrade file will not be detected. See the FAQ for further details.

Please note that only C64 programs supplied by Retro Games Ltd for use on THEC64 Mini are covered by the Warranty. This does not affect your statutory rights. Please read the Warranty for further details.


Version 1.2.0 – Changes

Galencia is the winner of the Reset64 Magazine 2017 Commodore 64 Game of the Year Award. It is a colourful, highly polished, Galaga inspired single-screen shoot-em-up.

Jay has worked really hard to produce a special version of Galencia just for THEC64 Mini and its 720p display, and it makes maximum use of the upper and lower borders for graphics, right up to the edge of the screen! Be aware however, that some HD TVs might crop some of these border graphics when displaying the 720p image. This is not a fault with Galencia or the Mini and we recommend that you refer to your TV settings.

 

Previous changes included in version 1.2.0


How to Upgrade

    1. Check the current firmware version on THEC64 Mini by selecting the SYSTEM icon from the OPTIONS on the HOME screen, and then choose System information from the menu. Look for the Build version (e.g. theC64-1.1.0)
    2. Check that the latest version linked to above is greater than the version installed on your Mini
    3. Download and save the file (e.g. theC64-1_2_0.bin) to your USB memory stick. Don’t place the file inside a folder on the stick or rename the file. If you do, THEC64 Mini won’t find the upgrade
    4. Insert the USB memory stick into an unoccupied USB port on THEC64 Mini
    5. Ensure you have a joystick or alternative controller connected to another USB port
    6. Select the SYSTEM icon from the OPTIONS on the HOME screen on the Mini, and choose System Information
    7. The upgrade file is detected and you are asked to Close or Apply
    8. If you choose not to upgrade at this time, select Close and press FIRE, or just press the MENU button on the joystick If you Apply the upgrade, the following screen will appear showing the upgrade process:

  1. After a successful upgrade, your Mini will shut down and restart automatically.
  2. You can check the firmware version afterwards by following point (1) above.

Note that you cannot install a firmware earlier than the build version currently installed.

Frequently Asked Questions

The most frequently asked questions about THEC64 Mini are answered here.


# Why isn’t <insert the name of your favourite C64 game here> included on THEC64 Mini?

A huge amount of time has been spent officially licensing the included games from their respective IP owners. Sadly, some IP rights prove to be prohibitively expensive to license and others are untraceable or too complex to untangle. We believe there is a good mix of game genres in the supplied titles, and all of them were highly rated upon original publication. There’s something for everyone!


# Can I attach <insert your favourite C64 peripheral here> to THEC64 Mini?

THEC64 Mini uses modern USB ports for attaching keyboard, controllers and memory sticks. That unfortunately rules out connecting with any of the original C64 peripherals like cassette decks, disk drives, printers, cartridges and so on.


# Are there any two-player games included?

Yes. A number of the supplied games can be two-player. Some require two joysticks for a two-player game, whilst others can be played between two players using just one joystick and taking alternate goes. The remaining supplied games are for one player. See games for details of each game.


# Can I buy a second joystick?

Yes. THEC64 Joystick can be purchased separately. Please check with any retailer that stocks THEC64 Mini.


# Does THEC64 Joystick use micro switches?

No, THEC64 Joystick uses tactile switches. However, if there is enough demand then we will certainly consider producing a joystick that uses micro switches in the future.


# Is the keyboard on THEC64 Mini functional?

No, it isn’t. If a functional keyboard was to be included, the size of the Mini would have to be significantly larger to reproduce the original computer’s keyboard.  It was decided to include an on-screen virtual keyboard instead, and allow full USB keyboards as well. Having said that, a full-size THEC64 is on its way, and that does include a fully functional integral keyboard as part of the package.


# Can I add my own keyboard?

Yes. Connect a USB keyboard to THEC64 Mini whilst on the HOME screen. Specify your keyboard layout from a selection including UK, US, French, German, Spanish and Italian. Other layouts maybe added to THEC64 Mini in future, via a firmware upgrade. Please see the section on Keyboards for more information.


# Can THEC64 Mini be upgraded?

There are no user-serviceable parts inside THEC64 Mini, but the firmware can be upgraded via the upgrade page. New features, changes in software and other improvements can be delivered using the ‘System Information’ option on THEC64 Mini and a downloaded firmware update file saved onto a FAT32 formatted USB memory stick. When formatting, please ensure that your stick is formatted with MBR rather than GPT, otherwise the stick won’t be recognised by THEC64 Mini.


# Can I load other programs onto THEC64 Mini?

There are two ways to load other programs. They both involve files on a USB memory stick. Please see Loading Programs in C64 BASIC for further details on loading from within BASIC, or see File Loader for details on auto-loading directly from a USB memory stick on the HOME screen.


# Can a USB hub be used on THEC64 Mini?

It’s impossible to guarantee that they will all work, but in general you should be able to connect a USB hub and use it on THEC64 Mini. We would recommend a powered hub (one that uses a separate power supply).


# THEC64 Mini is behaving oddly!

If you have problems with sound, games quitting back to the HOME screen unexpectedly, freezing (press and hold the power button for approximately six seconds to reboot), this could be a power issue. Out-of-the-box THEC64 Mini requires a 5v/1A supply. Add in additional USB devices (e.g. hubs, second joysticks, memory sticks) and the power requirements could increase. If THEC64 Mini needs more power than it receives, then any or all of these symptoms could happen. If possible, use a powered USB hub rather than one that takes power via THEC64 Mini. Also see Troubleshooting for further details.


# Why am I seeing a delay between my joystick actions and the screen?

A number of HD TVs apply image processing to the image output from THEC64 Mini before displaying it on the screen. This introduces a slight delay, which makes it look like games are slow to respond to your movements or button presses. There is nothing wrong with THEC64 Mini, the joystick or the TV. However, to reduce or eradicate this problem requires you to change image processing options on your TV, or engage ‘Game Mode’ on the TV. Please refer to the manual for your TV for further information.


# Can I use my own USB controller as well as – or instead of – THEC64 Joystick?

Yes, you can. We can’t guarantee they all work but other USB controllers can be connected.

THEC64 Mini expects a controller to have a minimum of eight buttons. When you connect a controller, THEC64 Mini will attempt to automatically configure the controller, assigning the left FIRE, right FIRE, TL, TR, A, B, C and MENU buttons for you.

Typical USB gamepad shoulder buttons are usually assigned as left FIRE and right FIRE by THEC64 Mini. The SELECT button is typically assigned as button C, and START becomes the MENU button, giving access to all of the expected menu options that THEC64 Mini needs. Most controllers will have their X and Y buttons as THEC64 Mini’s TL and TR buttons, leaving their A and B buttons to be A and B.

Having connected a USB controller to THEC64 Mini, it should only take a second or two for THEC64 Mini to register the controller. You can then use the controller to navigate the GAMES CAROUSEL and the OPTIONS windows on the HOME SCREEN and play games. When there are two control devices attached, either one can be used to navigate the screens and menus on offer and select and play games.

To further test an alternative USB controller, launch a game and check each button’s functionality against the online instructions for the game found at games.


# Can I change how THEC64 Mini displays on my TV or monitor?

There are six different display modes available on THEC64 Mini. Pixel perfect, European 4:3 and North American 4:3. Each mode can then have a CRT filter applied, to match how the C64 games displayed on older TVs. You don’t have to adjust any settings on your HD TV or Monitor when switching between these display modes.


# Why am I seeing odd things at the bottom of the screen when I assign certain display values to the V: entity in my CJM files?

This will happen if the C64 program is running on an NTSC C64 and you have a V: entity value higher than 7 or 8 (depending on your TV or Monitor). An NTSC C64 has less room above and below the main C64 display than a PAL C64, so the display can only be shifted up part-way before you begin to see a part of the C64 display that you were never meant to view. To avoid this, don’t go above 7 or 8 when assigning a vertical shift value for any NTSC C64 programs loaded from USB. See File Loader for further details about CJM files and the V: entity.


# Can I program on THEC64 Mini?

You have access to BASIC via the Games Carousel specifically to allow programming. Attach a USB keyboard to enhance the experience. Add a USB memory stick and you can also save and load your programs as well. See Programming in C64 BASIC for more information.


# Why am I seeing a READONLY disk in BASIC when I have a USB memory stick connected?

Your USB memory stick isn’t detected. There are a few possible explanations. The USB memory stick wasn’t inserted before BASIC was launched from the GAMES CAROUSEL. Another explanation is that the memory stick isn’t formatted to FAT32. A third possibility is that the memory stick is faulty. Memory sticks up to 64Gb have been tested and confirmed as working on THEC64 Mini, but it’s not possible to test every single brand and size available. Please try a different memory stick. If you are using a USB hub, try accessing the memory stick by directly connecting it to THEC64 Mini, rather than using a hub. See Programming in C64 BASIC for more information on programming in BASIC.


# Why isn’t my THEC64-drive8.d64 file detected by BASIC?

Apart from the USB memory stick issues mentioned elsewhere in this FAQ, it could be because your file is incorrectly named, especially if you named the file on a Windows-based PC and don’t have the file extensions shown. This could result in your file actually being named THEC64-drive8.d64.d64 (for example). Double-check that the name is correct by showing file extensions in Windows, so you can see the exact full name of the file before you try running it on THEC64 Mini.


# Do you use any Open Source code in THEC64 Mini?

Yes, some. You may obtain the corresponding Open Source code from us for a period of three years after our last shipment of this product, by sending a money order or cheque for 5 GBP to: GPL Compliance Division, Retro Games Ltd. Suite 112, Crystal House, New Bedford Road, Luton, England. LU1 1HS.
Please write “source for <firmware version number>” in the memo line of your payment.


# I need help playing one of the games supplied on THEC64 Mini!

Have you read the instructions at games? There are plenty of web sites that give hints and tips for playing the games included on THEC64 Mini. YouTube is also a very good source for tutorials and solutions.


# The joysticks have changed over when in a two player, two joystick game!

You just need to be aware that some games switch the joysticks on THEC64 Mini, so what would be player one’s joystick becomes player two’s joystick in a two player, two joystick game and vice versa.


# Why have some of the games been altered?

A small number of games have been slightly amended to improve your game playing experience when using THEC64 Mini. Any changes have been kept to an absolute minimum and have only been made when absolutely necessary. We have endeavoured to keep THEC64 Mini as authentic as possible.


# I can’t overwrite an existing file when saving in BASIC to my USB memory stick!

To save over an existing file with the same filename, add @0: to the front, like this: SAVE “@0:RGL”,8 (replace RGL with your chosen filename). Please be aware that C64 BASIC won’t give any warnings that you are over-writing the file when you do this.


# I think I have found a problem on THEC64 Mini. How do I report it?

We always welcome feedback. To report a potential problem, please go to the Contact page and complete the online form. We will do our best to respond as quickly as possible.

Programming in C64 BASIC

The GAMES CAROUSEL gives you access to the BASIC programming language.

If you want to follow through the BASIC examples, we strongly recommend connecting a USB keyboard to THEC64 Mini, rather than trying to use the Virtual Keyboard. Please read CHAPTER 6: KEYBOARDS In the User Guide PDF before starting this introduction to BASIC.

If a compatible USB memory stick (formatted to FAT32) is attached to THEC64 Mini before BASIC is launched, then you can save your BASIC code to the memory stick. See Saving and Loading below for further information.


WHAT IS BASIC?

When you power-on a C64 computer, the first thing you see is BASIC. We provide access to BASIC on THEC64 Mini for those who wish to experience programming using version 2 of the C64 variant of the Beginners All-purpose Symbolic Instruction Code.

BASIC is a high-level programming language, designed to be easy to use. It is an interpreted language, meaning any BASIC instructions you type have to be translated by the computer before it can run them. This actually happens quite quickly and is done invisibly and automatically by the computer.

Computers like the original C64 and THEC64 Mini natively ‘talk’ in machine code, which is a series of zeros (0) and ones (1). When they use machine code, they operate very fast. However, people don’t directly program in machine code, so we use a different way to send instructions to the computer, using programming languages that are closer to what we are used to.

Some programming languages are a few steps closer to machine code, and so they are interpreted (or translated if you prefer) quicker than those that aren’t.

BASIC has always been an excellent introduction to programming for complete beginners even though it is quite a few steps away from machine code.

Learning to program using C64 BASIC helps you think programatically, and it also teaches you how to type on a keyboard. Both of these skills are important to learn.


BASIC KEYWORDS

C64 BASIC has a series of keywords that tell the computer what to do next. Learn those and you will be writing BASIC code in no time at all. There are 71 BASIC keywords to discover.

If you think 71 sounds a lot, don’t worry. You don’t have to learn them all at once. Many of them are related to doing mathematical calculations, and only come into play when you start doing more complex coding. More on keywords later!


LAUNCHING C64 BASIC

When you first launch BASIC from the GAMES CAROUSEL on the HOME screen, you see a blue screen. It begins by revealing how much computer memory is available for programming. Underneath that information is a READY prompt and underneath that is a steadily blinking square cursor.

Staring at the cursor won’t get you very far. It’s ready and waiting for you to enter your first BASIC commands.

There are two ways of entering BASIC code. You can type it in and press RETURN. The computer will immediately try and run your code. However, to repeat the same code later on, you have to type it in again. That’s not so good. The second method is a lot more efficient. You place numbers at the start of each line of your code that tells the computer in which order to run them. The great thing is that using line numbers also means it won’t run your code until you type the RUN keyword *and* it means you don’t have to type it all in again (as long as you don’t turn off the computer).


YOUR FIRST BASIC PROGRAM

Below is an example BASIC program. We will look at each line of code in turn before doing this on THEC64 Mini.

There are three separate lines of BASIC code to explain.
10 PRINT “RETRO GAMES LIMITED”
20 PRINT “HELLO WORLD!”
30 GOTO 10

Line 10 uses the keyword PRINT which sends whatever appears between the quotation marks “” to the computer screen (and not to a printer as you might expect!).

Line 20 does the same as line 10 but will send different words to the screen.

Line 30 instructs the computer to go to line 10, which places the computer in a loop of running line 10, then line 20, then line 30 telling it to go back to line 10 again and so on.

The line numbers are in units of ten just in case we want to insert extra lines of code, e.g. a line 15 that comes between line 10 and line 20. If you type a line of code that begins with the same line number as an existing line, the new line will replace the old one as soon as you press RETURN, without any warnings. If you type just the line number and nothing else then press RETURN, you delete that line number.

Now type each line exactly as you see it (above). Press RETURN at the end of each numbered line to commit that line to the computer’s memory and to move down a line, before starting to type the next one.

Press RETURN at the end of line 30.

If you make a mistake, use the Backspace key on your USB keyboard (or press the C button on the joystick when using the Virtual keyboard). Each press will erase the character immediately to the left of the cursor’s position on the screen.

If you’re happy that you’ve typed everything in correctly, type the RUN keyword (without a line number). Your code will then run!

If you’re wondering how to stop your new BASIC code from running forever, try pressing ESC (on a USB keyboard) or RUN/STOP (if using the virtual keyboard). You have instructed THEC64 Mini to BREAK into your code. Don’t worry – it’s not as bad as it sounds!

To see your code is still intact, you can type the following keyword at the square cursor:
LIST
Your three lines of code are displayed, safe and sound just as they were the last time you saw them.


BASIC Keywords

Believe it or not, you’ve already used four BASIC keywords. To prove it, here is a table showing all 71 of them.

ABS AND ASC ATN CHR$ CLOSE CLR CMD
CONT COS DATA DEF DIM END EXP FN
FOR FRE GET GET$ GOSUB GOTO IF INPUT
INPUT$ INT LEFT$ LEN LET LIST LOAD LOG
MID$ NEW NEXT NOT ON OPEN OR PEEK
POKE POS PRINT PRINT$ READ REM RESTORE RETURN
RIGHT$ RND RUN SAVE SGN SIN SPC SQR
STATUS STEP STOP STR$ SYS TAB TAN THEN
TIME TIME$ TO USR VAL VERIFY WAIT

We’re now going to slightly change your code so that it only prints the two lines of text five times before stopping, rather than going on forever.
5 FOR A=1 TO 5
10 PRINT “RETRO GAMES LIMITED”
20 PRINT “HELLO WORLD!”
30 NEXT A

You should immediately notice that we have added a line number 5 and we have changed what was on line 30.

Look at these two new lines of code for a moment and ignore lines 10 and 20 in-between. These lines introduce two new concepts to your BASIC knowledge as well as two new keywords.

One concept is defining and using variables in your code. In this example, we are using ‘A’ as a container to temporarily store a number inside. The letter A was chosen but it could easily have been the word ‘WORLD’, so it could have read…
5 FOR WORLD=1 TO 5
(lines 10 and 20 remain the same as before)
30 NEXT WORLD

… and your program would still have worked. You could also have changed the number at the end of your line of code from 5 to 6. Variable names are chosen by you and can (almost) be anything you like. However, there are rules to naming these handy variables for storing things in.

You can’t use reserved keywords used by BASIC or by the C64 for its own system variables. How do you know which ones can’t be used? Well, if you had used LIST as your variable name, running the program would have produced:
?SYNTAX ERROR IN 5
It’s not the most helpful of errors, but if THEC64 Mini returns that error, you know something is wrong. Remember that list of C64 BASIC keywords? Don’t use any of those as names for your variables and you can’t go far wrong.

Try to keep your variable names short, but relevant where you can. If your code isn’t overly complex, then you can just use A, B, C and so on, just as long as you remember what they are used for!


Types of Variable

The only other thing to know is that there are three types of variable, and they are defined by what type of information is stored in them.

The two most common that you will use are integer and string variables.

An integer is simply a whole number, so no fractions or decimal points. A string is letters or letters and numbers.

How do you say which type of variable you want to use? For integers, you just use a name for your variable, without anything else, e.g. WORLD. For strings, you add a $ to the end of the variable name, so RECIPE$ might be used to store the name of your favourite cake or biscuit recipe, e.g. “Rocky Road”.

So, looking at your amended BASIC example, we know that ‘A’ is used to store a whole number (which can actually be between -32768 up to 32767). In our example, it is only going to reach a maximum value of 5.

Now let’s discuss the FOR and NEXT keywords. These are paired together and create a FOR… NEXT loop. What this does is from the FOR keyword, the computer stores a number inside ‘A’ that starts at 1 and will end at 5 (in this particular example).

Each time the running code encounters the NEXT ‘variable’ (NEXT A in our example), it returns to the line with the FOR keyword and increments (adds one to) the current number stored in the variable called ‘A’. The code then runs each line of code it comes across afterwards (i.e. line 10 and line 20) until it hits NEXT A again, then it returns to the FOR keyword and repeats the process until the value of ‘A’ equals 5, then it stops.

So, add in line 5 exactly as shown previously, change line 30, and then RUN the amended code and see what happens.

Now, it would be useful to show what the current value of ‘A’ is. Add a new line 25:
25 Print A
Now RUN your code again.

You can now see the two lines of printed text are followed by a number that goes up by one each time, e.g. 1, 2, 3, 4, 5.

It’s useful to see the value stored in variable ‘A’ as you can now see how it changes within that FOR… NEXT loop, adding one automatically whenever it reaches NEXT.

Let’s now make this look a little better by adding something to line 25.
25 PRINT “VARIABLE ‘A’ IS NOW“;A
The semi-colon at the end tells BASIC to keep the cursor on the same line as the text it is printing to the screen, and then display the value of the variable A.

RUN this latest version of your code.

That’s a little better. It’s clear now what those numbers mean and we’ve learned how to place the value of a variable into a PRINT command at the same time!

That almost concludes the introduction to C64 BASIC. However, before we finish, let’s learn how you can keep (save) your code so it can be run and amended in future.


Saving and Loading

On THEC64 Mini, you have two available methods for saving your BASIC programs:

1. Press the MENU button and select ‘Save/Load game’ and then save to an available slot on THEC64 Mini as you would do for a game. See CHAPTER 5: PLAYING GAMES in the User Guide PDF for more details on saving and loading to slots.

2. If a compatible USB memory stick (formatted to FAT32) is attached to THEC64 Mini before BASIC is launched, then you can save your BASIC code to the memory stick. When launching BASIC, THEC64 Mini looks for a specific disk image file on the memory stick. If the file isn’t found, then a THEC64-drive8.d64 file is automatically created on the USB memory stick for you. You will then be able to save and load to and from this file from BASIC.

Please note that to accommodate THEC64 Joystick, a USB Keyboard and a USB memory stick at the same time, you need to connect a separate USB hub (not supplied) which gives access to additional USB ports. Retro Games Ltd cannot guarantee that all USB hubs will work with THEC64 Mini and some hubs require a separate power source.


SAVE

With a compatible USB memory stick connected, you can save to the disk image using the standard SAVE to disk command, e.g.

SAVE “RGL”,8

The name of the file goes between the speech marks and it can be whatever you like, as long as it isn’t longer than 15 characters. In this example, it’s nice and short. The number 8 after the filename is a device ID number that is allocated to the disk image file on your USB memory stick.

Press RETURN afterwards to begin the save.

BASIC will report ‘SAVING’ followed by your chosen filename, and when it is completed, it returns to the READY prompt and the square cursor.

To save over an existing file with the same filename, add @0: to the front, like this:

SAVE “@0:RGL”,8

Please be aware that C64 BASIC won’t give any warnings that you are over-writing the file when you do this.


VERIFY

You can check that the save worked by using the VERIFY keyword.

VERIFY "RGL",8
If everything is okay, you will see VERIFYING followed by OK.


LOAD

Another time, ensure that the same USB storage device is connected to THEC64 Mini before you run BASIC, and then type the following command in BASIC to get your program back.
LOAD “RGL”,8


What’s on my disk?

From BASIC, you can look at a disk and see what files are on there. To do that requires use of the LOAD command, but in a slightly different way from before. Instead of typing a filename we are using the reserved variable $.
LOAD “$”,8
BASIC will report SEARCHING FOR $ followed by LOADING and then it returns to the READY prompt once again.

To see what’s on the disk is simple. Just type the following command:
LIST
Instead of listing BASIC code, this time the command shows what is on the disk.

In the above example, we have just one program on the disk and it’s the program we just saved called RGL. The program uses up 1 block on the disk and there are 663 blocks still free to save programs to in the future.

Be aware that if you load the directory of a disk and have some BASIC code on the C64 at the same time, the $ listing will replace the BASIC listing in the computer’s memory and you will lose your program (if you haven’t already saved it).

If you want to use multiple disks, then you will need to use a different USB memory stick for each disk, or temporarily rename the files because the .D64 file is always saved with the same filename – THEC64-drive8.d64 – each time.


Read Only

If you don’t have a USB storage device attached, but decide to try saving to device 8 anyway, BASIC will look like it has successfully saved but when you load the directory of the disk it will be empty. This is because without USB storage, BASIC uses a disk image that can only be read, not saved to. The tell-tale sign is the name of the disk, which is READONLY instead of THEC64. The disk is completely empty and cannot have anything saved to it.

To overcome this, you can always save in one of the four save slots, switch off THEC64 Mini, insert a USB memory stick into a spare USB port, switch THEC64 Mini back on, load BASIC, restore the save slot and then save to the D64 disk image using the SAVE command detailed earlier. Device 8 will now be the disk image on your USB memory stick.


Learn More

Before we finish, how many C64 BASIC commands have you used now?

ABS AND ASC ATN CHR$ CLOSE CLR CMD
CONT COS DATA DEF DIM END EXP FN
FOR FRE GET GET$ GOSUB GOTO IF INPUT
INPUT$ INT LEFT$ LEN LET LIST LOAD LOG
MID$ NEW NEXT NOT ON OPEN OR PEEK
POKE POS PRINT PRINT$ READ REM RESTORE RETURN
RIGHT$ RND RUN SAVE SGN SIN SPC SQR
STATUS STEP STOP STR$ SYS TAB TAN THEN
TIME TIME$ TO USR VAL VERIFY WAIT

You’re up to 11/71 commands already! We hope this small introductions has given you an interest to learn more. There are plenty of online resources available. Also, have a look at our Links page.

A video of this quick introductory tutorial is also available to watch below.

Troubleshooting

If THEC64 Mini is not working as expected, there are a number of things to try:

  1. Ensure that the power supply you are using is sufficient for the device. This needs to be 5V/1A for the items supplied in THEC64 Mini box. When attaching any additional USB devices, a 1.5A or 2A power supply is recommended, as other USB devices may have different power requirements. If THEC64 Mini is under-powered then it is likely to not operate correctly or behave erratically
  2. Check that you are using the latest firmware. Please visit the Upgrade your Firmware page and follow the instructions
  3. Test THEC64 Mini by ensuring that it is connected directly to your TV or Monitor using the provided HDMI lead and is not using any other cables or devices in-between
  4. If you are using a USB hub, we recommend a powered hub. Also see point 1
  5. If there is a time delay between performing an action on the joystick and seeing it on the screen, your TV is likely to be applying image processing which can cause a noticeable delay. Switch off all image processing options by consulting your TV manual. Some TVs include a special ‘Game Mode’ that you can also try
  6. If THEC64 Joystick is not working correctly, try connecting it to a desktop computer and testing it there. THEC64 Joystick works on Windows, Mac and Linux computers
  7. You can test the USB ports by connecting a USB gamepad/controller, USB keyboard or USB memory stick to them
  8. If your USB memory stick isn’t detected, then ensure it is formatted to FAT32. Some people have found that formatting to FAT32 on Windows works better than if the stick is formatted on a Mac. FAT32 requires MBR (Master Boot Record) to be applied on the stick when it is formatted
  9. For loading a D64 file from a USB memory stick when accessing BASIC, the file must be named THEC64-drive8.d64. If you are naming the file using Windows, ensure you can see file extensions otherwise your file might be accidentally named THEC64-drive8.d64.d64 instead (for example). See Loading Programs in C64 BASIC for more information
  10. If your TV is playing the sound but not displaying the picture, then it is likely to be unable to display the signal output from THEC64 Mini. The North American model displays at 60Hz, whilst the European model displays at 50Hz. Try a different TV or monitor.
  11. You can also try a Factory reset, which deletes your chosen Language, Display and USB Keyboard settings, along with any saved game positions stored on THEC64 Mini. It doesn’t remove any saves stored on a USB memory stick. This reset effectively restores THEC64 Mini to its initial factory condition (excluding the current firmware, which remains unaffected).

Also see the general Frequently Asked Questions page for additional information.

Loading Programs in C64 BASIC

Aside from the File Loader function, you can also load and run your own legally obtained C64 programs (including games, demos, utilities and so on) from BASIC on THEC64 Mini by following these simple instructions.

Please note that only C64 programs supplied by Retro Games Ltd for use on THEC64 Mini are covered by the Warranty. This does not affect your statutory rights. Please read the Warranty for further details.

First step: Preparation

1. You need a USB memory stick (maximum size of 64Gb) which must be formatted using FAT32
2. Copy the d64 disk file that contains the program you want to load onto the root of the USB memory stick
3. Rename your disk file on the memory stick to THEC64-drive8.d64
4. You are now ready to load your program from BASIC on THEC64 Mini.

Second step: Loading your Program

1. Make sure you’re at the Carousel screen then insert your USB stick into THEC64 Mini
2. If you have firmware v1.1.0 or above installed, a USB icon will appear on the HOME screen after a few seconds
3. Launch BASIC from the Carousel
4. Type the following two commands exactly as shown here:

LOAD “$”,8
LIST

4. Identify the name of the program you want to run from the list displayed
5. Type the following command, replacing NAME with the name of the program from step 4:

LOAD “NAME”,8,1

6. Some programs will load and start automatically. For others, you may need to type the following command afterwards:

RUN

Notes

Don’t forget to press RETURN after typing each command.

There are some limitations to the existing method of loading programs from a USB memory stick when in BASIC:

If these limitations are too restrictive for you, please see the File Loader for an alternative method for loading other programs on THEC64 Mini.

Due to licensing requirements, we cannot offer advice as to which programs currently work using this method and which ones do not.

Disposal

The crossed-out wheelie bin symbol confirms that your product should not be disposed of with your general household waste, but should be taken to your nearest recycling centre for safe and responsible disposal.

Do not dispose of THEC64 Mini as general household waste

WEEE wheelie bin

This will help prevent any potential negative impact on the environment and on human health and is in compliance with current EU legislation.

European Commission – Waste Electrical & Electronic Equipment (WEEE)

Please contact your local authority or retailer for further recycling advice.

Warranty

This warranty includes THEC64 Mini and THEC64 Joystick included within the packaging (jointly referred to as ‘the Hardware’), the user interface software (referred to as the ‘UI’) and the original supplied games included with THEC64 Mini at the time of purchase (referred to as ‘the Games’). Collectively, they are referred to as ‘the Product’.

Subject to the terms and exclusions detailed below, Retro Games Ltd warrants to the original consumer purchasing the Product in any country of the European Economic Area or Switzerland (“you”) that, for a period of 24 months from the date of the purchase of the Product by you, the Product will be free from defects in both materials and workmanship.

EXCLUSIONS

Please be aware that this warranty does not cover the following:

(a) Software (other than the UI) or Games (whether included with the Product at the time of purchase or not);

(b) accessories, peripherals or other items intended for use with the Product that are not manufactured by or for Retro Games Ltd (whether included with the Product at the time of purchase or not);

(c) the Product if it has been resold, or used for rental or commercial purposes;

(d) defects in the Product that are caused by accidental damage, your and/or any third party’s negligence, unreasonable use, modification, use with products or software files not supplied, licensed or authorised for use with the Product by Retro Games Ltd (including, but not limited to, non-licensed game enhancements, copier devices, adapters, power supplies or non-licensed accessories), computer viruses or use of the product otherwise than in accordance with the respective instructions, or any other cause unrelated to defects in material and workmanship;

(e) defects in the Product that are caused by the use of faulty, damaged or inappropriate power supplies or related leads or connectors;

(f) the Product if it has been opened, modified or repaired by any person or company other than Retro Games Ltd or its authorised partners;

(g) loss of any data that has been loaded onto or stored on the Product by any person or company other than Retro Games Ltd or its authorised partners;

(h) loss of data or any other content, such as the UI or the supplied Games, as a result of formatting the memory of the Product.

IF YOU NEED TO MAKE A CLAIM

To make a valid claim under this warranty, you must:

Notify Retro Games Ltd of the defect in the Product within 24 months of the date of the purchase of the Product by you, and return the Product to Retro Games Ltd within 30 days of notifying Retro Games Ltd of that defect. To make a claim, please contact us via our website contact.

Before sending the Product to our customer support (after speaking to us via www.thec64.com), you should remove or delete any private or confidential files or data.

By sending the Product to Retro Games Ltd you accept and agree that Retro Games Ltd will not be responsible for any loss, deletion or corruption of your files or data that has not been deleted or removed.

When sending the Product to Retro Games Ltd Customer Support:

  1. please use the original packaging supplied where possible;
  2. please provide a detailed description of the perceived defect;
  3. please attach a copy of your original proof of purchase from the retailer you purchased the Product from, which indicates the date of purchase of the Product and whom purchased from.

If, having inspected the Product, Retro Games Ltd accepts that the Product is defective as described, Retro Games Ltd will (at its sole discretion) either repair or replace the faulty part causing the defect, or replace the relevant element of the Product without charge to you.

If the above 24-month warranty period has already expired at the time the defect is notified to Retro Games Ltd or if the defect is not covered by this warranty, Retro Games Ltd may still be prepared to repair or replace the part causing the defect or replace the relevant element of the Product (at its sole discretion). For further information or, in particular, details of any charges for such services, please contact Retro Games Ltd Customer Support via our website contact.

This manufacturer’s warranty does not affect any usual statutory rights which you may have under consumer protection legislation as the purchaser of goods. The benefits described here are in addition to those rights.