| The Hobbit (v1.0) | Routines |
| Prev: A0F8 | Up: Map | Next: A113 |
| A100 | PUSH HL | Save the caller's HL and BC | ||
| A101 | PUSH BC | |||
| A102 | LD B,$05 | Five actions to check against | ||
| A104 | LD HL,$A13B | HL = the list of actions that use the instrument's own handlers, rather than the target's | ||
| A107 | LD A,($B5D8) | A = the action being carried out right now | ||
| A10A | CP (HL) | Is it one of these five? | ||
| A10B | JR Z,$A110 | Yes: stop here, with it found | ||
| A10D | INC HL | No: look at the next one in the list | ||
| A10E | DJNZ $A10A | |||
| A110 | POP BC | Restore the caller's BC and HL | ||
| A111 | POP HL | |||
| A112 | RET | |||
| Prev: A0F8 | Up: Map | Next: A113 |