![]() |
Routines |
Prev: 44983 | Up: Map | Next: 45035 |
Used by the routine at GameLoop.
|
||||
Parser_ProcessItem | 44999 | LD HL,43044 | HL=UserInput_Token_1. | |
45002 | LD B,10 | B=10. | ||
Parser_ProcessItem_0 | 45004 | LD A,(HL) | Return if *HL is equal to 255. | |
45005 | CP 255 | |||
45007 | RET Z | |||
45008 | PUSH HL | Stash HL and BC on the stack. | ||
45009 | PUSH BC | |||
45010 | LD HL,(42968) | HL=*Pointer_ObjectList. | ||
45013 | LD BC,(42984) | BC=*Count_Objects. | ||
45017 | CPIR | CPIR. | ||
45019 | JR NZ,Parser_ProcessItem_1 | Jump to Parser_ProcessItem_1 if A is not equal to 255. | ||
45021 | CALL Action_ExamineItem | Call Action_ExamineItem. | ||
45024 | JR NC,Parser_ProcessItem_1 | Jump to Parser_ProcessItem_1 if A is greater than or equal to 255. | ||
45026 | POP BC | Restore BC and HL from the stack. | ||
45027 | POP HL | |||
45028 | RET | Return. | ||
Parser_ProcessItem_1 | 45029 | POP BC | Restore BC and HL from the stack. | |
45030 | POP HL | |||
45031 | INC HL | Increment HL by one. | ||
45032 | DJNZ Parser_ProcessItem_0 | Decrease counter by one and loop back to Parser_ProcessItem_0 until counter is zero. | ||
45034 | RET | Return. |
Prev: 44983 | Up: Map | Next: 45035 |