| Routines

B175: Prepare a character to be walked onto the screen (2)

Continues from AF77. On entry here, the carry flag is set if the character to be walked onto the screen is a boy.
Input
DE | B5EC
HL | 9860 (96, 152)
B175 | JR C,$B179 | Jump if we are dealing with a boy
B177 | LD H,$A4 | 0xA4=MR ROCKITT
B179 | EX DE,HL | Change the instruction at B5EB in the routine at B5E8 to LD H,$98 (boy) or LD H,$A4 (teacher) as appropriate
B17A | LD (HL),D
B17B | EX DE,HL
B17C | JP $B47A |