Prev: 55334 Up: Map Next: 55396
55341: Handler: Kempston
Used by the routine at Handler_Player.
Reads Kempston and walks, climbs, jumps or fires.
Fetch the left/right Kempston masks.
Controls_Kempston 55341 LD HL,(25734) Fetch the left mask into L and the right mask into H.
Walk left.
55344 CALL Read_Kempston Call Player_MoveLeft if left matches the stored mask.
55347 JR NZ,Controls_Kempston_Right
55349 CP L
55350 CALL Z,Player_MoveLeft
Walk right.
Controls_Kempston_Right 55353 CALL Read_Kempston Call Player_MoveRight if right matches the stored mask.
55356 JR NZ,Controls_Kempston_Up
55358 CP H
55359 CALL Z,Player_MoveRight
Climb up, or start a jump.
Controls_Kempston_Up 55362 CALL Read_Kempston Call Player_ClimbUp if up (bit 3) is pressed.
55365 JR NZ,Controls_Kempston_Down
55367 CP 8
55369 CALL Z,Player_ClimbUp
Climb down.
Controls_Kempston_Down 55372 CALL Read_Kempston Call Player_ClimbDown if down (bit 2) is pressed.
55375 JR NZ,Controls_Kempston_Action
55377 CP 4
55379 CALL Z,Player_ClimbDown
Fire / use the furniture.
Controls_Kempston_Action 55382 CALL Read_Kempston Call Player_Action if fire (bit 4) is pressed.
55385 JP NZ,Handler_Player_Resolve
55388 CP 16
55390 CALL Z,Player_Action
Resolve the player movement.
55393 JP Handler_Player_Resolve Jump to Handler_Player_Resolve.
Prev: 55334 Up: Map Next: 55396