![]() |
Routines |
Prev: 61512 | Up: Map |
|
|||||||||||
61533 | CALL 25233 | A=random number | |||||||||
61536 | CP 240 | Set the carry flag if A<240, and set the zero flag if A<128 | |||||||||
61538 | BIT 7,A | ||||||||||
61540 | LD E,91 | ||||||||||
61542 | JR NC,61548 | Jump if it's essay time (A>=240) | |||||||||
61544 | JR Z,61547 | Jump if it's book-reading time (A<128) | |||||||||
61546 | DEC E | It's revision time (128<=A<240) | |||||||||
61547 | DEC E | ||||||||||
Now E holds the appropriate message number:
|
|||||||||||
61548 | LD BC,27144 | Redirect control to the routine at 27144 (make character speak), then return control to the calling routine | |||||||||
61551 | JP 25503 |
Prev: 61512 | Up: Map |