diff --git a/games/lemm/keyboard.s b/games/lemm/keyboard.s index 61404c9d..3bc9a824 100644 --- a/games/lemm/keyboard.s +++ b/games/lemm/keyboard.s @@ -187,11 +187,28 @@ done_down_pressed: check_escape: cmp #27 - bne check_return + bne check_cheat escape_pressed: lda #LEVEL_FAIL sta LEVEL_OVER + jmp done_keypress + +check_cheat: + cmp #'!' + bne check_return +cheat_pressed: + + lda #20 + ldx #7 +cheat_loop: + sta CLIMBER_COUNT,X + dex + bpl cheat_loop + + jsr update_remaining_all + + jmp done_keypress check_return: