![]() |
Routines |
| Prev: E41D | Up: Map | Next: E484 |
|
Used by the routine at E41D.
|
||||
| DrawCharacterItemLabel | E468 | CALL Controller_Tile | Call Controller_Tile. | |
| E46B | LD C,$07 | C=07. | ||
|
Check to see if there is a task associated with this item.
|
||||
| E46D | LD A,(HL) | Return if *HL is not F4 (control character). | ||
| E46E | CP $F4 | |||
| E470 | RET NZ | |||
| E471 | INC HL | Increment HL by one. | ||
|
Fetch the task ID.
|
||||
| E472 | LD A,(HL) | A=*HL. | ||
| E473 | INC HL | Increment HL by one. | ||
| E474 | CALL Handler_TaskCompleted | Call Handler_TaskCompleted. | ||
| E477 | JP NZ,Controller_Tile | If the task has completed, jump to Controller_Tile. | ||
|
The task has not yet been completed, so move onto the next messaging label.
This works as the items are stored as "completed label"+"termintor", "not completed label"+"termintor".
|
||||
| E47A | PUSH BC | Stash BC on the stack. | ||
| E47B | LD B,$FF | B=FF. | ||
| E47D | LD A,B | A=B. | ||
| E47E | CPIR | Find the next messaging label. | ||
| E480 | POP BC | Restore BC from the stack. | ||
| E481 | JP Controller_Tile | Jump to Controller_Tile. | ||
| Prev: E41D | Up: Map | Next: E484 |