Patch:A 2 Enter

From KeenWiki
Jump to navigation Jump to search

The 'debug code' A 2 enter is used to activate debug mode in Keen Galaxy. This allows access to the F10 cheat codes. See the linked pages for more patches relating to each. The first link contains patches relating to the debug window and the keys needed to activate debug mode. The second link contains patches relating to the actual cheats.


Don't need A 2 Enter to use F10 cheats

This patch removes the need to use A 2 Enter in order to use the F10 cheats.

Keen 4

#Don't need debug mode to use F10 cheats
%patch $7AB7 $90 $90

Keen 5

#Don't need debug mode to use F10 cheats
%patch $7A72 $90 $90

Keen 6

#Don't need debug mode to use F10 cheats
%patch $784B $90 $90


A 2 Enter keys

Three keys are needed to activate debug. (See Patch:Scancodes.) By default these are 'a' and '2'; 'enter' is a 'gateway key' meaning that it is shared between several things such as the status window. As such 'enter' must be one of the three keys and only the other two can be altered. Setting either key to $C647, $BCAF or $C7D5 (in Keen 4, Keen 5 and Keen 6 respectively) will disable debug mode and thus the F10 cheats. (Unless the debug requirement is removed from cheating.)

Keen 4

#Debug keys
%patch $82E1 {$C683W} #A
%patch $82E8 {$C64DW} #2

Keen 5

#Debug keys
%patch $825D {$BCEBW} #A
%patch $8264 {$BCB5W} #2

Keen 6

#Debug keys
%patch $8088 {$C811W} #A
%patch $808F {$C7DBW} #2


Window and text

Debug window and text

#Keen 4 Debug window
%patch $82EE  [$0002W] #Height
%patch $82F2  [$0014W] #Width
%patch $8303  [$066DW] #Text called from

#Text
%patch $2F4DD "Debug keys active" $00


#Keen 5 Debug window
%patch $826A  [$0002W] #Height
%patch $826E  [$0014W] #Width
%patch $827F  [$05DFW] #Text called from

#Text
%patch $3091F "Debug keys active" $00


#Keen 6 Debug window
%patch $8095  [$0002W] #Height
%patch $8099  [$0014W] #Width
%patch $80AA  [$05D7W] #Text called from

#Text
%patch $31307 "Debug keys active" $00


A 2 enter gives a life

This patch alters the a 2 enter window so that instead of activating debug mode it gives the player an extra life. This of course disables the F10 cheats, but these can be re-enabled via the nowait switch or by removing the debug condition from the cheats. The text used here also has unlimited space, meaning the window's message can be of any length.

The first line contains the two key checks needed to activate the window (One of the keys has to be 'enter'.) The end of the first line and start of the second line contains the window's height\width variables. The text is called on line 3 and line 4 increases the life counter.

Keen 4

#Debug cheat gives an extra life
%patch $82DF $83 $3E {$C683W}  [$00] {$74} $38 $83 $3E {$C64DW}  [$00] {$74} $31 $B8 [$0002W]
                 $50 $B8 [$0009W]  $50 $9A $19311070RL     $83 $C4 $04 $83 $06
             $35 $A5 $02 $B8 [$E8D0W]  $50 $9A $19310CF9RL     $83 $C4 $02 $9A
             $1D060A9BRL     $9A $14600EDFRL     $FF $06 {$7A6AW}  $90 $90

#Text
%patch $3D740 " Get a life!" $00

Keen 5

#Debug cheat gives an extra life
%patch $825B $83 $3E {$BCEBW}  [$00] {$74} $38 $83 $3E {$BCB5W}  [$00] {$74} $31 $B8 [$0002W]
                 $50 $B8 [$0009W]  $50 $9A $1A2B106ERL     $83 $C4 $04 $83 $06
             $9D $9B $02 $B8 [$05DFW]  $50 $9A $1A2B0CF7RL     $83 $C4 $02 $9A
             $1E000A97RL     $9A $155A0EDCRL     $FF $06 {$6F6AW}  $90 $90

#Text
%patch $3091F " Get a life!" $00

Keen 6

#Debug cheat gives an extra life
%patch $8086 $83 $3E {$C811W}  [$00] {$74} $38 $83 $3E {$C7DBW}  [$00] {$74} $31 $B8 [$0002W]
                 $50 $B8 [$0009W]  $50 $9A $18F81070RL     $83 $C4 $04 $83 $06
             $C3 $A6 $02 $B8 [$05D7W]  $50 $9A $18F80CF9RL     $83 $C4 $02 $9A
             $1CF70AA5RL     $9A $14130EE0RL     $FF $06 {$7A6AW}  $90 $90

#Text
%patch $31307 " Get a life!" $00