![]() |
Routines |
| Prev: 69CA | Up: Map |
|
||||||||||
| 69D2 | CALL $61A1 | A=random number | ||||||||
| 69D5 | AND $06 | A=0xCA, 0xCC, 0xCE or 0xD0 | ||||||||
| 69D7 | ADD A,$CA | |||||||||
| 69D9 | LD E,A | Point DE at one of the four skool locations in the table at 69CA | ||||||||
| 69DA | LD D,$69 | |||||||||
| 69DC | EX DE,HL | Pick up the coordinates of the skool location in A and D | ||||||||
| 69DD | LD A,(HL) | |||||||||
| 69DE | INC L | |||||||||
| 69DF | LD H,(HL) | |||||||||
| 69E0 | EX DE,HL | |||||||||
| 69E1 | LD L,$65 | Place the coordinates of the skool location into bytes 0x65 and 0x66 of the character's buffer to make it his next destination | ||||||||
| 69E3 | LD (HL),A | |||||||||
| 69E4 | INC L | |||||||||
| 69E5 | LD (HL),D | |||||||||
| 69E6 | RET | |||||||||
| Prev: 69CA | Up: Map |