![]() |
Routines |
Prev: AFB7 | Up: Map | Next: AFEB |
Used by the routine at GameLoop.
|
||||
Parser_ProcessItem | AFC7 | LD HL,$A824 | HL=UserInput_Token_1. | |
AFCA | LD B,$0A | B=0A. | ||
Parser_ProcessItem_0 | AFCC | LD A,(HL) | Return if *HL is equal to FF. | |
AFCD | CP $FF | |||
AFCF | RET Z | |||
AFD0 | PUSH HL | Stash HL and BC on the stack. | ||
AFD1 | PUSH BC | |||
AFD2 | LD HL,($A7D8) | HL=*Pointer_ObjectList. | ||
AFD5 | LD BC,($A7E8) | BC=*Count_Objects. | ||
AFD9 | CPIR | CPIR. | ||
AFDB | JR NZ,Parser_ProcessItem_1 | Jump to Parser_ProcessItem_1 if A is not equal to FF. | ||
AFDD | CALL Action_ExamineItem | Call Action_ExamineItem. | ||
AFE0 | JR NC,Parser_ProcessItem_1 | Jump to Parser_ProcessItem_1 if A is greater than or equal to FF. | ||
AFE2 | POP BC | Restore BC and HL from the stack. | ||
AFE3 | POP HL | |||
AFE4 | RET | Return. | ||
Parser_ProcessItem_1 | AFE5 | POP BC | Restore BC and HL from the stack. | |
AFE6 | POP HL | |||
AFE7 | INC HL | Increment HL by one. | ||
AFE8 | DJNZ Parser_ProcessItem_0 | Decrease counter by one and loop back to Parser_ProcessItem_0 until counter is zero. | ||
AFEA | RET | Return. |
Prev: AFB7 | Up: Map | Next: AFEB |