Prev: 45695 Up: Map Next: 45823
45800: Print a character's title and name, and walk him onto the screen (3)
Continues from 45544. Determines the animatory state of the character to be walked onto the screen.
Input
A 1-8 (corresponding to one of the eight main characters)
HL 39008 (96, 152)
45800 SUB 5 Are we dealing with one of the teachers?
45802 JR C,45811 Jump if so
45804 ADD A,9 A=9, 10, 11, 12
45806 AND 11 A=9, 10, 11, 8
45808 ADD A,A A=18, 20, 22, 16
45809 JR 45817
45811 CPL A=0, 1, 2, 3
45812 INC A A=1, 2, 3, 4
45813 AND 3 A=1, 2, 3, 0
45815 ADD A,25 A=26, 27, 28, 25
45817 RLCA A=208 (MR WACKER), 216 (MR ROCKITT), 224 (MR WITHIT), 200 (MR CREAK), 144 (EINSTEIN), 160 (ANGELFACE), 176 (BOY WANDER), or 128 (ERIC)
45818 RLCA
45819 RLCA
45820 JP 46056
Prev: 45695 Up: Map Next: 45823