|  | Routines | 
| Prev: E41D | Up: Map | Next: E484 | 
| 
Used by the routine in E41D.
 
 | ||||||||||
| 
Print the description of an item. If the control code F4+flag is found, use the first or the second description depending on whether or not that flag is set.
 | ||||||||||
| E468 | CALL $B84B | Print the string up to the first FF marker. | ||||||||
| E46B | LD C,$07 | |||||||||
| E46D | LD A,(HL) | Get the next byte. | ||||||||
| E46E | CP $F4 | Is it a flag specifier? | ||||||||
| E470 | RET NZ | Return if it isn't. | ||||||||
| 
This item's description is dependent on a flag.
 | ||||||||||
| E471 | INC HL | Put the flag in A. | ||||||||
| E472 | LD A,(HL) | |||||||||
| E473 | INC HL | Point to the next place in the buffer. | ||||||||
| E474 | CALL $EC1D | Is the flag set? | ||||||||
| E477 | JP NZ,$B84B | Jump forward if it is to use the first description. | ||||||||
| E47A | PUSH BC | Otherwise search for the next instance of FF to point at the second description. | ||||||||
| E47B | LD B,$FF | |||||||||
| E47D | LD A,B | |||||||||
| E47E | CPIR | |||||||||
| E480 | POP BC | |||||||||
| E481 | JP $B84B | Jump to print the flag-specific description. | ||||||||
| Prev: E41D | Up: Map | Next: E484 |