Prev: 31807 Up: Map Next: 31831
31815: Restart the command list
Used by command lists 182, 190, 192, 194, 196, 204 and 206.
Input
H Character number (152-169)
Output
31815 LD A,(32761) Pick up the current lesson number (0-63) from 32761
31818 LD E,A Copy this to E
31819 LD B,1 We want to restart the command list for this character only
31821 LD D,254 Set E to the lesson identifier (224-255) from the main timetable; note that this will not be the identifier of the current lesson if the current lesson is a 'special' playtime - 243, 244 or 245 - which is a bug
31823 LD A,(DE)
31824 LD E,A
31825 CALL 26395 Set this character's command list up for a restart
31828 JP 25252 Move to the first command in the command list
Prev: 31807 Up: Map Next: 31831