Routines |
Prev: B27F | Up: Map | Next: B2FF |
Continues from B1E8. Determines the animatory state of the character to be walked onto the screen.
|
||||||||||
B2E8 | SUB $05 | Are we dealing with one of the teachers? | ||||||||
B2EA | JR C,$B2F3 | Jump if so | ||||||||
B2EC | ADD A,$09 | A=9, 10, 11, 12 | ||||||||
B2EE | AND $0B | A=9, 10, 11, 8 | ||||||||
B2F0 | ADD A,A | A=18, 20, 22, 16 | ||||||||
B2F1 | JR $B2F9 | |||||||||
B2F3 | CPL | A=0, 1, 2, 3 | ||||||||
B2F4 | INC A | A=1, 2, 3, 4 | ||||||||
B2F5 | AND $03 | A=1, 2, 3, 0 | ||||||||
B2F7 | ADD A,$19 | A=26, 27, 28, 25 | ||||||||
B2F9 | RLCA | A=0xD0 (MR WACKER), 0xD8 (MR ROCKITT), 0xE0 (MR WITHIT), 0xC8 (MR CREAK), 0x90 (EINSTEIN), 0xA0 (ANGELFACE), 0xB0 (BOY WANDER), or 0x80 (ERIC) | ||||||||
B2FA | RLCA | |||||||||
B2FB | RLCA | |||||||||
B2FC | JP $B3E8 |
Prev: B27F | Up: Map | Next: B2FF |