From b2f87d4807fb12ca08762f041e8d9e4c6304794d Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 11 Aug 2022 22:02:37 +0300 Subject: [PATCH] Allow turning the torch off. We had accidentally left a `pop hl` instruction in-place as part of our state-update. That meant turning the torch off popped off the correct return-address, and gave us undefined behaviour. --- game.z80 | 1 - 1 file changed, 1 deletion(-) diff --git a/game.z80 b/game.z80 index 78e91e3..a20ee6c 100644 --- a/game.z80 +++ b/game.z80 @@ -2485,7 +2485,6 @@ torch_was_on: ; show the message ld de, TORCH_OFF_MSG call bios_output_string - pop hl ret