The game

Goemon (or Ebisumaru, player 2) crosses 7 stages of 7 areas: 49 areas and 124 different screens. In each stage, areas 0 to 4 are streets and countryside, area 5 is walls and area 6 is the inside of a castle, the biggest one (66 to 80 cells).

Every picture on this page is drawn from the bytes of the ROM by the tools in tools/, which follow the cartridge's own steps, and checked against openMSX dumps (C-BIOS_MSX2_JP). Under each one it says which table it comes from.

The title screen

The Konami logo

The title screen

The menu has two options, one or two players, and the two take turns. The second button leads to the password screen (state 0x0E). The logo and the title match openMSX with not a single pixel different (titulo.py coteja). With Q*bert or the Game Master in the other slot, the title screen shows another menu: see Findings.

The 49 areas

Area 0 of stage 1

Area 0 of stage 1. Each row is a street: cells following each other from left to right (p00:4188). Under each cell, the arrows say which cell its up and down exits lead to (0xB7D0). The blue arrow on the right marks a street that starts over.

The up and down exits are not geometric: in this area, going up from cell 3 leads to cell 4, which is also to its right. That is why the maps are laid out by streets and not as a grid. Moving figures are not drawn, since they depend on the game; the fixed objects (0xA08E) are. All 49 area entrances are checked against openMSX (screen, characters and palette).

Stage Area 0 1 2 3 4 5 6
1 24 14 16 20 26 38 66
2 16 20 24 18 20 38 70
3 34 18 18 18 24 44 80
4 28 18 22 30 30 38 66
5 30 24 22 16 18 38 70
6 22 34 30 20 30 44 66
7 24 16 22 34 32 58 80

Cells in each area (first byte of its record, 0xB7D0); each number links to its map.

The province map

The map of stage 1

The map of stage 1, Izumo (出雲国), with Goemon's marker on area 0.

Before each area, the game shows the map of the stage (p02:80D9, state 4, step 0): the seven areas in a circle, each with the drawing of its graphics set (0xB8EC) at its place (0x81C2), the arrows of label 0x0C, the castle and, in the box, the province name in kanji, three sprites per stage (0x817D; two in stage 7: the 0xFF in the middle puts no sprite, p02:8173). The area marker (Goemon, two sprites) blinks every 8 frames (p02:823B). Drawn with tools/mapa_fase.py and checked against openMSX on all seven stages, pixel by pixel (tools/lanza_mapa.sh).

1 2 3 4 5 6 7
1 2 3 4 5 6 7

One screen

A cell is 8 × 6 blocks of 4 × 4 characters (p00:5275). It is built at 0xD800 and painted character by character with HMMM, from page 1 to page 0 (p00:534E), in SCREEN 5. Each area has its graphics set (0xB8EC, six in all) with its characters and its palette: the base one (0xA3E6), the set's (0xA37A) and a few colours for the spot, which some exits change (0xA4C5).

Goemon and Ebisumaru

Goemon

Ebisumaru

The 20 poses of each: patterns, sprites and colours checked against the pose in each dump.

Life starts at 0x10 (0x20 with one of the keywords), and the timer runs in BCD (0xC4B0). Below 50 seconds the hurry-up music plays (p01:714E).

The enemies

The enemies

The 30 types that appear in the cells, with the base pose and the next three (0xAA51), each with the palette of the first area where it appears.

Each cell has a set of figures: a nibble in its area's table (0x9BF0) picks a list in its graphics set's table (0x5BB2). The lists match the figures in the 49 dumps. When the blow lands, each type adds the money in 0xB86D (5, 10 or 20 ryo, or nothing), except types 8 and 0x21, which cost 50 ryo; touching them, on the other hand, gives 1000 points (p01:79C8). 107 figures from the dumps are checked with zero differences.

Types 0x12 and 0x1D do not appear in the cells: they are figures from the end-of-stage scene (p02:9AA6, p02:9B6E).

The interiors

An interior

There are 21 interiors (0x9567); each has its figures and what it sells.

All 21 are drawn and checked with zero differences against openMSX, and the shops open as well.

Prices (0x9371) depend on three things:

Item What it does (0xADEB) Price, class 0, band 0
1, 10 one more, up to 3 30, 150
2, 8 you have it 20, 120
3–7 five hits 50
9 100 seconds 40
11 / 12 16 / 8 life 30 / 20
13 200 more seconds 50

The whole table, with the three classes and the four bands (in ryo):

