| The Hobbit (v1.0) | Routines |
| Prev: A400 | Up: Map | Next: A41C |
|
Says, at random, either 'thank you' or 'what do you expect me to do with this?'
|
||||
| A406 | CALL $9C99 | Dry run? Then stop here: it always works | ||
| A409 | LD A,$0A | Pick a random number from 0 to 10 | ||
| A40B | CALL $9BF4 | |||
| A40E | LD HL,$AF98 | "what do you expect me to do with this?" | ||
| A411 | CP $08 | 8 or more? | ||
| A413 | JP NC,$A113 | Yes: say that | ||
| A416 | LD HL,$AF39 | "thank you" | ||
| A419 | JP $A113 | Otherwise: say that instead | ||
| Prev: A400 | Up: Map | Next: A41C |