Sonic the Hedgehog in early development; Sega R&D news footage from February 1990.

FCOL.BAK

lea	scdtblwk,a2
	move.w	d0,d6
	andi.w	#7,d6
	lsl.w	#8,d0
	adda.w	d0,a2

	move.w	d2,d1			;
	lsr.w	#4,d1
	move.w	d3,d1
	rol.w	#1,d1			;
	andi.w	#$1e,d1
	addx.w	d1,d0

	swap	d4

The lea instruction was the best match, from some source code found in the Sonic 2 Nick Arcade proto.

Which compiles to:

45F800003C0002460007E148D4C03202E8493203E3590241001ED1414844

Note the 0x0000 after 0x45F8. This is a test, it points to where ever the data/code is in the ROM. There is no way to currently know where it points to. Still, from 26 bytes, to 30 bytes of compiled code is nice. The main one shown, from FCOL3.ASM is not easy as most of it is unknown.

Responses

In response to blip #124738

So, I was finally able to compile the FCOL3.ASM part. Used some of the values in the start, as well as random values. The symbol "hoseihsub" was causing it to fail compiling before. Compiled code size is 150 bytes. Had to add .down1: and .nomove2:. I copied the existing code from .down: and .nomove:. Don't know if it was the same though.

  • 1