Curiosities

It is not the same game as on the MSX

The MSX version is Taito's, from the same 1985, and it is disassembled too. The SG-1000 title screen says REPROGRAMMED GAME: SEGA 1985, and the code shows it: of the SG-1000's 8,174 sequences of six instructions in a row (operands removed), only one appears in the MSX one. No routine is copied or adapted: Sega wrote it from scratch.

The way the buildings are made changes too. On the MSX there is a single building and each round draws by lot which doors are red; on the SG-1000 there are fifteen fixed buildings with their red doors stored in the ROM, and each round picks one out of three.

The enemies press a joypad

The enemies have no code of their own to walk, jump or shoot: they use the agent's (mueve_persona, 0x2D3F), with a virtual joypad filled in by lists of rules. Each rule is a routine that, if it holds, adds its direction or button and jumps straight to the next batch (pulsa, 0x2D38, drops its own return from the stack). The nine kinds of enemy differ only in which rules they check and in what order: they are in The enemies.

The people on the stairs are tiles

While the agent or an enemy goes up or down a staircase, their sprites leave the screen (Y 0xFE) and what you see is background tiles: every 8 frames escalera_anda (0x15C3) swaps the staircase tiles for others with the person drawn on the next step (tables 0x1686 and 0x16B6). At the end of the staircase the sprites appear again on the floor above or below.

With a keyboard

With the SK-1100 keyboard, or on an SC-3000, the game can also be played with keys. At power-on it programs the keyboard's 8255 and checks whether it answers (mira_teclado, 0x1AC5). If it does, lee_teclado (0x19BF) reads row 7, which is the joypads, plus a few keys in rows 1 to 6 that act as directions and buttons; players 1 and 2 use different keys.

Twenty-one sprites and only four per line

The SG-1000's VDP only draws four sprites per line. The game uses 21 (the agent, four enemies, the lamp, seven bullets and the document with its 500) and, so that none of them vanishes for good, every frame it copies them to VRAM starting seven further on (sprites_a_vram, 0x185A): the ones sharing a line take turns and flicker.

The bullet that becomes a car

The car at the end uses four sprites. One of them is drawing 0xEC, which in the game is the bullet: when the car scene starts, the game writes a piece of the car over it (0x4486 to VRAM 0x1F60) and, once the car has gone, puts the bullet back from a copy it keeps at 0x44A6.

Two name tables

The game always draws the view in the name table that is not on screen and the interrupt swaps them (0x3800 and 0x3C00, VDP register 2). Both have the score panel painted on them: that is why labels, lives and round are written twice.

The clock that lets everyone loose

After 60 blocks of 256 frames in a round (about four minutes) time is up: the four enemy slots stop waiting between one enemy and the next, the toughest kinds come out and the music changes. There is no warning on screen, only sound 0x85 one block earlier.