Prev: 54415 Up: Map Next: 54704
54691: Hit Detection
Compares the Door_Frame_Reference against the user input for a shot. If there isn't a shot to account for then we simply return, else we action a jump to the address held in DE on entry.
Hit_Detection 54691 PUSH HL Store HL on the stack for later.
54692 LD A,(54016) Does a comparison of Hit against Door_Frame_Reference.
54695 LD HL,52762
54698 CP (HL)
54699 POP HL Retrieve HL off the stack and return if the numbers compared were NOT the same.
54700 RET NZ
54701 POP AF Restores the character state to A.
54702 EX DE,HL Jumps to the address held in DE on entry (with DE now containing the original HL address).
54703 JP (HL)
Prev: 54415 Up: Map Next: 54704