|  | Routines | 
| Prev: AF00 | Up: Map | Next: AF10 | 
| AF01 | LD A,($AF00) | Get the current room. (AF00) | ||
| AF04 | INC A | Move to the next one along. | ||
| AF05 | CP $20 | Have we reached room 20? (Herbert doesn't appear in the sewer or the cave.) | ||
| AF07 | JR NZ,$AF0A | Jump forward if not. | ||
| AF09 | XOR A | Otherwise reset to room 0 (Town Square). | ||
| AF0A | LD ($AF00),A | Set the new value. | ||
| AF0D | XOR $15 | Flip bits 0, 3 and 5 and return. | ||
| AF0F | RET | |||
| Prev: AF00 | Up: Map | Next: AF10 |