Prev: D48F Up: Map Next: D5B0
D5A3: 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 D5A3 PUSH HL Store HL on the stack for later.
D5A4 LD A,($D300) Does a comparison of Hit against Door_Frame_Reference.
D5A7 LD HL,$CE1A
D5AA CP (HL)
D5AB POP HL Retrieve HL off the stack and return if the numbers compared were NOT the same.
D5AC RET NZ
D5AD POP AF Restores the character state to A.
D5AE EX DE,HL Jumps to the address held in DE on entry (with DE now containing the original HL address).
D5AF JP (HL)
Prev: D48F Up: Map Next: D5B0