Prev: F6E1 Up: Map Next: F713
F703: Response: Game Over If Player Is Carrying Sword
Input
HL Pointer to a messaging string
Response_IfSwordThenGameOver F703 LD ($A772),HL Temporarily stash the messaging pointer in HL to *TemporaryStorage_Messaging.
Make sure the player is even carrying a sword.
F706 CALL IsPlayerCarryingSword Call IsPlayerCarryingSword.
The player is carrying a sword but that means their doom...
Bad luck!
F709 LD HL,$E9B2 Switch GameOver onto the stack so the next return actions a "game over".
F70C EX (SP),HL
Print the messaging string.
F70D LD HL,($A772) Restore the messaging pointer from *TemporaryStorage_Messaging.
F710 JP PrintStringAndNewline_Duplicate Jump to PrintStringAndNewline_Duplicate.
Prev: F6E1 Up: Map Next: F713