id: BL-034
title: DOWN pressed in the bottom corridor under the middle of the maze, and held
shows: Pac-Man walks left, down, right to the column of the opening in the bottom of the maze, then DOWN is held to the end: what the position bytes and the pause flag do.
inputs: BL-034.inputs
frames: 760
rom_sha1: 0940fea7f04cdb6d4b90c5ad1a7e344e68f6dbb1
trace_sha256: e8961cf01e349cf91e9eccfb52d843db1e6162fe1b62eff316cba3f2888de214
trace_bytes: 228016
observations:
  Frames are counted from power-on (frame 0). Memory bytes are named by their address; the meanings are working labels
  (Stages C6 and C7, docs\CONTROLS.md and docs\CAPTURES.md), not yet confirmed (Phase F). Every number below was read from the trace.
  - Game Reset on frame 240 starts a game (lives counter reads 3 from frame 240).
  - Play begins on frame 367 (pause flag clears); Pac-Man stands at (76,60), the start place.
  - Joystick on frames 367-369: nothing.
  - Joystick on frames 370-419: LEFT.
  - Joystick on frames 420-469: DOWN.
  - Joystick on frames 470-489: RIGHT.
  - Joystick on frames 490-759: DOWN.
  - Pac-Man moves left from (76,60) to (64,60): 12 pixels, first step on frame 371, last on frame 391; frames between steps: 2,2,2,1,2,2,2,1,2,2,2 (2 x 1 frame, 9 x 2 frames); 0.571 pixels per frame
  - Pac-Man moves down from (64,60) to (64,70): 10 pixels, first step on frame 421, last on frame 437; frames between steps: 1,2,2,2,1,2,2,2,2 (2 x 1 frame, 7 x 2 frames); 0.588 pixels per frame
  - Pac-Man moves right from (64,70) to (76,70): 12 pixels, first step on frame 470, last on frame 490; frames between steps: 2,2,2,1,2,2,2,2,1,2,2 (2 x 1 frame, 9 x 2 frames); 0.571 pixels per frame
  - Direction change left -> down at (64,60): last step of the first leg on frame 391, first step of the next on frame 421 (30 frames apart).
  - Direction change down -> right at (64,70): last step of the first leg on frame 437, first step of the next on frame 470 (33 frames apart).
  - Frame 491: the position jumps from (76,70) to (76,81) (not a one-pixel step).
  - Frames 391-420: Pac-Man does not move (stays at (64,60)) although LEFT is held at frame 391: a wall in the way.
  - Frames 437-469: Pac-Man does not move (stays at (64,70)) although DOWN is held at frame 437: a wall in the way.
  - Frames 576-759: Pac-Man does not move (stays at (76,0)) although DOWN is held at frame 576: a wall in the way.
  - Pac-Man took no pixel step on a frame when no direction was held.
  - Frames 492-575: the pause flag (byte $D2 bit 6) is set for 84 frames; the lives counter reads 3 before and 3 at its end; bytes $B1/$B6 go from (76,81) to (76,0).
  - Frame 491: byte $B6 reads 81, more than the lowest corridor row (70); in the picture of that frame Pac-Man is drawn below the bottom of the maze, under the opening (looked at by eye).
  - How to check it against the real game: start a game, walk left, down, right to the middle of the bottom corridor, then hold down (switch on, press Game Reset, wait for the start tune to end; the frame numbers are counted from power-on at 60 per second; the joystick moves are listed above).