Class, band 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
0, 0 30 20 50 50 50 50 50 120 40 150 30 20 50 5 50 100
0, 1 60 40 100 100 100 100 100 250 180 300 60 40 100 0 150 240
0, 2 90 60 280 280 300 300 300 400 440 800 90 60 280 0 500 420
0, 3 120 100 600 600 400 400 400 500 600 1500 120 100 600 0 700 620
1, 0 30 20 40 40 50 50 50 150 50 150 30 20 40 0 50 100
1, 1 60 40 80 80 150 150 150 300 160 400 60 40 80 0 200 280
1, 2 90 60 250 250 400 400 400 500 1200 700 90 60 250 0 500 400
1, 3 150 120 420 420 600 600 600 800 1200 1200 150 120 420 0 700 520
2, 0 50 30 80 80 50 50 50 400 100 2000 50 30 80 0 50 100
2, 1 100 60 150 150 100 100 100 500 250 2000 100 60 150 0 200 380
2, 2 150 100 300 300 250 250 250 600 600 2000 150 100 300 0 600 580
2, 3 250 200 700 700 500 500 500 1000 1500 2000 250 200 700 0 800 780

The secret passages

The passage of area 1-0

The map of the passage in area 1-0, as the game shows it (p03:BB1B): each cell is an 8 × 8 piece, and Goemon, top left, is where you start.

In every area except area 5 of each stage, interior 16 offers to take you "to the secret passage at the back". There are 42 passages, made from 16 drawings (0xA86D) that repeat with what is inside in other places (0xA575). They are walked in first person: up moves forward, left and right turn, and down turns around (p03:B8C3).

All 42 are checked against openMSX: the grid at 0xD800, the map pixel by pixel and the palette.

Stage Area 0 1 2 3 4 6
1 2 4 11 18 19 26
2 6 13 22 16 8 51
3 13 15 7 8 16 3
4 19 9 6 24 28 44
5 10 20 12 4 15 54
6 20 27 20 7 24 22
7 13 10 14 21 24 0

The cell of interior 16 in each area; each number links to the map of its passage.

The first-person view

The passage of area 1-0, walked

The passage of area 1-0, walked all the way: one frame per move.

From the current cell and facing direction, p03:B936 looks for the wall (or the exit) up to 4 cells ahead and, on each side, whether there is wall, opening or corner at each depth. With that, p02:98BE draws eight side pieces and then the front one, out of 33 character drawings (0xB91D). On top go the frame (p03:B843), the compass with the arrow showing where you face (p03:B9CB) and the sprites of whatever is in the three cells ahead (0x9953).

The 33 pieces of the view

The 33 pieces: top, the front wall 1-4 cells away (0x01-0x04), no wall within 4 (0x00) and the exit (0x1D-0x20); middle, the left side (wall 0x05-0x08, opening 0x09-0x0C, corner 0x0D-0x10); bottom, the right side (0x11-0x1C).

Each walk starts at (1, 1), picks up what is there, always the nearest item first, and ends at the exit, one frame per move. The pace, 250 ms a frame, is ours: in the game the player sets it. Checked: the view by running p03:B936 on every cell and direction of all 42 (16,696, identical) and two walks played in openMSX (1-0 and 5-6), identical to the pixel.

Stage Area 0 1 2 3 4 6
1 54 74 61 173 89 75
2 18 52 93 57 44 323
3 100 117 166 118 236 148
4 120 78 127 282 47 254
5 57 52 93 229 344 277
6 110 364 112 230 66 159
7 62 272 78 198 313 185

Each number is the moves of the walk and links to its GIF.

The password

It is 9 characters. 0x30 is subtracted from each, they are shuffled with the key at 0xEBC6 and carry a checksum (p01:6C7A). They store the stage, the player, the area, the cell and the colours. F2 in the pause shows it, and the same screen accepts four keywords (see Findings).

The end of each stage

The stage's lord says his text (0x9E0B, one per stage) and promises to rule better. The game has four different endings: they are in Findings.

The lord's hall

The lord's hall in stage 1

The lord's hall at the end of stage 1, in full (about 18 seconds): the retainers come in, bow, the lord sits down and speaks.

At the end of each stage, Goemon comes before the lord (state 0x0B). The retainers come in, bow, the lord appears and says his text one letter every 7 frames (p02:9B34, six steps). For the animation, what the cartridge does every frame, the sound and the state machine (p00:4045), is run with z80run, in tools/sala.py. The RAM the scene starts with is an openMSX dump (tools/lanza_sala.sh); from there, every frame is worked out by the cartridge and drawn by our code. Checked against an openMSX recording: the sprites of all 1080 frames and the screen every half second. Each stage's text is in The texts.

1 2 3 4 5 6 7
1 2 3 4 5 6 7

The angry lord. If the type 0x21 figure has been hit 8 times or more during the stage (0xCD60, p03:A9D3), in stages 1 to 6 the lord says a different text (0x9F92, p02:9BBF) and meanwhile switches to pose 0x95 with sound effect 0x20 every 13 frames (p02:9C3D). It is the same scene with 0xCD60 set to 8, checked against its own openMSX recording. The lord is the same in all seven stages: the RAM the stage 4 hall starts with differs from stage 1's only in the stage number.

The hall with the angry lord