Prev: E99E Up: Map Next: E9B5
E9A1: Game Loop
Used by the routine at GameStart.
One turn: run events, read a command, and dispatch its verb.
GameLoop E9A1 CALL GameEventsProcessor Call GameEventsProcessor to advance the turn-based events.
E9A4 XOR A Clear the turn scratch flag (08 marks an attack).
E9A5 LD ($AE78),A
E9A8 CALL Handler_UserInput Call Handler_UserInput to read the next command.
E9AB CALL ParserProcessItem Call ParserProcessItem to apply the command to the item.
E9AE JR C,GameLoop Start the next turn without running the verb if a named item isn't here (carry set by ParserProcessItem).
E9B0 CALL Handler_DispatchVerb Call Handler_DispatchVerb to run the verb.
E9B3 JR GameLoop Take another turn at GameLoop.
Prev: E99E Up: Map Next: E9B5