Cheats¶

The cheat file in the window. Open… opens another one, and Clear turns every cheat off and empties the window.
Its trainers. Tick one to turn it on.
Custom POKEs - pokes of your own, one byte at a time.
Tools > Cheats opens the window. It works while the machine runs: a tick changes the machine’s memory at once, and there is nothing to apply.
Cheat files¶
A cheat file (.pok) holds trainers: infinite lives, more time, a level to start on. Each
trainer is a few pokes - bytes written into the game’s memory. Game archives often carry
one in a POKES folder beside the tape or snapshot.
Open one as you would any other file: with File > Open, by dropping it onto the picture, from File > Recent, or from the command line. The Cheats window opens with it. Opening a cheat file does not reset the machine or replace anything in it.
When you open a tape, snapshot or disk, Xpeccy+ looks for its cheat file by itself:
POKES\NAME.pok beside the image, then NAME.pok beside it, where NAME is the image’s
name. If the name is in the TOSEC style, such as Game (1986)(Publisher)(128K)[a].tzx,
Xpeccy+ then tries it without its tags in square brackets, Game (1986)(Publisher)(128K),
and then the name cut down to the game and its publisher, Game (1986)(Publisher). This
is how TOSEC sets name their cheat files. For an image opened from inside an archive,
Xpeccy+ does not look for a cheat file. A file found this way goes into the window with
nothing ticked, and the window says (found beside the image). If you then open an
image that has no cheat file, the found file is taken out of the window again. A file you
opened yourself stays, and so does the game’s own file when you pick another side of the
game from its list.
A program that starts Xpeccy+ with a game can also pass its trainers on the command line, without a file (see Cheats). The window then says Command line, and the trainers stay with the game, as its own cheat file would.
If a file is not a cheat file at all, Xpeccy+ refuses it with a message.
Turning a trainer on¶
Tick a trainer to poke it into the machine. Untick it, and the bytes it changed are put back as they were. If the game has changed a byte since then, or loaded it again, the byte stays as the game has it.
Some trainers ask for a value, such as the number of lives. A ? in the Value
column marks them. When you tick one, it asks for the number, from 0 to 255 (# for hex).
While the trainer is off, click the value to change it.
The column after it says what the window knows about the trainer:
does not match this release - the file says which bytes the trainer changes, and memory holds others. The file is for another release of the game, or the game has not loaded yet. If you tick it, the window asks before poking.
cannot check - the file does not say what the bytes were, so there is nothing to compare. The trainer is poked as soon as you tick it.
needs 128K - it pokes a memory page this machine does not have.
no RAM there - it pokes an address where the machine has ROM now.
bad: and a line number - that part of the file cannot be read. The trainer cannot be ticked.
Click the arrow before a trainer to see its pokes: the address, the value, and what was there before, if the file says so. A poke for a 128K page goes into that page, whatever page the machine has in its memory at the moment.
Custom POKEs¶
Type an address and a value, as BASIC’s POKE takes them: in decimal on the DEC row, or
in hex on the HEX row under it. Typing in one fills in the other. The row without the
cursor is dimmed.
Press Enter in Address to go on to Value. Enter in Value pokes the byte, moves the address on by one and keeps the value ready to type over, so you can enter a run of bytes one after another. The POKE button does the same as Enter.
The address is the one the processor sees, with the memory that is paged in now. Xpeccy+ refuses an address in ROM.
Every byte poked this way goes into the Custom row of the list. Untick the row to put the original bytes back, last first. Tick it to poke them again. Clear at the top empties the row, together with the cheat file.
When cheats go off¶
A reset, opening another file, a machine switch, Quick Load and Undo Quick Load turn every cheat off without writing anything back, because the memory they changed is gone. The cheat file stays in the window.
Opening the game’s tape or disk again, by File > Reload or any other way, turns every cheat off and puts their bytes back first, before the game is loaded again.
Rewind keeps cheats on. If going back in time puts a trainer’s bytes back to the originals, the trainer is poked again. If its bytes are something else, it goes off.
An RZX recording keeps each cheat you turn on or off, so it plays back the same. While an RZX plays, the window does not poke.
Cheats last until Xpeccy+ closes. A snapshot saved while a cheat is on has the poked bytes in it.
Cheats has no key by default. You can set one on the Hotkeys page of Options, under Tools. You can also put it on the toolbar: right-click the toolbar and choose Buttons > Tools.