PEEKaboo

$00007C level 7, the interrupt the Action Replay button pulled

The Pirate

For anyone who had an Action Replay cartridge, or wanted one. Freeze a running game, search its memory for your lives, find the instruction that takes them away, and make them last forever. It's the trainer workflow the cracking groups used, with a machine that can't crash on you.

01Pick a game

This guide trains Rick Dangerous (Firebird, 1989), downloaded from the TOSEC Browser. The copy is [cr QTX][h ACU]: cracked by Quartex, with an intro added by Australian Crackers United. Search TOSEC for rick dangerous and pick that entry, or use any game with a lives counter.

  • The ACU intro
    Australian Crackers United's intro: the group's name in yellow at the top and a scrolling message along the bottom.
    The crack intro. Click to continue.
  • Title
    The Rick Dangerous title screen: Rick in his hat, holding a pistol.
    The title screen. Fire starts the game.
  • In the game
    Rick Dangerous in the first cave, with the score, six bullets, six sticks of dynamite and six hats along the top.
    Six hats at the top right: six lives. That's the number to find.

02Freeze the machine

On a real Amiga, the Action Replay's button fired the level 7 interrupt and dropped you into its monitor. In PEEKaboo, press F5 to pause, then Shift+F12 to open the Debugger Console. It speaks the Action Replay's language: M to look at memory, D to disassemble, R for registers, G to carry on. Type HELP for every command.

04Find the code that takes a life

Knowing where the lives live is half the job. TF 44972 searches the program for an instruction that subtracts from that address, and finds it at $45E3C. D 45E3C disassembles it:

00045E3C: 0439 0001 0004 4972   SUB.B #$01,$00044972

That's the line of code that kills Rick, one byte at a time. Old trainers replaced it with NOPs (the assembler's "do nothing"). You can do that with A 45E3C, the console's assembler, but there's a tidier way.

05Lock it

PEEKaboo can hold a memory location at a value without touching the game's code:

CommandDoes
PR 44972 SET=6 SIZE=8Keep the byte at $44972 at 6, whatever the game writes.
PR 44972 BLOCKIgnore every write to it, so it stays at whatever it holds now.
PRList your locks. PR OFF, PR ON and PR DEL manage them, and PR CLEAR removes them all.

Press F5, die again, and the hats stay at six. Locks also appear in the Trainer window (Debug › Trainer), where you can tick them on and off, give them names, and add new ones with Add.

Trainer
The Trainer window with one lock: set $00044972, mode set, value $06, anchor resolved.
The lock made in the console, ticked and resolved. Save As… keeps a game's locks in a trainer file for next time.

06When the simple search fails

  • Energy bars and timers aren't a small whole number you can see. Use the deep trainer: TDS starts it, then TDC each time the value has changed, until TD lists the few locations that changed every time. TDX ends it.
  • Nothing survives T. Some games store lives as the number shown minus one (6 shown, 5 stored). Start again with TS 5.
  • Catch the moment. BS 45E3C sets a breakpoint on the instruction, so the machine stops the instant Rick dies. Then R shows the registers and STACK shows where it was called from.
  • Rewind. Missed the moment? Shift+F6 steps back frame by frame. See the Explorer guide.

Where next