![]() |
Routines |
| Prev: F048 | Up: Map | Next: F072 |
|
||||||||||||
| F05D | CALL $6291 | A=random number | ||||||||||
| F060 | CP $F0 | Set the carry flag if A<0xF0, and set the zero flag if A<0x80 | ||||||||||
| F062 | BIT 7,A | |||||||||||
| F064 | LD E,$5B | |||||||||||
| F066 | JR NC,$F06C | Jump if it's essay time (A>=0xF0) | ||||||||||
| F068 | JR Z,$F06B | Jump if it's book-reading time (A<0x80) | ||||||||||
| F06A | DEC E | It's revision time (0x80<=A<0xF0) | ||||||||||
| F06B | DEC E | |||||||||||
|
Now E holds the appropriate message number:
|
||||||||||||
| F06C | LD BC,$6A08 | Redirect control to the routine at 6A08 (make character speak), then return control to the calling routine | ||||||||||
| F06F | JP $639F | |||||||||||
| Prev: F048 | Up: Map | Next: F072 |