1981 · Nintendo

Popeye: Discoveries

This minisite was contributed by icyriver2023. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/gnw/popeye with me to Gold.

What the program does that the unit never tells the player.

01 · Misses

Secret: an item that falls in the sea is only half a miss

The first item to fall past Popeye leaves its splash on the screen and counts nothing. The second counts a miss mark.

Left: a can has fallen in; its splash is lit and there is no miss mark. Right: the next can falls in, the first mark lights and the splash goes. Both from Game A, with Popeye standing still in the middle.

The routine every lost item goes through tests a flag, bit 1 of $1007 ($0192). When the flag is clear it is set, and the routine goes on as if nothing had happened, so the splash it has just lit stays on the screen. When the flag is set, it is cleared, the splashes are put out, and a miss is counted ($019A). So it takes two items in the sea for one mark, six for a game over. A hit from Bluto counts a whole miss each time.

02 · Difficulty

Secret: 200 points is easier than 199

The level is the score's hundreds digit plus its tens digit, so it climbs through each hundred and falls back at the next.

Score190194199200290300
Level565363
Most items falling565363
Delay before a step (passes)98910810

From $0080; the How it works tab has the whole curve. A units digit of 4 to 7 adds a level, so the game also quickens and slows within every ten points.

The highest the sum can be is 18, at 990 to 999, which is level 9, or 10 with the units bonus. The code that turns the level into a delay has one entry no score reaches: 2 passes, for level 12 and above ($00A5, $00AF). The fastest a game gets is 3.

03 · The clock inside the game

Secret: Olive throws no extra item while the clock's seconds end in 8 or 9

The decision to throw reads the clock's seconds ($00DC).

The unit keeps time through every game. When Olive could throw another item, one beyond what is falling, the game first looks at the units digit of the clock's seconds, $103B, and throws nothing extra while it is 8 or 9. For a fifth of every ten seconds the screen can only empty out. With nothing falling she still throws, whatever the second.

04 · Bluto

Secret: Bluto's timing comes from your last button press

A swing starts only while bit 1 of the seconds since a button last changed is set, and only with an even number of items falling ($03C4).

The count, $1040 and $1041, exists so that an idle unit can go back to its clock after a game; any change of a button clears it, and so does every miss. Its bit 1 is set for seconds 2 and 3, 6 and 7, and so on. Left and right are not on the row the game reads for it, so moving Popeye does not reset it: only Time, Game A, Game B and Alarm do, and those are ignored during a game. In practice the count starts when the game key is let go, and Bluto can only begin a swing in alternate pairs of seconds from then.

Secret: in Game A Bluto never leaves the left boat

Changing boats happens on the bottles' step when a ten of seconds has passed, and the code checks bit 2 of the mode, Game A, to skip it ($016A). In Game B, and in the clock's own demo, Bluto crosses over at most once every ten seconds, with his weapon up ($0395).

05 · The bonus

Secret: 200 and 500 points clear your misses, but only if you have one

Reaching 200 or 500 with a miss mark lit stops the game for five seconds while the marks blink ten times, then clears them ($0040, $0719).

The test is on the first mark, bit 0 of $1006. With no mark lit the code jumps straight on, and there is no other reward. The pause also forgets a lost item that had not yet counted (bit 1 of $1007), so a half miss is cleared with the rest. At 1000 the score wraps to 000 and there is no bonus there.

06 · The test pad

Secret: the "infinite lives" pad does three other things

MAME offers an "Infinite Lives" setting for this unit: a pad on the board, wired to the R2 row of inputs, which no button reaches.

When a miss is about to be counted, the game selects that row and reads it; any of its four inputs held stops the count, not only the one MAME names ($01A6). On every pass the game also reads the row for two more: its fourth input rings the alarm at once, and its third sends the unit back to the state after ACL, all segments lit ($05A3). After ACL any input of the row shows 888 on the digits ($06DC). They look like a factory's tests of the screen and the buzzer.

07 · Buttons

Secret: hold Time to see the alarm, hold Game A to see the best score

In the clock, Time held shows the alarm's time in place of the time ($06C0). Game A or Game B held shows that game's best score, and the game starts when the button is let go ($0680). The best scores are kept apart for the two games, in $1045 and $1025, and only in memory: ACL clears them.

08 · The demo

The clock's demo throws a second item only in seconds ending in 9

In the clock, the throw decision takes a branch of its own ($00D5). It adds the seconds' units digit to a value twice, with ADD and then ADDC, and both of the instructions after jump to the same place, so the branch looks like it does nothing. The carry of the ADDC is what it leaves: set only when the digit is 9, and the carry is the throw. With nothing falling the demo always throws, so one item falls at a time, and a second one only starts in a second ending in 9.

09 · Leftovers

Memory nobody uses, and bytes nothing runs

Of the chip's 65 cells, eleven are never used: $1022 to $1024, $1044, $1048, $104B and $104C are cleared at power on and never touched again, and the last cell of rows 0 to 3, $100C, $101C, $102C and $103C, is not even cleared. Five of the 29 pages of the program end in a few bytes after their last jump that nothing runs: 16 bytes in all, among them two PTW instructions, the only ones in the program ($073D).

The game keeps a count of the items falling and can lose track of it, so whenever no item is lit anywhere on the screen it sets the count back to 0 ($0696).

10 · Game over

Bug: when Bluto's blow ends the game, Popeye never comes back

After an ordinary game over, Popeye can still be moved left and right; MAME's notes say the real unit does the same. After a game ended by Bluto, he is gone and the buttons do nothing.

A knock-down runs on the game's steps: $1043 counts down from 8, the miss is counted at 3 and Popeye comes back at 1 ($0100). When that miss is the third, the game is over at once, and a game that is over runs no more steps ($00C1), so the count stops at 3. With the count not at 0 the controls are ignored ($02E2), so Popeye stays under the water until the next game starts. To see it, with two miss marks lit, step Popeye under the lowered mallet, then press right and wait.