Prev: 50359 Up: Map Next: 50411
50375: Parser: Process Item
Used by the routine at GameLoop.
Parser_ProcessItem 50375 LD HL,48486 HL=UserInput_Token_1.
50378 LD B,10 B=10.
Parser_ProcessItem_0 50380 LD A,(HL) Return if *HL is equal to 255.
50381 CP 255
50383 RET Z
50384 PUSH HL Stash HL and BC on the stack.
50385 PUSH BC
50386 LD HL,(48414) HL=*Pointer_ObjectList.
50389 LD BC,(48426) BC=*Count_Objects.
50393 CPIR CPIR.
50395 JR NZ,Parser_ProcessItem_1 Jump to Parser_ProcessItem_1 if A is not equal to 255.
50397 CALL Action_ExamineItem Call Action_ExamineItem.
50400 JR NC,Parser_ProcessItem_1 Jump to Parser_ProcessItem_1 if A is greater than or equal to 255.
50402 POP BC Restore BC and HL from the stack.
50403 POP HL
50404 RET Return.
Parser_ProcessItem_1 50405 POP BC Restore BC and HL from the stack.
50406 POP HL
50407 INC HL Increment HL by one.
50408 DJNZ Parser_ProcessItem_0 Decrease counter by one and loop back to Parser_ProcessItem_0 until counter is zero.
50410 RET Return.
Prev: 50359 Up: Map Next: 50411