Patch:A 2 Enter

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.

Contents

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.

Patch: Keen 4

#Don't need debug mode to use F10 cheats

%patch $7AB7 $90 $90

Patch: Keen 5

#Don't need debug mode to use F10 cheats

%patch $7A72 $90 $90

Patch: 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.)

Patch: Keen 4

#Debug keys

%patch $82E1$C683W

#A

%patch $82E8$C64DW

#2

Patch: Keen 5

#Debug keys

%patch $825D$BCEBW

#A

%patch $8264$BCB5W

#2

Patch: Keen 6

#Debug keys

%patch $8088$C811W

#A

%patch $808F$C7DBW

#2

Window and text

Patch: 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.