Prev: EC1C Up: Map Next: EC2B
EC1D: Get a game status flag and return it in A, setting the zero flag appropriately
Used by the routines at B952, E468, EDB3, F43C, F4D3, F503, F54F, F572 and F5F1.
Input
A flag number to get
EC1D PUSH HL Store HL and DE.
EC1E PUSH DE
EC1F LD E,A Put the flag in DE.
EC20 LD D,$00
EC22 LD HL,$EC0F Add the base pointer to the flags at EC0F.
EC25 ADD HL,DE
EC26 LD A,(HL) Get the flag.
EC27 POP DE Restore HL and DE.
EC28 POP HL
EC29 OR A Return, setting the zero flag if A is zero.
EC2A RET
Prev: EC1C Up: Map Next: EC2B